author | alwin <alwin> | 2003-12-13 21:03:45 (UTC) |
---|---|---|
committer | alwin <alwin> | 2003-12-13 21:03:45 (UTC) |
commit | c0e86973b0cd2d01163ccf60340c8d295aa645f4 (patch) (side-by-side diff) | |
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 @@ #include <qbitarray.h> #include <qstring.h> #include <qstringlist.h> #include <qmap.h> #include <qvaluelist.h> +class AbstractMail; /* a class to describe mails in a mailbox */ /* Attention! From programmers point of view it would make sense to store the mail body into this class, too. But: not from the point of view of the device. Mailbodies can be real large. So we request them when @@ -29,13 +30,13 @@ */ class RecMail { public: RecMail(); RecMail(const RecMail&old); - virtual ~RecMail(){} + virtual ~RecMail(); const int getNumber()const{return msg_number;} void setNumber(int number){msg_number=number;} const QString&getDate()const{ return date; } void setDate( const QString&a ) { date = a; } const QString&getFrom()const{ return from; } @@ -57,18 +58,22 @@ public: void setCC(const QStringList&list); const QStringList&CC()const; void setBcc(const QStringList&list); const QStringList&Bcc()const; const QBitArray&getFlags()const{return msg_flags;} void setFlags(const QBitArray&flags){msg_flags = flags;} + + void setWrapper(AbstractMail*wrapper); + AbstractMail* Wrapper(); protected: QString subject,date,from,mbox,msg_id,replyto; int msg_number,msg_size; QBitArray msg_flags; QStringList to,cc,bcc; + AbstractMail*wrapper; void init(); void copy_old(const RecMail&old); }; typedef QMap<QString,QString> part_plist_t; |