Changeset View
Changeset View
Standalone View
Standalone View
src/imapset.h
Show First 20 Lines • Show All 218 Lines • ▼ Show 20 Line(s) | 143 | public: | |||
---|---|---|---|---|---|
219 | */ | 219 | */ | ||
220 | ImapInterval::List intervals() const; | 220 | ImapInterval::List intervals() const; | ||
221 | 221 | | |||
222 | /** | 222 | /** | ||
223 | Returns true if this set doesn't contains any values. | 223 | Returns true if this set doesn't contains any values. | ||
224 | */ | 224 | */ | ||
225 | bool isEmpty() const; | 225 | bool isEmpty() const; | ||
226 | 226 | | |||
227 | /** | ||||
228 | * Optimizes the ImapSet by sorting and merging overlapping intervals. | ||||
229 | * | ||||
230 | * Normally you shouldn't need to call this method. KIMAP will make sure | ||||
231 | * to opimize the ImapSet before serializing it to string and sending it | ||||
232 | * to the IMAP server. | ||||
233 | */ | ||||
234 | void optimize(); | ||||
235 | | ||||
227 | private: | 236 | private: | ||
228 | class Private; | 237 | class Private; | ||
229 | QSharedDataPointer<Private> d; | 238 | QSharedDataPointer<Private> d; | ||
230 | }; | 239 | }; | ||
231 | 240 | | |||
232 | } | 241 | } | ||
233 | 242 | | |||
234 | KIMAP_EXPORT QDebug &operator<<(QDebug &d, const KIMAP::ImapInterval &interval); | 243 | KIMAP_EXPORT QDebug &operator<<(QDebug &d, const KIMAP::ImapInterval &interval); | ||
235 | KIMAP_EXPORT QDebug &operator<<(QDebug &d, const KIMAP::ImapSet &set); | 244 | KIMAP_EXPORT QDebug &operator<<(QDebug &d, const KIMAP::ImapSet &set); | ||
236 | 245 | | |||
237 | Q_DECLARE_METATYPE(KIMAP::ImapInterval) | 246 | Q_DECLARE_METATYPE(KIMAP::ImapInterval) | ||
238 | Q_DECLARE_METATYPE(KIMAP::ImapInterval::List) | 247 | Q_DECLARE_METATYPE(KIMAP::ImapInterval::List) | ||
239 | Q_DECLARE_METATYPE(KIMAP::ImapSet) | 248 | Q_DECLARE_METATYPE(KIMAP::ImapSet) | ||
240 | 249 | | |||
241 | #endif | 250 | #endif |