summaryrefslogtreecommitdiff
path: root/src/include/message.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/message.h')
-rw-r--r--src/include/message.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/include/message.h b/src/include/message.h
index 130902e..e9c31f6 100644
--- a/src/include/message.h
+++ b/src/include/message.h
@@ -47,34 +47,34 @@ namespace Binc {
};
virtual void setUID(unsigned int) = 0;
- virtual unsigned int getUID(void) const = 0;
+ virtual unsigned int getUID() const = 0;
virtual void setSize(unsigned int) = 0;
virtual unsigned int getSize(bool render = false) const = 0;
virtual void setStdFlag(unsigned char) = 0;
- virtual void resetStdFlags(void) = 0;
- virtual unsigned char getStdFlags(void) const = 0;
+ virtual void resetStdFlags() = 0;
+ virtual unsigned char getStdFlags() const = 0;
virtual void setCustomFlag(const std::string &flag) = 0;
virtual void removeCustomFlag(const std::string &flag) = 0;
- virtual void resetCustomFlags(void) = 0;
- virtual std::vector<std::string> getCustomFlags(void) const = 0;
+ virtual void resetCustomFlags() = 0;
+ virtual std::vector<std::string> getCustomFlags() const = 0;
- virtual void setFlagsUnchanged(void) = 0;
- virtual bool hasFlagsChanged(void) const = 0;
+ virtual void setFlagsUnchanged() = 0;
+ virtual bool hasFlagsChanged() const = 0;
virtual void setInternalDate(time_t) = 0;
- virtual time_t getInternalDate(void) const = 0;
+ virtual time_t getInternalDate() const = 0;
- // virtual void rewind(void) = 0;
+ // virtual void rewind() = 0;
virtual int readChunk(std::string &) = 0;
virtual bool appendChunk(const std::string &) = 0;
- virtual void close(void) = 0;
+ virtual void close() = 0;
- virtual void setExpunged(void) = 0;
- virtual void setUnExpunged(void) = 0;
- virtual bool isExpunged(void) const = 0;
+ virtual void setExpunged() = 0;
+ virtual void setUnExpunged() = 0;
+ virtual bool isExpunged() const = 0;
virtual const std::string &getHeader(const std::string &header) = 0;
@@ -85,7 +85,7 @@ namespace Binc {
virtual bool printBodyStructure(bool extended = true) const = 0;
- virtual bool printEnvelope(void) const = 0;
+ virtual bool printEnvelope() const = 0;
virtual bool printHeader(const std::string &section,
std::vector<std::string> headers,
@@ -117,26 +117,26 @@ namespace Binc {
unsigned int length = UINTMAX,
bool onlyText = false) const = 0;
- Message(void);
- virtual ~Message(void);
+ Message();
+ virtual ~Message();
void setLastError(const std::string &) const;
- const std::string &getLastError(void) const;
+ const std::string &getLastError() const;
private:
static std::string lastError;
};
- inline Message::Message(void) {}
+ inline Message::Message() {}
- inline Message::~Message(void) {}
+ inline Message::~Message() {}
inline void Message::setLastError(const std::string &error) const
{
lastError = error;
}
- inline const std::string &Message::getLastError(void) const
+ inline const std::string &Message::getLastError() const
{
return lastError;
}