author | alwin <alwin> | 2003-12-10 01:19:51 (UTC) |
---|---|---|
committer | alwin <alwin> | 2003-12-10 01:19:51 (UTC) |
commit | c244afea4a03d7ae948152b5abac2f059fb1e789 (patch) (unidiff) | |
tree | 74e9a6117c3c3854dd8f34cd5599dfb7fb185c86 /noncore/net/mail/mailtypes.h | |
parent | 9a7db10da12232625be270feae5df761cfe11afa (diff) | |
download | opie-c244afea4a03d7ae948152b5abac2f059fb1e789.zip opie-c244afea4a03d7ae948152b5abac2f059fb1e789.tar.gz opie-c244afea4a03d7ae948152b5abac2f059fb1e789.tar.bz2 |
forgot the reply-to entry
-rw-r--r-- | noncore/net/mail/mailtypes.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/net/mail/mailtypes.h b/noncore/net/mail/mailtypes.h index c8d533a..6d6b080 100644 --- a/noncore/net/mail/mailtypes.h +++ b/noncore/net/mail/mailtypes.h | |||
@@ -23,60 +23,63 @@ | |||
23 | (imap) or from a file-based cache (pop3?) | 23 | (imap) or from a file-based cache (pop3?) |
24 | So there is no interface "const QString&body()" but you should | 24 | So there is no interface "const QString&body()" but you should |
25 | make a request to the mailwrapper with this class as parameter to | 25 | make a request to the mailwrapper with this class as parameter to |
26 | get the body. Same words for the attachments. | 26 | get the body. Same words for the attachments. |
27 | */ | 27 | */ |
28 | class RecMail | 28 | class RecMail |
29 | { | 29 | { |
30 | public: | 30 | public: |
31 | RecMail(); | 31 | RecMail(); |
32 | RecMail(const RecMail&old); | 32 | RecMail(const RecMail&old); |
33 | virtual ~RecMail(){} | 33 | virtual ~RecMail(){} |
34 | 34 | ||
35 | const int getNumber()const{return msg_number;} | 35 | const int getNumber()const{return msg_number;} |
36 | void setNumber(int number){msg_number=number;} | 36 | void setNumber(int number){msg_number=number;} |
37 | const QString&getDate()const{ return date; } | 37 | const QString&getDate()const{ return date; } |
38 | void setDate( const QString&a ) { date = a; } | 38 | void setDate( const QString&a ) { date = a; } |
39 | const QString&getFrom()const{ return from; } | 39 | const QString&getFrom()const{ return from; } |
40 | void setFrom( const QString&a ) { from = a; } | 40 | void setFrom( const QString&a ) { from = a; } |
41 | const QString&getSubject()const { return subject; } | 41 | const QString&getSubject()const { return subject; } |
42 | void setSubject( const QString&s ) { subject = s; } | 42 | void setSubject( const QString&s ) { subject = s; } |
43 | const QString&getMbox()const{return mbox;} | 43 | const QString&getMbox()const{return mbox;} |
44 | void setMbox(const QString&box){mbox = box;} | 44 | void setMbox(const QString&box){mbox = box;} |
45 | void setMsgid(const QString&id){msg_id=id;} | 45 | void setMsgid(const QString&id){msg_id=id;} |
46 | const QString&Msgid()const{return msg_id;} | 46 | const QString&Msgid()const{return msg_id;} |
47 | void setReplyto(const QString&reply){replyto=reply;} | ||
48 | const QString&Replyto()const{return replyto;} | ||
49 | |||
47 | 50 | ||
48 | void setTo(const QStringList&list); | 51 | void setTo(const QStringList&list); |
49 | const QStringList&To()const; | 52 | const QStringList&To()const; |
50 | void setCC(const QStringList&list); | 53 | void setCC(const QStringList&list); |
51 | const QStringList&CC()const; | 54 | const QStringList&CC()const; |
52 | void setBcc(const QStringList&list); | 55 | void setBcc(const QStringList&list); |
53 | const QStringList&Bcc()const; | 56 | const QStringList&Bcc()const; |
54 | const QBitArray&getFlags()const{return msg_flags;} | 57 | const QBitArray&getFlags()const{return msg_flags;} |
55 | void setFlags(const QBitArray&flags){msg_flags = flags;} | 58 | void setFlags(const QBitArray&flags){msg_flags = flags;} |
56 | 59 | ||
57 | protected: | 60 | protected: |
58 | QString subject,date,from,mbox,msg_id; | 61 | QString subject,date,from,mbox,msg_id,replyto; |
59 | int msg_number; | 62 | int msg_number; |
60 | QBitArray msg_flags; | 63 | QBitArray msg_flags; |
61 | QStringList to,cc,bcc; | 64 | QStringList to,cc,bcc; |
62 | void init(); | 65 | void init(); |
63 | void copy_old(const RecMail&old); | 66 | void copy_old(const RecMail&old); |
64 | }; | 67 | }; |
65 | 68 | ||
66 | class RecPart | 69 | class RecPart |
67 | { | 70 | { |
68 | protected: | 71 | protected: |
69 | QString m_type,m_subtype,m_identifier,m_encoding; | 72 | QString m_type,m_subtype,m_identifier,m_encoding; |
70 | public: | 73 | public: |
71 | RecPart(); | 74 | RecPart(); |
72 | RecPart(const QString&identifier,const QString&type="",const QString&subtype="",const QString&encoding="BASE64"); | 75 | RecPart(const QString&identifier,const QString&type="",const QString&subtype="",const QString&encoding="BASE64"); |
73 | virtual ~RecPart(); | 76 | virtual ~RecPart(); |
74 | 77 | ||
75 | const QString&Type()const; | 78 | const QString&Type()const; |
76 | void setType(const QString&type); | 79 | void setType(const QString&type); |
77 | const QString&Subtype()const; | 80 | const QString&Subtype()const; |
78 | void setSubtype(const QString&subtype); | 81 | void setSubtype(const QString&subtype); |
79 | const QString&Identifier()const; | 82 | const QString&Identifier()const; |
80 | void setIdentifier(const QString&identifier); | 83 | void setIdentifier(const QString&identifier); |
81 | const QString&Encoding()const; | 84 | const QString&Encoding()const; |
82 | void setEncoding(const QString&encoding); | 85 | void setEncoding(const QString&encoding); |