diff options
| author | Vincent Richard <[email protected]> | 2004-10-21 17:05:47 +0200 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2004-10-21 17:05:47 +0200 |
| commit | 2949fb51f13e1236d5c161f02e1c2c8541100e9f (patch) | |
| tree | 991edcf50483116ce83977a4d9e652de8c5328dc /src/mailboxField.hpp | |
| parent | header class unit tests added (diff) | |
| download | vmime-2949fb51f13e1236d5c161f02e1c2c8541100e9f.tar.gz vmime-2949fb51f13e1236d5c161f02e1c2c8541100e9f.zip | |
Refactoring (see ChangeLog).
Diffstat (limited to 'src/mailboxField.hpp')
| -rw-r--r-- | src/mailboxField.hpp | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/src/mailboxField.hpp b/src/mailboxField.hpp index 13cd8e49..a8213613 100644 --- a/src/mailboxField.hpp +++ b/src/mailboxField.hpp @@ -21,10 +21,7 @@ #define VMIME_MAILBOXFIELD_HPP_INCLUDED -#include "base.hpp" -#include "component.hpp" - -#include "headerFieldFactory.hpp" +#include "genericField.hpp" #include "mailbox.hpp" @@ -32,35 +29,18 @@ namespace vmime { -class mailboxField : public headerField +class mailboxField : public genericField <mailbox> { friend class headerFieldFactory::registerer <mailboxField>; protected: mailboxField(); + mailboxField(const mailboxField&); public: - void copyFrom(const headerField& field); - - mailboxField& operator=(const class mailbox& mailbox); - - const mailbox& value() const { return (m_mailbox); } - mailbox& value() { return (m_mailbox); } - -protected: - - mailbox m_mailbox; - -public: - - using headerField::parse; - using headerField::generate; - - // Component parsing & assembling void parse(const string& buffer, const string::size_type position, const string::size_type end, string::size_type* newPosition = NULL); - void generate(utility::outputStream& os, const string::size_type maxLineLength = lineLengthLimits::infinite, const string::size_type curLinePos = 0, string::size_type* newLinePos = NULL) const; }; |
