Changeset View
Changeset View
Standalone View
Standalone View
src/drive/filefetchjob.h
Context not available. | |||||
51 | WRITE setUpdateViewedDate) | 51 | WRITE setUpdateViewedDate) | ||
---|---|---|---|---|---|
52 | 52 | | |||
53 | public: | 53 | public: | ||
54 | enum Fields { | 54 | struct FieldShorthands { | ||
55 | AllFields = 0ULL, | 55 | static const QStringList BasicFields; | ||
56 | Id = 1ULL << 0, | 56 | static const QStringList AccessFields; | ||
57 | Title = 1ULL << 1, | 57 | static const QStringList SharingFields; | ||
58 | MimeType = 1ULL << 2, | | |||
59 | Description = 1ULL << 3, | | |||
60 | Labels = 1ULL << 4, | | |||
61 | CreatedDate = 1ULL << 5, | | |||
62 | ModifiedDate = 1ULL << 6, | | |||
63 | ModifiedByMeDate = 1ULL << 7, | | |||
64 | DownloadUrl = 1ULL << 8, | | |||
65 | IndexableText = 1ULL << 9, | | |||
66 | UserPermission = 1ULL << 10, | | |||
67 | FileExtension = 1ULL << 11, | | |||
68 | MD5Checksum = 1ULL << 12, | | |||
69 | FileSize = 1ULL << 13, | | |||
70 | AlternateLink = 1ULL << 14, | | |||
71 | EmbedLink = 1ULL << 15, | | |||
72 | SharedWithMeDate = 1ULL << 16, | | |||
73 | Parents = 1ULL << 17, | | |||
74 | ExportLinks = 1ULL << 18, | | |||
75 | OriginalFilename = 1ULL << 19, | | |||
76 | OwnerNames = 1ULL << 20, | | |||
77 | LastModifiedByMeDate = 1ULL << 21, | | |||
78 | Editable = 1ULL << 22, | | |||
79 | WritersCanShare = 1ULL << 23, | | |||
80 | ThumbnailLink = 1ULL << 24, | | |||
81 | LastViewedByMeDate = 1ULL << 25, | | |||
82 | WebContentLink = 1ULL << 26, | | |||
83 | ExplicitlyTrashed = 1ULL << 27, | | |||
84 | ImageMediaMetadata = 1ULL << 28, | | |||
85 | Thumbnail = 1ULL << 29, | | |||
86 | WebViewLink = 1ULL << 30, | | |||
87 | IconLink = 1ULL << 31, | | |||
88 | Shared = 1ULL << 32, | | |||
89 | Owners = 1ULL << 33, | | |||
90 | LastModifyingUser = 1ULL << 34, | | |||
91 | AppDataContents = 1ULL << 35, | | |||
92 | OpenWithLinks = 1ULL << 36, | | |||
93 | DefaultOpenWithLink = 1ULL << 37, | | |||
94 | HeadRevisionId = 1ULL << 38, | | |||
95 | Copyable = 1ULL << 39, | | |||
96 | Properties = 1ULL << 40, | | |||
97 | MarkedViewedByMeDate = 1ULL << 41, | | |||
98 | Version = 1ULL << 42, | | |||
99 | SharingUser = 1ULL << 43, | | |||
100 | Permissions = 1ULL << 44, | | |||
101 | | ||||
102 | BasicFields = Id | Title | MimeType | CreatedDate | ModifiedDate | FileSize | DownloadUrl | Permissions, | | |||
103 | AccessFields = CreatedDate | ModifiedDate | ModifiedByMeDate | LastModifiedByMeDate | LastViewedByMeDate | MarkedViewedByMeDate, | | |||
104 | SharingFields = SharedWithMeDate | WritersCanShare | Shared | Owners | SharingUser | OwnerNames | | |||
105 | // TODO: More? | | |||
106 | }; | 58 | }; | ||
107 | 59 | | |||
108 | explicit FileFetchJob(const QString &fileId, | 60 | explicit FileFetchJob(const QString &fileId, | ||
Context not available. | |||||
114 | explicit FileFetchJob(const AccountPtr &account, QObject *parent = nullptr); | 66 | explicit FileFetchJob(const AccountPtr &account, QObject *parent = nullptr); | ||
115 | ~FileFetchJob() override; | 67 | ~FileFetchJob() override; | ||
116 | 68 | | |||
69 | void setFields(const QStringList &fields); | ||||
70 | QStringList fields() const; | ||||
71 | | ||||
117 | bool updateViewedDate() const; | 72 | bool updateViewedDate() const; | ||
118 | void setUpdateViewedDate(bool updateViewedDate); | 73 | void setUpdateViewedDate(bool updateViewedDate); | ||
119 | 74 | | |||
120 | void setFields(qulonglong fields); | | |||
121 | qulonglong fields() const; | | |||
122 | | ||||
123 | /** | 75 | /** | ||
124 | * @brief Whether both My Drive and shared drive items should be included in results. | 76 | * @brief Whether both My Drive and shared drive items should be included in results. | ||
125 | * | 77 | * | ||
Context not available. |