Changeset View
Changeset View
Standalone View
Standalone View
src/calendar/eventfetchjob.h
Show First 20 Lines • Show All 108 Lines • ▼ Show 20 Line(s) | 41 | { | |||
---|---|---|---|---|---|
109 | * | 109 | * | ||
110 | * This property does not have any effect when fetching a specific event and | 110 | * This property does not have any effect when fetching a specific event and | ||
111 | * can be modified only when the job is not running. | 111 | * can be modified only when the job is not running. | ||
112 | * | 112 | * | ||
113 | * @see setFilter, filter | 113 | * @see setFilter, filter | ||
114 | */ | 114 | */ | ||
115 | Q_PROPERTY(QString filter READ filter WRITE setFilter) | 115 | Q_PROPERTY(QString filter READ filter WRITE setFilter) | ||
116 | 116 | | |||
117 | /** | ||||
118 | * @brief A token to fetch updates incrementally | ||||
119 | * | ||||
120 | * By default the property is empty. Properties timeMin, timeMax, | ||||
121 | * updatedMin will be ignored if sync token is specified | ||||
122 | * | ||||
123 | * @see setSyncToken, syncToken | ||||
124 | */ | ||||
125 | Q_PROPERTY(QString syncToken READ syncToken WRITE setSyncToken) | ||||
126 | | ||||
117 | public: | 127 | public: | ||
118 | 128 | | |||
119 | /** | 129 | /** | ||
120 | * @brief Constructs a job that will fetch all events from a calendar with | 130 | * @brief Constructs a job that will fetch all events from a calendar with | ||
121 | * given @p calendarId | 131 | * given @p calendarId | ||
122 | * | 132 | * | ||
123 | * Result of this job might not contain all events, depending on configured | 133 | * Result of this job might not contain all events, depending on configured | ||
124 | * filters. | 134 | * filters. | ||
▲ Show 20 Lines • Show All 84 Lines • ▼ Show 20 Line(s) | |||||
209 | */ | 219 | */ | ||
210 | void setTimeMin(quint64 timestamp); | 220 | void setTimeMin(quint64 timestamp); | ||
211 | 221 | | |||
212 | /** | 222 | /** | ||
213 | * @brief Returns lower boundary for events occurrence | 223 | * @brief Returns lower boundary for events occurrence | ||
214 | */ | 224 | */ | ||
215 | quint64 timeMin() const; | 225 | quint64 timeMin() const; | ||
216 | 226 | | |||
227 | /** | ||||
228 | * @brief Sets token for incremental updates | ||||
229 | * | ||||
230 | * @param syncToken | ||||
231 | */ | ||||
232 | void setSyncToken(const QString& syncToken); | ||||
233 | | ||||
234 | /** | ||||
235 | * @brief Token for next incremental update | ||||
236 | */ | ||||
237 | QString syncToken(); | ||||
238 | | ||||
217 | protected: | 239 | protected: | ||
218 | 240 | | |||
219 | /** | 241 | /** | ||
220 | * @brief KGAPI2::Job::start implementation | 242 | * @brief KGAPI2::Job::start implementation | ||
221 | */ | 243 | */ | ||
222 | void start() override; | 244 | void start() override; | ||
223 | 245 | | |||
224 | /** | 246 | /** | ||
Show All 18 Lines |