Changeset View
Changeset View
Standalone View
Standalone View
src/drive/about.h
Show First 20 Lines • Show All 215 Lines • ▼ Show 20 Line(s) | 212 | private: | |||
---|---|---|---|---|---|
216 | Private *const d; | 216 | Private *const d; | ||
217 | friend class Private; | 217 | friend class Private; | ||
218 | friend class About; | 218 | friend class About; | ||
219 | }; | 219 | }; | ||
220 | 220 | | |||
221 | typedef QSharedPointer<MaxUploadSize> MaxUploadSizePtr; | 221 | typedef QSharedPointer<MaxUploadSize> MaxUploadSizePtr; | ||
222 | typedef QList<MaxUploadSizePtr> MaxUploadSizesList; | 222 | typedef QList<MaxUploadSizePtr> MaxUploadSizesList; | ||
223 | 223 | | |||
224 | explicit About(const About &other); | 224 | struct Fields { | ||
225 | virtual ~About(); | 225 | static const QString AdditionalRoleInfo; | ||
226 | static const QString AdditionalRoles; | ||||
227 | static const QString BackgroundImageLink; | ||||
228 | static const QString BytesUsed; | ||||
229 | static const QString CanCreateTeamDrives; | ||||
230 | static const QString ColorRgb; | ||||
231 | static const QString DisplayName; | ||||
232 | static const QString DomainSharingPolicy; | ||||
233 | static const QString EmailAddress; | ||||
234 | static const QString Etag; | ||||
235 | static const QString ExportFormats; | ||||
236 | static const QString FeatureName; | ||||
237 | static const QString FeatureRate; | ||||
238 | static const QString Features; | ||||
239 | static const QString FolderColorPalette; | ||||
240 | static const QString Id; | ||||
241 | static const QString ImportFormats; | ||||
242 | static const QString IsAuthenticatedUser; | ||||
243 | static const QString IsCurrentAppInstalled; | ||||
244 | static const QString Kind; | ||||
245 | static const QString LanguageCode; | ||||
246 | static const QString LargestChangeId; | ||||
247 | static const QString MaxUploadSizes; | ||||
248 | static const QString Name; | ||||
249 | static const QString PermissionId; | ||||
250 | static const QString Picture; | ||||
251 | static const QString PrimaryRole; | ||||
252 | static const QString QuotaBytesByService; | ||||
253 | static const QString QuotaBytesTotal; | ||||
254 | static const QString QuotaBytesUsed; | ||||
255 | static const QString QuotaBytesUsedAggregate; | ||||
256 | static const QString QuotaBytesUsedInTrash; | ||||
257 | static const QString QuotaType; | ||||
258 | static const QString RemainingChangeIds; | ||||
259 | static const QString RoleSets; | ||||
260 | static const QString RootFolderId; | ||||
261 | static const QString SelfLink; | ||||
262 | static const QString ServiceName; | ||||
263 | static const QString Size; | ||||
264 | static const QString Source; | ||||
265 | static const QString Targets; | ||||
266 | static const QString TeamDriveThemes; | ||||
267 | static const QString Type; | ||||
268 | static const QString Url; | ||||
269 | static const QString User; | ||||
270 | }; | ||||
271 | | ||||
272 | About(const About &other); | ||||
273 | ~About() override; | ||||
226 | 274 | | |||
227 | bool operator==(const About &other) const; | 275 | bool operator==(const About &other) const; | ||
228 | bool operator!=(const About &other) const { return !operator==(other); } | 276 | bool operator!=(const About &other) const { return !operator==(other); } | ||
229 | 277 | | |||
230 | /** | 278 | /** | ||
231 | * @brief Returns the link back to this item. | 279 | * @brief Returns the link back to this item. | ||
232 | */ | 280 | */ | ||
233 | QUrl selfLink() const; | 281 | QUrl selfLink() const; | ||
▲ Show 20 Lines • Show All 101 Lines • ▼ Show 20 Line(s) | 317 | #endif | |||
335 | /** | 383 | /** | ||
336 | * @brief Constructs a new DriveAbout object from given JSON data | 384 | * @brief Constructs a new DriveAbout object from given JSON data | ||
337 | * | 385 | * | ||
338 | * @param jsonData | 386 | * @param jsonData | ||
339 | */ | 387 | */ | ||
340 | static AboutPtr fromJSON(const QByteArray &jsonData); | 388 | static AboutPtr fromJSON(const QByteArray &jsonData); | ||
341 | 389 | | |||
342 | private: | 390 | private: | ||
343 | explicit About(); | 391 | About(); | ||
344 | 392 | | |||
345 | class Private; | 393 | class Private; | ||
346 | Private *const d; | 394 | QScopedPointer<Private> const d; | ||
347 | friend class Private; | 395 | friend class Private; | ||
348 | }; | 396 | }; | ||
349 | 397 | | |||
350 | } /* namespace Drive */ | 398 | } /* namespace Drive */ | ||
351 | 399 | | |||
352 | } /* namespace KGAPI2 */ | 400 | } /* namespace KGAPI2 */ | ||
353 | 401 | | |||
354 | #endif // LIBKGAPI2_DRIVE_ABOUT_H | 402 | #endif // LIBKGAPI2_DRIVE_ABOUT_H |