author | alwin <alwin> | 2003-12-13 21:03:45 (UTC) |
---|---|---|
committer | alwin <alwin> | 2003-12-13 21:03:45 (UTC) |
commit | c0e86973b0cd2d01163ccf60340c8d295aa645f4 (patch) (unidiff) | |
tree | 4ccb0f7b8071711bf7ebc5320ea5c2f6974d6fb4 /noncore/net/mail/libmailwrapper/mailtypes.h | |
parent | 85444223acfafd9d7955032b2cbdad3279ba27ad (diff) | |
download | opie-c0e86973b0cd2d01163ccf60340c8d295aa645f4.zip opie-c0e86973b0cd2d01163ccf60340c8d295aa645f4.tar.gz opie-c0e86973b0cd2d01163ccf60340c8d295aa645f4.tar.bz2 |
the RecMail class get on creation a mailwrapper assigened
Diffstat (limited to 'noncore/net/mail/libmailwrapper/mailtypes.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/mailtypes.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/noncore/net/mail/libmailwrapper/mailtypes.h b/noncore/net/mail/libmailwrapper/mailtypes.h index 24518cf..9ef762d 100644 --- a/noncore/net/mail/libmailwrapper/mailtypes.h +++ b/noncore/net/mail/libmailwrapper/mailtypes.h | |||
@@ -12,12 +12,13 @@ | |||
12 | #include <qbitarray.h> | 12 | #include <qbitarray.h> |
13 | #include <qstring.h> | 13 | #include <qstring.h> |
14 | #include <qstringlist.h> | 14 | #include <qstringlist.h> |
15 | #include <qmap.h> | 15 | #include <qmap.h> |
16 | #include <qvaluelist.h> | 16 | #include <qvaluelist.h> |
17 | 17 | ||
18 | class AbstractMail; | ||
18 | /* a class to describe mails in a mailbox */ | 19 | /* a class to describe mails in a mailbox */ |
19 | /* Attention! | 20 | /* Attention! |
20 | From programmers point of view it would make sense to | 21 | From programmers point of view it would make sense to |
21 | store the mail body into this class, too. | 22 | store the mail body into this class, too. |
22 | But: not from the point of view of the device. | 23 | But: not from the point of view of the device. |
23 | Mailbodies can be real large. So we request them when | 24 | Mailbodies can be real large. So we request them when |
@@ -29,13 +30,13 @@ | |||
29 | */ | 30 | */ |
30 | class RecMail | 31 | class RecMail |
31 | { | 32 | { |
32 | public: | 33 | public: |
33 | RecMail(); | 34 | RecMail(); |
34 | RecMail(const RecMail&old); | 35 | RecMail(const RecMail&old); |
35 | virtual ~RecMail(){} | 36 | virtual ~RecMail(); |
36 | 37 | ||
37 | const int getNumber()const{return msg_number;} | 38 | const int getNumber()const{return msg_number;} |
38 | void setNumber(int number){msg_number=number;} | 39 | void setNumber(int number){msg_number=number;} |
39 | const QString&getDate()const{ return date; } | 40 | const QString&getDate()const{ return date; } |
40 | void setDate( const QString&a ) { date = a; } | 41 | void setDate( const QString&a ) { date = a; } |
41 | const QString&getFrom()const{ return from; } | 42 | const QString&getFrom()const{ return from; } |
@@ -57,18 +58,22 @@ public: | |||
57 | void setCC(const QStringList&list); | 58 | void setCC(const QStringList&list); |
58 | const QStringList&CC()const; | 59 | const QStringList&CC()const; |
59 | void setBcc(const QStringList&list); | 60 | void setBcc(const QStringList&list); |
60 | const QStringList&Bcc()const; | 61 | const QStringList&Bcc()const; |
61 | const QBitArray&getFlags()const{return msg_flags;} | 62 | const QBitArray&getFlags()const{return msg_flags;} |
62 | void setFlags(const QBitArray&flags){msg_flags = flags;} | 63 | void setFlags(const QBitArray&flags){msg_flags = flags;} |
64 | |||
65 | void setWrapper(AbstractMail*wrapper); | ||
66 | AbstractMail* Wrapper(); | ||
63 | 67 | ||
64 | protected: | 68 | protected: |
65 | QString subject,date,from,mbox,msg_id,replyto; | 69 | QString subject,date,from,mbox,msg_id,replyto; |
66 | int msg_number,msg_size; | 70 | int msg_number,msg_size; |
67 | QBitArray msg_flags; | 71 | QBitArray msg_flags; |
68 | QStringList to,cc,bcc; | 72 | QStringList to,cc,bcc; |
73 | AbstractMail*wrapper; | ||
69 | void init(); | 74 | void init(); |
70 | void copy_old(const RecMail&old); | 75 | void copy_old(const RecMail&old); |
71 | }; | 76 | }; |
72 | 77 | ||
73 | typedef QMap<QString,QString> part_plist_t; | 78 | typedef QMap<QString,QString> part_plist_t; |
74 | 79 | ||