aboutsummaryrefslogtreecommitdiffstats
path: root/src/messageId.hpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2004-10-21 17:05:47 +0200
committerVincent Richard <[email protected]>2004-10-21 17:05:47 +0200
commit2949fb51f13e1236d5c161f02e1c2c8541100e9f (patch)
tree991edcf50483116ce83977a4d9e652de8c5328dc /src/messageId.hpp
parentheader class unit tests added (diff)
downloadvmime-2949fb51f13e1236d5c161f02e1c2c8541100e9f.tar.gz
vmime-2949fb51f13e1236d5c161f02e1c2c8541100e9f.zip
Refactoring (see ChangeLog).
Diffstat (limited to 'src/messageId.hpp')
-rw-r--r--src/messageId.hpp47
1 files changed, 39 insertions, 8 deletions
diff --git a/src/messageId.hpp b/src/messageId.hpp
index e280dfaf..85b9fd2f 100644
--- a/src/messageId.hpp
+++ b/src/messageId.hpp
@@ -43,24 +43,55 @@ public:
public:
- const string& left() const { return (m_left); }
- string& left() { return (m_left); }
+ /** Return the left part of the message identifier.
+ *
+ * @return left part of message identifier
+ */
+ const string& getLeft() const;
- const string& right() const { return (m_right); }
- string& right() { return (m_right); }
+ /** Set the left part of the message identifier.
+ *
+ * @param left left part of message identifier
+ */
+ void setLeft(const string& left);
+
+ /** Return the right part of the message identifier.
+ *
+ * @return right part of message identifier
+ */
+ const string& getRight() const;
+
+ /** Set the right part of the message identifier.
+ *
+ * @param right right part of message identifier
+ */
+ void setRight(const string& right);
-public:
- messageId& operator=(const messageId& source);
messageId& operator=(const string& id);
const bool operator==(const messageId& mid) const;
+ const bool operator!=(const messageId& mid) const;
+ /** Generate a random message identifier.
+ *
+ * @return randomly created message identifier
+ */
static messageId generateId();
- const string id() const;
+ /** Return the message identifier constructed by using
+ * the right part and the left part, separated by
+ * a '@' character.
+ *
+ * @return full message identifier
+ */
+ const string getId() const;
+
+ messageId* clone() const;
+ void copyFrom(const component& other);
+ messageId& operator=(const messageId& other);
-protected:
+private:
string m_left;
string m_right;