diff options
Diffstat (limited to '')
-rw-r--r-- | vmime/messaging/imap/IMAPMessage.hpp | 4 | ||||
-rw-r--r-- | vmime/messaging/maildir/maildirMessage.hpp | 4 | ||||
-rw-r--r-- | vmime/messaging/message.hpp | 8 | ||||
-rw-r--r-- | vmime/messaging/pop3/POP3Message.hpp | 4 |
4 files changed, 10 insertions, 10 deletions
diff --git a/vmime/messaging/imap/IMAPMessage.hpp b/vmime/messaging/imap/IMAPMessage.hpp index 33e43fec..04032b42 100644 --- a/vmime/messaging/imap/IMAPMessage.hpp +++ b/vmime/messaging/imap/IMAPMessage.hpp @@ -63,7 +63,7 @@ public: const structure& getStructure() const; structure& getStructure(); - const header& getHeader() const; + ref <const header> getHeader() const; const int getFlags() const; void setFlags(const int flags, const int mode = FLAG_MODE_SET); @@ -85,7 +85,7 @@ private: void convertAddressList(const IMAPParser::address_list& src, mailboxList& dest); - header& getOrCreateHeader(); + ref <header> getOrCreateHeader(); void onFolderClosed(); diff --git a/vmime/messaging/maildir/maildirMessage.hpp b/vmime/messaging/maildir/maildirMessage.hpp index c3e2e377..36c91cd4 100644 --- a/vmime/messaging/maildir/maildirMessage.hpp +++ b/vmime/messaging/maildir/maildirMessage.hpp @@ -61,7 +61,7 @@ public: const structure& getStructure() const; structure& getStructure(); - const header& getHeader() const; + ref <const header> getHeader() const; const int getFlags() const; void setFlags(const int flags, const int mode = FLAG_MODE_SET); @@ -77,7 +77,7 @@ private: void onFolderClosed(); - header& getOrCreateHeader(); + ref <header> getOrCreateHeader(); void extractImpl(utility::outputStream& os, utility::progressionListener* progress, const int start, const int length, const int partialStart, const int partialLength, const bool peek) const; diff --git a/vmime/messaging/message.hpp b/vmime/messaging/message.hpp index 3f87f8f5..0784d1b3 100644 --- a/vmime/messaging/message.hpp +++ b/vmime/messaging/message.hpp @@ -87,7 +87,7 @@ public: /** Return the sub-part at the specified position. * This provide easy access to parts: - * Eg: "message->extract(message->structure()[3][1][2])". + * Eg: "message->extractPart(message->getStructure()[3][1][2])". * * @param x index of the sub-part * @return sub-part at position 'x' @@ -96,7 +96,7 @@ public: /** Return the sub-part at the specified position. * This provide easy access to parts: - * Eg: "message->extract(message->structure()[3][1][2])". + * Eg: "message->extractPart(message->getStructure()[3][1][2])". * * @param x index of the sub-part * @return sub-part at position 'x' @@ -183,7 +183,7 @@ public: * * @return header section of the message */ - virtual const header& getHeader() const = 0; + virtual ref <const header> getHeader() const = 0; /** Return the sequence number of this message. This number is * used to reference the message in the folder. @@ -262,7 +262,7 @@ public: */ virtual void extract(utility::outputStream& os, utility::progressionListener* progress = NULL, const int start = 0, const int length = -1, const bool peek = false) const = 0; - /** Extract the specified (MIME) part of the message (header + contents). + /** Extract the specified MIME part of the message (header + contents). * * \warning Partial fetch might not be supported by the underlying protocol. * diff --git a/vmime/messaging/pop3/POP3Message.hpp b/vmime/messaging/pop3/POP3Message.hpp index 499f3427..5aa22d90 100644 --- a/vmime/messaging/pop3/POP3Message.hpp +++ b/vmime/messaging/pop3/POP3Message.hpp @@ -63,7 +63,7 @@ public: const structure& getStructure() const; structure& getStructure(); - const header& getHeader() const; + ref <const header> getHeader() const; const int getFlags() const; void setFlags(const int flags, const int mode = FLAG_MODE_SET); @@ -86,7 +86,7 @@ private: bool m_deleted; - header* m_header; + ref <header> m_header; }; |