diff options
Diffstat (limited to 'src/include/pendingupdates.h')
-rw-r--r-- | src/include/pendingupdates.h | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/src/include/pendingupdates.h b/src/include/pendingupdates.h index ea192de..c1adda0 100644 --- a/src/include/pendingupdates.h +++ b/src/include/pendingupdates.h @@ -16,12 +16,7 @@ namespace Binc { //------------------------------------------------------------------------ class PendingUpdates { public: - enum { - EXPUNGE = 0x01, - FLAGS = 0x02, - EXISTS = 0x04, - RECENT = 0x08 - }; + enum { EXPUNGE = 0x01, FLAGS = 0x02, EXISTS = 0x04, RECENT = 0x08 }; //---------------------------------------------------------------------- class expunged_const_iterator { @@ -29,10 +24,10 @@ namespace Binc { std::vector<unsigned int>::iterator internal; public: - unsigned int operator * (void) const; - void operator ++ (void); - bool operator != (expunged_const_iterator) const; - bool operator == (expunged_const_iterator) const; + unsigned int operator*(void) const; + void operator++(void); + bool operator!=(expunged_const_iterator) const; + bool operator==(expunged_const_iterator) const; //-- expunged_const_iterator(void); @@ -48,7 +43,7 @@ namespace Binc { private: std::map<unsigned int, unsigned int>::iterator internal; std::map<unsigned int, unsigned int> *sqnrtouid; - std::map<unsigned int, std::vector<std::string> > *sqnrtocflags; + std::map<unsigned int, std::vector<std::string>> *sqnrtocflags; public: unsigned int first(void) const; @@ -56,13 +51,13 @@ namespace Binc { std::vector<std::string> getCustomFlags(void) const; unsigned int getUID(void) const; - void operator ++ (void); - bool operator != (flagupdates_const_iterator) const; + void operator++(void); + bool operator!=(flagupdates_const_iterator) const; //-- flagupdates_const_iterator(void); flagupdates_const_iterator(std::map<unsigned int, unsigned int>::iterator i, - std::map<unsigned int, std::vector<std::string> > *, + std::map<unsigned int, std::vector<std::string>> *, std::map<unsigned int, unsigned int> *); }; @@ -72,8 +67,9 @@ namespace Binc { //-- void addExpunged(unsigned int uid); - void addFlagUpdates(unsigned int sqnr, unsigned int uid, - unsigned int flags, + void addFlagUpdates(unsigned int sqnr, + unsigned int uid, + unsigned int flags, const std::vector<std::string> &cflags); void setExists(unsigned int n); void setRecent(unsigned int n); @@ -90,7 +86,7 @@ namespace Binc { std::vector<unsigned int> expunges; std::map<unsigned int, unsigned int> flagupdates; std::map<unsigned int, unsigned int> sqnrtouid; - std::map<unsigned int, std::vector<std::string> > sqnrtocflags; + std::map<unsigned int, std::vector<std::string>> sqnrtocflags; unsigned int exists; unsigned int recent; @@ -98,9 +94,11 @@ namespace Binc { bool newrecent; }; - bool pendingUpdates(Mailbox *, int type, bool rescan, - bool showAll = false, - bool forceScan = false, + bool pendingUpdates(Mailbox *, + int type, + bool rescan, + bool showAll = false, + bool forceScan = false, bool uidfetchflags = false); } |