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