summaryrefslogtreecommitdiffstats
path: root/examples/maildirresource/libmaildir/maildir.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/maildirresource/libmaildir/maildir.h')
-rw-r--r--examples/maildirresource/libmaildir/maildir.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/examples/maildirresource/libmaildir/maildir.h b/examples/maildirresource/libmaildir/maildir.h
index 42d53e6..5936515 100644
--- a/examples/maildirresource/libmaildir/maildir.h
+++ b/examples/maildirresource/libmaildir/maildir.h
@@ -167,13 +167,14 @@ public:
167 */ 167 */
168 QByteArray readEntry( const QString& key ) const; 168 QByteArray readEntry( const QString& key ) const;
169 169
170 enum MailFlags { 170 enum Flag {
171 Forwarded, 171 Forwarded = 0x1,
172 Replied, 172 Replied = 0x2,
173 Seen, 173 Seen = 0x4,
174 Flagged 174 Flagged = 0x8,
175 Deleted = 0x10
175 }; 176 };
176 Q_DECLARE_FLAGS(Flags, MailFlags); 177 Q_DECLARE_FLAGS(Flags, Flag);
177 178
178 /** 179 /**
179 * Return the flags encoded in the maildir file name for an entry 180 * Return the flags encoded in the maildir file name for an entry
@@ -211,7 +212,7 @@ public:
211 * Change the flags for an entry specified by @p key. Returns the new key of the entry (the key might change because 212 * Change the flags for an entry specified by @p key. Returns the new key of the entry (the key might change because
212 * flags are stored in the unique filename). 213 * flags are stored in the unique filename).
213 */ 214 */
214 // QString changeEntryFlags( const QString& key, const Sink::Item::Flags& flags ); 215 QString changeEntryFlags( const QString& key, const Flags& flags );
215 216
216 /** 217 /**
217 * Moves this maildir into @p destination. 218 * Moves this maildir into @p destination.