diff options
Diffstat (limited to 'vmime/messageIdSequence.hpp')
-rw-r--r-- | vmime/messageIdSequence.hpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/vmime/messageIdSequence.hpp b/vmime/messageIdSequence.hpp index ec54dbd3..39c415c7 100644 --- a/vmime/messageIdSequence.hpp +++ b/vmime/messageIdSequence.hpp @@ -45,18 +45,18 @@ public: ~messageIdSequence(); - ref <component> clone() const; + shared_ptr <component> clone() const; void copyFrom(const component& other); messageIdSequence& operator=(const messageIdSequence& other); - const std::vector <ref <component> > getChildComponents(); + const std::vector <shared_ptr <component> > getChildComponents(); /** Add a message-id at the end of the list. * * @param mid message-id to append */ - void appendMessageId(ref <messageId> mid); + void appendMessageId(shared_ptr <messageId> mid); /** Insert a new message-id before the specified message-id. * @@ -64,7 +64,7 @@ public: * @param mid message-id to insert * @throw exceptions::no_such_messageid if the message-id is not in the list */ - void insertMessageIdBefore(ref <messageId> beforeMid, ref <messageId> mid); + void insertMessageIdBefore(shared_ptr <messageId> beforeMid, shared_ptr <messageId> mid); /** Insert a new message-id before the specified position. * @@ -72,7 +72,7 @@ public: * the beginning of the list) * @param mid message-id to insert */ - void insertMessageIdBefore(const size_t pos, ref <messageId> mid); + void insertMessageIdBefore(const size_t pos, shared_ptr <messageId> mid); /** Insert a new message-id after the specified message-id. * @@ -80,21 +80,21 @@ public: * @param mid message-id to insert * @throw exceptions::no_such_message_id if the message-id is not in the list */ - void insertMessageIdAfter(ref <messageId> afterMid, ref <messageId> mid); + void insertMessageIdAfter(shared_ptr <messageId> afterMid, shared_ptr <messageId> mid); /** Insert a new message-id after the specified position. * * @param pos position of the message-id before the new message-id * @param mid message-id to insert */ - void insertMessageIdAfter(const size_t pos, ref <messageId> mid); + void insertMessageIdAfter(const size_t pos, shared_ptr <messageId> mid); /** Remove the specified message-id from the list. * * @param mid message-id to remove * @throw exceptions::no_such_message_id if the message-id is not in the list */ - void removeMessageId(ref <messageId> mid); + void removeMessageId(shared_ptr <messageId> mid); /** Remove the message-id at the specified position. * @@ -123,30 +123,30 @@ public: * @param pos position * @return message-id at position 'pos' */ - const ref <messageId> getMessageIdAt(const size_t pos); + const shared_ptr <messageId> getMessageIdAt(const size_t pos); /** Return the message-id at the specified position. * * @param pos position * @return message-id at position 'pos' */ - const ref <const messageId> getMessageIdAt(const size_t pos) const; + const shared_ptr <const messageId> getMessageIdAt(const size_t pos) const; /** Return the message-id list. * * @return list of message-ids */ - const std::vector <ref <const messageId> > getMessageIdList() const; + const std::vector <shared_ptr <const messageId> > getMessageIdList() const; /** Return the message-id list. * * @return list of message-ids */ - const std::vector <ref <messageId> > getMessageIdList(); + const std::vector <shared_ptr <messageId> > getMessageIdList(); private: - std::vector <ref <messageId> > m_list; + std::vector <shared_ptr <messageId> > m_list; protected: |