Changeset View
Changeset View
Standalone View
Standalone View
src/drive/permissionfetchjob.h
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 40 | public: | |||
---|---|---|---|---|---|
43 | explicit PermissionFetchJob(const FilePtr &file, const AccountPtr &account, | 43 | explicit PermissionFetchJob(const FilePtr &file, const AccountPtr &account, | ||
44 | QObject *parent = nullptr); | 44 | QObject *parent = nullptr); | ||
45 | explicit PermissionFetchJob(const QString &fileId, const QString &permissionId, | 45 | explicit PermissionFetchJob(const QString &fileId, const QString &permissionId, | ||
46 | const AccountPtr &account, QObject *parent = nullptr); | 46 | const AccountPtr &account, QObject *parent = nullptr); | ||
47 | explicit PermissionFetchJob(const FilePtr &file, const QString &permissionId, | 47 | explicit PermissionFetchJob(const FilePtr &file, const QString &permissionId, | ||
48 | const AccountPtr &account, QObject *parent = nullptr); | 48 | const AccountPtr &account, QObject *parent = nullptr); | ||
49 | ~PermissionFetchJob() override; | 49 | ~PermissionFetchJob() override; | ||
50 | 50 | | |||
51 | /** | ||||
52 | * @brief Whether the request supports both My Drives and shared drives. | ||||
53 | * | ||||
54 | * Set to true by default as LibKGAPI supports Team Drives. | ||||
55 | * | ||||
56 | * @deprecated This parameter will only be effective until June 1, 2020. Afterwards all applications | ||||
57 | * are assumed to support shared drives. | ||||
58 | */ | ||||
59 | KGAPIDRIVE_DEPRECATED bool supportsAllDrives() const; | ||||
60 | | ||||
61 | /** | ||||
62 | * @brief Sets whether the request supports both My Drives and shared drives. | ||||
63 | * | ||||
64 | * Set to true by default as LibKGAPI supports Team Drives. | ||||
65 | * | ||||
66 | * @deprecated This parameter will only be effective until June 1, 2020. Afterwards all applications | ||||
67 | * are assumed to support shared drives. | ||||
68 | */ | ||||
69 | KGAPIDRIVE_DEPRECATED void setSupportsAllDrives(bool supportsAllDrives); | ||||
70 | | ||||
51 | protected: | 71 | protected: | ||
52 | void start() override; | 72 | void start() override; | ||
53 | KGAPI2::ObjectsList handleReplyWithItems(const QNetworkReply *reply, | 73 | KGAPI2::ObjectsList handleReplyWithItems(const QNetworkReply *reply, | ||
54 | const QByteArray &rawData) override; | 74 | const QByteArray &rawData) override; | ||
55 | 75 | | |||
56 | private: | 76 | private: | ||
57 | class Private; | 77 | class Private; | ||
58 | Private *const d; | 78 | Private *const d; | ||
59 | friend class Private; | 79 | friend class Private; | ||
60 | }; | 80 | }; | ||
61 | 81 | | |||
62 | } // namespace Drive | 82 | } // namespace Drive | ||
63 | 83 | | |||
64 | } // namespace KGAPI2 | 84 | } // namespace KGAPI2 | ||
65 | 85 | | |||
66 | #endif // KGAPI2_DRIVEPERMISSIONFETCHJOB_H | 86 | #endif // KGAPI2_DRIVEPERMISSIONFETCHJOB_H |