Diffstat (limited to 'noncore/net/mail/mailtypes.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/mailtypes.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/noncore/net/mail/mailtypes.h b/noncore/net/mail/mailtypes.h index bb6a483..c8d533a 100644 --- a/noncore/net/mail/mailtypes.h +++ b/noncore/net/mail/mailtypes.h | |||
@@ -20,52 +20,56 @@ | |||
20 | But: not from the point of view of the device. | 20 | But: not from the point of view of the device. |
21 | Mailbodies can be real large. So we request them when | 21 | Mailbodies can be real large. So we request them when |
22 | needed from the mail-wrapper class direct from the server itself | 22 | needed from the mail-wrapper class direct from the server itself |
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 | virtual ~RecMail(){} | 33 | virtual ~RecMail(){} |
33 | 34 | ||
34 | const int getNumber()const{return msg_number;} | 35 | const int getNumber()const{return msg_number;} |
35 | void setNumber(int number){msg_number=number;} | 36 | void setNumber(int number){msg_number=number;} |
36 | const QString&getDate()const{ return date; } | 37 | const QString&getDate()const{ return date; } |
37 | void setDate( const QString&a ) { date = a; } | 38 | void setDate( const QString&a ) { date = a; } |
38 | const QString&getFrom()const{ return from; } | 39 | const QString&getFrom()const{ return from; } |
39 | void setFrom( const QString&a ) { from = a; } | 40 | void setFrom( const QString&a ) { from = a; } |
40 | const QString&getSubject()const { return subject; } | 41 | const QString&getSubject()const { return subject; } |
41 | void setSubject( const QString&s ) { subject = s; } | 42 | void setSubject( const QString&s ) { subject = s; } |
42 | const QString&getMbox()const{return mbox;} | 43 | const QString&getMbox()const{return mbox;} |
43 | void setMbox(const QString&box){mbox = box;} | 44 | void setMbox(const QString&box){mbox = box;} |
44 | 45 | void setMsgid(const QString&id){msg_id=id;} | |
46 | const QString&Msgid()const{return msg_id;} | ||
47 | |||
45 | void setTo(const QStringList&list); | 48 | void setTo(const QStringList&list); |
46 | const QStringList&To()const; | 49 | const QStringList&To()const; |
47 | void setCC(const QStringList&list); | 50 | void setCC(const QStringList&list); |
48 | const QStringList&CC()const; | 51 | const QStringList&CC()const; |
49 | void setBcc(const QStringList&list); | 52 | void setBcc(const QStringList&list); |
50 | const QStringList&Bcc()const; | 53 | const QStringList&Bcc()const; |
51 | |||
52 | const QBitArray&getFlags()const{return msg_flags;} | 54 | const QBitArray&getFlags()const{return msg_flags;} |
53 | void setFlags(const QBitArray&flags){msg_flags = flags;} | 55 | void setFlags(const QBitArray&flags){msg_flags = flags;} |
54 | 56 | ||
55 | protected: | 57 | protected: |
56 | QString subject,date,from,mbox; | 58 | QString subject,date,from,mbox,msg_id; |
57 | int msg_number; | 59 | int msg_number; |
58 | QBitArray msg_flags; | 60 | QBitArray msg_flags; |
59 | QStringList to,cc,bcc; | 61 | QStringList to,cc,bcc; |
62 | void init(); | ||
63 | void copy_old(const RecMail&old); | ||
60 | }; | 64 | }; |
61 | 65 | ||
62 | class RecPart | 66 | class RecPart |
63 | { | 67 | { |
64 | protected: | 68 | protected: |
65 | QString m_type,m_subtype,m_identifier,m_encoding; | 69 | QString m_type,m_subtype,m_identifier,m_encoding; |
66 | public: | 70 | public: |
67 | RecPart(); | 71 | RecPart(); |
68 | RecPart(const QString&identifier,const QString&type="",const QString&subtype="",const QString&encoding="BASE64"); | 72 | RecPart(const QString&identifier,const QString&type="",const QString&subtype="",const QString&encoding="BASE64"); |
69 | virtual ~RecPart(); | 73 | virtual ~RecPart(); |
70 | 74 | ||
71 | const QString&Type()const; | 75 | const QString&Type()const; |