Changeset View
Changeset View
Standalone View
Standalone View
src/drive/teamdrive.h
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 50 | public: | |||
---|---|---|---|---|---|
52 | /** | 52 | /** | ||
53 | * @brief DriveTeamdrive::Restrictions holds the structure used for | 53 | * @brief DriveTeamdrive::Restrictions holds the structure used for | ||
54 | * restrictions property. | 54 | * restrictions property. | ||
55 | */ | 55 | */ | ||
56 | class Restrictions | 56 | class Restrictions | ||
57 | { | 57 | { | ||
58 | 58 | | |||
59 | public: | 59 | public: | ||
60 | struct Fields { | ||||
61 | static const QString AdminManagedRestrictions; | ||||
62 | static const QString CopyRequiresWriterPermission; | ||||
63 | static const QString DomainUsersOnly; | ||||
64 | static const QString TeamMembersOnly; | ||||
65 | }; | ||||
66 | | ||||
60 | Restrictions(); | 67 | Restrictions(); | ||
61 | Restrictions(const Restrictions &other); | 68 | Restrictions(const Restrictions &other); | ||
62 | ~Restrictions(); | 69 | ~Restrictions(); | ||
63 | bool operator==(const Restrictions &other) const; | 70 | bool operator==(const Restrictions &other) const; | ||
64 | bool operator!=(const Restrictions &other) const { return !operator==(other); } | 71 | bool operator!=(const Restrictions &other) const { return !operator==(other); } | ||
65 | 72 | | |||
66 | /** | 73 | /** | ||
67 | * @brief Returns whether administrative privileges on this Team Drive | 74 | * @brief Returns whether administrative privileges on this Team Drive | ||
▲ Show 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | |||||
138 | 145 | | |||
139 | /** | 146 | /** | ||
140 | * @brief DriveTeamdrive::Capabilities holds the structure used for capabilities property. | 147 | * @brief DriveTeamdrive::Capabilities holds the structure used for capabilities property. | ||
141 | */ | 148 | */ | ||
142 | class Capabilities | 149 | class Capabilities | ||
143 | { | 150 | { | ||
144 | 151 | | |||
145 | public: | 152 | public: | ||
153 | struct Fields { | ||||
154 | static const QString CanAddChildren; | ||||
155 | static const QString CanChangeCopyRequiresWriterPermissionRestriction; | ||||
156 | static const QString CanChangeDomainUsersOnlyRestriction; | ||||
157 | static const QString CanChangeTeamDriveBackground; | ||||
158 | static const QString CanChangeTeamMembersOnlyRestriction; | ||||
159 | static const QString CanComment; | ||||
160 | static const QString CanCopy; | ||||
161 | static const QString CanDeleteChildren; | ||||
162 | static const QString CanDeleteTeamDrive; | ||||
163 | static const QString CanDownload; | ||||
164 | static const QString CanEdit; | ||||
165 | static const QString CanListChildren; | ||||
166 | static const QString CanManageMembers; | ||||
167 | static const QString CanReadRevisions; | ||||
168 | static const QString CanRename; | ||||
169 | static const QString CanRenameTeamDrive; | ||||
170 | static const QString CanShare; | ||||
171 | static const QString CanTrashChildren; | ||||
172 | }; | ||||
173 | | ||||
146 | Capabilities(); | 174 | Capabilities(); | ||
147 | Capabilities(const Capabilities &other); | 175 | Capabilities(const Capabilities &other); | ||
148 | ~Capabilities(); | 176 | ~Capabilities(); | ||
149 | bool operator==(const Capabilities &other) const; | 177 | bool operator==(const Capabilities &other) const; | ||
150 | bool operator!=(const Capabilities &other) const { return !operator==(other); } | 178 | bool operator!=(const Capabilities &other) const { return !operator==(other); } | ||
151 | 179 | | |||
152 | /** | 180 | /** | ||
153 | * @brief Returns whether the current user can add children to folders | 181 | * @brief Returns whether the current user can add children to folders | ||
▲ Show 20 Lines • Show All 115 Lines • ▼ Show 20 Line(s) | |||||
269 | /** | 297 | /** | ||
270 | * @brief DriveTeamdrive::BackgroundImageFile holds the structure used | 298 | * @brief DriveTeamdrive::BackgroundImageFile holds the structure used | ||
271 | * for backgroundImageFile property. | 299 | * for backgroundImageFile property. | ||
272 | */ | 300 | */ | ||
273 | class BackgroundImageFile | 301 | class BackgroundImageFile | ||
274 | { | 302 | { | ||
275 | 303 | | |||
276 | public: | 304 | public: | ||
305 | struct Fields { | ||||
306 | static const QString Id; | ||||
307 | static const QString XCoordinate; | ||||
308 | static const QString YCoordinate; | ||||
309 | static const QString Width; | ||||
310 | }; | ||||
311 | | ||||
277 | BackgroundImageFile(); | 312 | BackgroundImageFile(); | ||
278 | BackgroundImageFile(const BackgroundImageFile &other); | 313 | BackgroundImageFile(const BackgroundImageFile &other); | ||
279 | ~BackgroundImageFile(); | 314 | ~BackgroundImageFile(); | ||
280 | bool operator==(const BackgroundImageFile &other) const; | 315 | bool operator==(const BackgroundImageFile &other) const; | ||
281 | bool operator!=(const BackgroundImageFile &other) const { return !operator==(other); } | 316 | bool operator!=(const BackgroundImageFile &other) const { return !operator==(other); } | ||
282 | 317 | | |||
283 | /** | 318 | /** | ||
284 | * @brief Returns the id of the background image file. | 319 | * @brief Returns the id of the background image file. | ||
▲ Show 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | 366 | private: | |||
332 | class Private; | 367 | class Private; | ||
333 | QScopedPointer<Private> const d; | 368 | QScopedPointer<Private> const d; | ||
334 | friend class Private; | 369 | friend class Private; | ||
335 | friend class Teamdrive; | 370 | friend class Teamdrive; | ||
336 | }; | 371 | }; | ||
337 | 372 | | |||
338 | typedef QSharedPointer<BackgroundImageFile> BackgroundImageFilePtr; | 373 | typedef QSharedPointer<BackgroundImageFile> BackgroundImageFilePtr; | ||
339 | 374 | | |||
375 | struct Fields { | ||||
376 | static const QString Kind; | ||||
377 | static const QString Items; | ||||
378 | static const QString KindDrive; | ||||
379 | static const QString PageToken; | ||||
380 | static const QString NextPageToken; | ||||
381 | static const QString Id; | ||||
382 | static const QString Name; | ||||
383 | static const QString ThemeId; | ||||
384 | static const QString ColorRgb; | ||||
385 | static const QString BackgroundImageFile; | ||||
386 | static const QString BackgroundImageLink; | ||||
387 | static const QString Capabilities; | ||||
388 | static const QString CreatedDate; | ||||
389 | static const QString Restrictions; | ||||
390 | }; | ||||
391 | | ||||
340 | Teamdrive(); | 392 | Teamdrive(); | ||
341 | Teamdrive(const Teamdrive &other); | 393 | Teamdrive(const Teamdrive &other); | ||
342 | ~Teamdrive() override; | 394 | ~Teamdrive() override; | ||
343 | bool operator==(const Teamdrive &other) const; | 395 | bool operator==(const Teamdrive &other) const; | ||
344 | bool operator!=(const Teamdrive &other) const { return !operator==(other); } | 396 | bool operator!=(const Teamdrive &other) const { return !operator==(other); } | ||
345 | 397 | | |||
346 | /** | 398 | /** | ||
347 | * @brief Returns the id of the teamdrive. | 399 | * @brief Returns the id of the teamdrive. | ||
▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines |