summaryrefslogtreecommitdiff
path: root/src/include/maildirmessage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/maildirmessage.h')
-rw-r--r--src/include/maildirmessage.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/include/maildirmessage.h b/src/include/maildirmessage.h
index 96dcf73..b1bb04a 100644
--- a/src/include/maildirmessage.h
+++ b/src/include/maildirmessage.h
@@ -48,7 +48,7 @@ namespace Binc {
/*!
Returns the UID of a message.
*/
- unsigned int getUID(void) const;
+ unsigned int getUID() const;
/*!
Sets the size of the message. This size must be consistent with
@@ -79,19 +79,19 @@ namespace Binc {
/*!
Resets all flags on a message.
*/
- void resetStdFlags(void);
+ void resetStdFlags();
/*!
Returns the flags that are set on a message.
*/
- unsigned char getStdFlags(void) const;
+ unsigned char getStdFlags() const;
/*
*/
void setCustomFlag(const std::string &flag);
void removeCustomFlag(const std::string &flag);
- void resetCustomFlags(void);
- std::vector<std::string> getCustomFlags(void) const;
+ void resetCustomFlags();
+ std::vector<std::string> getCustomFlags() const;
/*!
Sets the internal flags.
@@ -110,20 +110,20 @@ namespace Binc {
/*!
Returns the internal flags.
*/
- unsigned char getInternalFlags(void) const;
+ unsigned char getInternalFlags() const;
/*!
Sets a state in a message that indicates that no flags have been
changed. Used together with hasFlagsChanged() to check if the
flags in this message have been changed.
*/
- void setFlagsUnchanged(void);
+ void setFlagsUnchanged();
/*!
Returns true if flags have been added or reset since the last
call to setFlagsUnchanged(), otherwise returns false.
*/
- bool hasFlagsChanged(void) const;
+ bool hasFlagsChanged() const;
/*!
Sets the internal date of a message. This is usually the date in
@@ -138,7 +138,7 @@ namespace Binc {
Returns the internal date of the message in seconds since the
epoch.
*/
- time_t getInternalDate(void) const;
+ time_t getInternalDate() const;
/*!
Reads a chunk of up to 4096 bytes from a message. Call close()
@@ -163,24 +163,24 @@ namespace Binc {
/*!
Resets a message and frees all allocated resources.
*/
- void close(void);
+ void close();
/*!
Marks the message as expunged. Equivalent to calling
setStdFlag() with F_EXPUNGED.
*/
- void setExpunged(void);
+ void setExpunged();
/*!
Removes the F_EXPUNGED flag from the message.
*/
- void setUnExpunged(void);
+ void setUnExpunged();
/*!
Returns true if the message is marked as expunged, otherwise
returns false.
*/
- bool isExpunged(void) const;
+ bool isExpunged() const;
/*!
Returns the first occurrance of a MIME header in a message,
@@ -197,7 +197,7 @@ namespace Binc {
bool printBodyStructure(bool extended = true) const;
- bool printEnvelope(void) const;
+ bool printEnvelope() const;
bool printHeader(const std::string &section,
std::vector<std::string> headers,
@@ -229,11 +229,11 @@ namespace Binc {
bool onlyText = false) const;
void setUnique(const std::string &s_in);
- const std::string &getUnique(void) const;
+ const std::string &getUnique() const;
//--
MaildirMessage(Maildir &home);
- ~MaildirMessage(void);
+ ~MaildirMessage();
friend class Maildir;
@@ -253,17 +253,17 @@ namespace Binc {
};
protected:
- bool parseFull(void) const;
- bool parseHeaders(void) const;
+ bool parseFull() const;
+ bool parseHeaders() const;
- std::string getFixedFilename(void) const;
- std::string getFileName(void) const;
+ std::string getFixedFilename() const;
+ std::string getFileName() const;
void setFile(int fd);
- int getFile(void) const;
+ int getFile() const;
void setSafeName(const std::string &name);
- const std::string &getSafeName(void) const;
+ const std::string &getSafeName() const;
private:
mutable int fd;
@@ -287,12 +287,12 @@ namespace Binc {
enum ParseStatus { NotParsed, HeaderParsed, AllParsed };
- static MaildirMessageCache &getInstance(void);
+ static MaildirMessageCache &getInstance();
void removeStatus(const MaildirMessage *);
void addStatus(const MaildirMessage *, ParseStatus pstat);
ParseStatus getStatus(const MaildirMessage *) const;
- void clear(void);
+ void clear();
private:
MaildirMessageCache();