diff options
Diffstat (limited to 'src/include/maildir.h')
-rw-r--r-- | src/include/maildir.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/include/maildir.h b/src/include/maildir.h index 4a4c106..6ba1df3 100644 --- a/src/include/maildir.h +++ b/src/include/maildir.h @@ -41,10 +41,10 @@ namespace Binc { public: void insert(const std::string &unique, unsigned int uid, const std::string &fileName = ""); void remove(const std::string &unique); - void clear(void); - void clearFileNames(void); - void clearUids(void); - unsigned int getSize(void) const; + void clear(); + void clearFileNames(); + void clearUids(); + unsigned int getSize() const; MaildirIndexItem *find(const std::string &unique); }; @@ -54,28 +54,28 @@ namespace Binc { class iterator : public BaseIterator { public: - iterator(void); + iterator(); iterator(Maildir *home, MessageMap::iterator i, const SequenceSet &bset, unsigned int mod = INCLUDE_EXPUNGED | SQNR_MODE); iterator(const iterator ©); - ~iterator(void); + ~iterator(); - Message &operator*(void); - void operator++(void); + Message &operator*(); + void operator++(); bool operator==(const BaseIterator &) const; bool operator!=(const BaseIterator &) const; iterator &operator=(const iterator ©); - void erase(void); + void erase(); friend class Maildir; protected: - void reposition(void); - MaildirMessage &curMessage(void); + void reposition(); + MaildirMessage &curMessage(); private: Maildir *mailbox; @@ -89,33 +89,33 @@ namespace Binc { iterator(iterator &external); }; - const std::string getTypeName(void) const; + const std::string getTypeName() const; Mailbox::iterator begin(const SequenceSet &bset, unsigned int mod = INCLUDE_EXPUNGED | SQNR_MODE) const; - Mailbox::iterator end(void) const; + Mailbox::iterator end() const; - unsigned int getMaxUid(void) const; - unsigned int getMaxSqnr(void) const; - unsigned int getUidValidity(void) const; - unsigned int getUidNext(void) const; + unsigned int getMaxUid() const; + unsigned int getMaxSqnr() const; + unsigned int getUidValidity() const; + unsigned int getUidNext() const; bool getUpdates(bool doscan, unsigned int type, PendingUpdates &updates, bool forceScan); - const std::string &getPath(void) const; + const std::string &getPath() const; void setPath(const std::string &path_in); void bumpUidValidity(const std::string &) const; unsigned int getStatusID(const std::string &) const; bool getStatus(const std::string &, Status &) const; - void updateFlags(void); + void updateFlags(); bool isMailbox(const std::string &) const; bool isMarked(const std::string &) const; bool selectMailbox(const std::string &name, const std::string &s_in); - void closeMailbox(void); - void expungeMailbox(void); + void closeMailbox(); + void expungeMailbox(); bool createMailbox(const std::string &s, mode_t mode, uid_t owner = 0, @@ -125,12 +125,12 @@ namespace Binc { Message *createMessage(const std::string &mbox, time_t idate = 0); bool commitNewMessages(const std::string &mbox); - bool rollBackNewMessages(void); + bool rollBackNewMessages(); bool fastCopy(Message &source, Mailbox &desttype, const std::string &destname); - Maildir(void); - ~Maildir(void); + Maildir(); + ~Maildir(); friend class Maildir::iterator; friend class MaildirMessage; @@ -138,9 +138,9 @@ namespace Binc { protected: enum ReadCacheResult { Ok, NoCache, Error }; - ReadCacheResult readCache(void); - bool writeCache(void); - bool scanFileNames(void) const; + ReadCacheResult readCache(); + bool writeCache(); + bool scanFileNames() const; enum ScanResult { Success = 0, TemporaryError = 1, PermanentError = 2 }; |