From f4381b746da350f44168674da69bd6ad6876de19 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 2 Feb 2016 14:00:37 +0100 Subject: Writeback of unread flag changes --- examples/maildirresource/libmaildir/maildir.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'examples/maildirresource/libmaildir/maildir.h') 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: */ QByteArray readEntry( const QString& key ) const; - enum MailFlags { - Forwarded, - Replied, - Seen, - Flagged + enum Flag { + Forwarded = 0x1, + Replied = 0x2, + Seen = 0x4, + Flagged = 0x8, + Deleted = 0x10 }; - Q_DECLARE_FLAGS(Flags, MailFlags); + Q_DECLARE_FLAGS(Flags, Flag); /** * Return the flags encoded in the maildir file name for an entry @@ -211,7 +212,7 @@ public: * Change the flags for an entry specified by @p key. Returns the new key of the entry (the key might change because * flags are stored in the unique filename). */ - // QString changeEntryFlags( const QString& key, const Sink::Item::Flags& flags ); + QString changeEntryFlags( const QString& key, const Flags& flags ); /** * Moves this maildir into @p destination. -- cgit v1.2.3