00001
00002
00003
00004
00005
00006
00007 #ifndef _MIMETIC_RFC822_MAILBOXLIST_H_
00008 #define _MIMETIC_RFC822_MAILBOXLIST_H_
00009 #include <string>
00010 #include <vector>
00011 #include <mimetic/utils.h>
00012 #include <mimetic/rfc822/mailbox.h>
00013
00014
00015 namespace mimetic
00016 {
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 struct MailboxList: public FieldValue, public std::vector<Mailbox>
00035 {
00036 MailboxList();
00037 MailboxList(const char*);
00038 MailboxList(const std::string&);
00039 MailboxList(const std::string&, const std::string&);
00040
00041 std::string str() const;
00042 protected:
00043 FieldValue* clone() const;
00044 private:
00045 void set(const std::string&);
00046 istring m_name;
00047 };
00048
00049
00050
00051 }
00052
00053 #endif