diff options
Diffstat (limited to 'src/include/mime.h')
-rw-r--r-- | src/include/mime.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/include/mime.h b/src/include/mime.h index ecf02a9..14d65e6 100644 --- a/src/include/mime.h +++ b/src/include/mime.h @@ -21,17 +21,17 @@ namespace Binc { mutable std::string value; public: - inline const std::string &getKey(void) const + inline const std::string &getKey() const { return key; } - inline const std::string &getValue(void) const + inline const std::string &getValue() const { return value; } - HeaderItem(void); + HeaderItem(); HeaderItem(const std::string &key, const std::string &value); }; @@ -43,10 +43,10 @@ namespace Binc { bool getFirstHeader(const std::string &key, HeaderItem &dest) const; bool getAllHeaders(const std::string &key, std::vector<HeaderItem> &dest) const; void add(const std::string &name, const std::string &content); - void clear(void) const; + void clear() const; - Header(void); - ~Header(void); + Header(); + ~Header(); }; class IODevice; @@ -76,42 +76,42 @@ namespace Binc { mutable std::vector<MimePart> members; - inline const std::string &getSubType(void) const + inline const std::string &getSubType() const { return subtype; } - inline bool isMultipart(void) const + inline bool isMultipart() const { return multipart; } - inline bool isMessageRFC822(void) const + inline bool isMessageRFC822() const { return messagerfc822; } - inline unsigned int getSize(void) const + inline unsigned int getSize() const { return bodylength; } - inline unsigned int getNofLines(void) const + inline unsigned int getNofLines() const { return nlines; } - inline unsigned int getNofBodyLines(void) const + inline unsigned int getNofBodyLines() const { return nbodylines; } - inline unsigned int getBodyLength(void) const + inline unsigned int getBodyLength() const { return bodylength; } - inline unsigned int getBodyStartOffset(void) const + inline unsigned int getBodyStartOffset() const { return bodystartoffsetcrlf; } @@ -131,7 +131,7 @@ namespace Binc { Binc::IODevice &output, unsigned int startoffset, unsigned int length) const; - virtual void clear(void) const; + virtual void clear() const; const MimePart *getPart(const std::string &findpart, std::string genpart, @@ -139,8 +139,8 @@ namespace Binc { virtual int parseOnlyHeader(const std::string &toboundary) const; virtual int parseFull(const std::string &toboundary, int &boundarysize) const; - MimePart(void); - virtual ~MimePart(void); + MimePart(); + virtual ~MimePart(); }; class MimeDocument : public MimePart { @@ -151,20 +151,20 @@ namespace Binc { public: void parseOnlyHeader(int fd) const; void parseFull(int fd) const; - void clear(void) const; + void clear() const; - inline bool isHeaderParsed(void) + inline bool isHeaderParsed() { return headerIsParsed; } - inline bool isAllParsed(void) + inline bool isAllParsed() { return allIsParsed; } - MimeDocument(void); - ~MimeDocument(void); + MimeDocument(); + ~MimeDocument(); }; }; |