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