Changeset View
Changeset View
Standalone View
Standalone View
src/drive/filefetchjob.h
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Line(s) | 53 | public: | |||
---|---|---|---|---|---|
115 | ~FileFetchJob() override; | 115 | ~FileFetchJob() override; | ||
116 | 116 | | |||
117 | bool updateViewedDate() const; | 117 | bool updateViewedDate() const; | ||
118 | void setUpdateViewedDate(bool updateViewedDate); | 118 | void setUpdateViewedDate(bool updateViewedDate); | ||
119 | 119 | | |||
120 | void setFields(qulonglong fields); | 120 | void setFields(qulonglong fields); | ||
121 | qulonglong fields() const; | 121 | qulonglong fields() const; | ||
122 | 122 | | |||
123 | bool includeTeamDriveItems() const; | 123 | /** | ||
124 | void setIncludeTeamDriveItems(bool includeTeamDriveItems); | 124 | * @brief Whether both My Drive and shared drive items should be included in results. | ||
125 | * | ||||
126 | * @deprecated This parameter will only be effective until June 1, 2020. Afterwards shared drive items will be included in the results. | ||||
127 | */ | ||||
128 | KGAPIDRIVE_DEPRECATED bool includeItemsFromAllDrives() const; | ||||
129 | | ||||
130 | /** | ||||
131 | * @brief Sets whether both My Drive and shared drive items should be included in results. | ||||
132 | * | ||||
133 | * Set to true by default as LibKGAPI supports Team Drives. | ||||
134 | * | ||||
135 | * @deprecated This parameter will only be effective until June 1, 2020. Afterwards shared drive items will be included in the results. | ||||
136 | */ | ||||
137 | KGAPIDRIVE_DEPRECATED void setIncludeItemsFromAllDrives(bool includeItemsFromAllDrives); | ||||
dvratil: Deprecate all the getters as well, please. | |||||
138 | | ||||
139 | /** | ||||
140 | * @brief Whether the request supports both My Drives and shared drives. | ||||
141 | * | ||||
142 | * Set to true by default as LibKGAPI supports Team Drives. | ||||
143 | * | ||||
144 | * @deprecated This parameter will only be effective until June 1, 2020. Afterwards all applications | ||||
145 | * are assumed to support shared drives. | ||||
146 | */ | ||||
147 | KGAPIDRIVE_DEPRECATED bool supportsAllDrives() const; | ||||
148 | | ||||
149 | /** | ||||
150 | * @brief Sets whether the request supports both My Drives and shared drives. | ||||
151 | * | ||||
152 | * Set to true by default as LibKGAPI supports Team Drives. | ||||
153 | * | ||||
154 | * @deprecated This parameter will only be effective until June 1, 2020. Afterwards all applications | ||||
155 | * are assumed to support shared drives. | ||||
156 | */ | ||||
157 | KGAPIDRIVE_DEPRECATED void setSupportsAllDrives(bool supportsAllDrives); | ||||
125 | 158 | | |||
126 | protected: | 159 | protected: | ||
127 | void start() override; | 160 | void start() override; | ||
128 | KGAPI2::ObjectsList handleReplyWithItems(const QNetworkReply *reply, | 161 | KGAPI2::ObjectsList handleReplyWithItems(const QNetworkReply *reply, | ||
129 | const QByteArray &rawData) override; | 162 | const QByteArray &rawData) override; | ||
130 | 163 | | |||
131 | private: | 164 | private: | ||
132 | class Private; | 165 | class Private; | ||
133 | Private *const d; | 166 | Private *const d; | ||
dvratil: Let's not introduce getters/setters that only alias other functions. | |||||
134 | friend class Private; | 167 | friend class Private; | ||
135 | 168 | | |||
136 | }; | 169 | }; | ||
137 | 170 | | |||
138 | } // namespace Drive | 171 | } // namespace Drive | ||
139 | 172 | | |||
140 | } // namespace KGAPI2 | 173 | } // namespace KGAPI2 | ||
141 | 174 | | |||
142 | #endif // KGAPI2_DRIVEFILEFETCHJOB_H | 175 | #endif // KGAPI2_DRIVEFILEFETCHJOB_H |
Deprecate all the getters as well, please.