Diffstat (limited to 'noncore/net/mail/libmailwrapper/mailtypes.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/mailtypes.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/noncore/net/mail/libmailwrapper/mailtypes.h b/noncore/net/mail/libmailwrapper/mailtypes.h index 10d367f..dc10de6 100644 --- a/noncore/net/mail/libmailwrapper/mailtypes.h +++ b/noncore/net/mail/libmailwrapper/mailtypes.h | |||
@@ -8,6 +8,8 @@ | |||
8 | #define FLAG_DRAFT 4 | 8 | #define FLAG_DRAFT 4 |
9 | #define FLAG_RECENT 5 | 9 | #define FLAG_RECENT 5 |
10 | 10 | ||
11 | #include <opie2/osmartpointer.h> | ||
12 | |||
11 | #include <qbitarray.h> | 13 | #include <qbitarray.h> |
12 | #include <qstring.h> | 14 | #include <qstring.h> |
13 | #include <qstringlist.h> | 15 | #include <qstringlist.h> |
@@ -27,15 +29,15 @@ class AbstractMail; | |||
27 | make a request to the mailwrapper with this class as parameter to | 29 | make a request to the mailwrapper with this class as parameter to |
28 | get the body. Same words for the attachments. | 30 | get the body. Same words for the attachments. |
29 | */ | 31 | */ |
30 | class RecMail | 32 | class RecMail:public Opie::ORefCount |
31 | { | 33 | { |
32 | public: | 34 | public: |
33 | RecMail(); | 35 | RecMail(); |
34 | RecMail(const RecMail&old); | 36 | RecMail(const RecMail&old); |
35 | virtual ~RecMail(); | 37 | virtual ~RecMail(); |
36 | 38 | ||
37 | const int getNumber()const{return msg_number;} | 39 | const unsigned int getNumber()const{return msg_number;} |
38 | void setNumber(int number){msg_number=number;} | 40 | void setNumber(unsigned int number){msg_number=number;} |
39 | const QString&getDate()const{ return date; } | 41 | const QString&getDate()const{ return date; } |
40 | void setDate( const QString&a ) { date = a; } | 42 | void setDate( const QString&a ) { date = a; } |
41 | const QString&getFrom()const{ return from; } | 43 | const QString&getFrom()const{ return from; } |
@@ -48,8 +50,8 @@ public: | |||
48 | const QString&Msgid()const{return msg_id;} | 50 | const QString&Msgid()const{return msg_id;} |
49 | void setReplyto(const QString&reply){replyto=reply;} | 51 | void setReplyto(const QString&reply){replyto=reply;} |
50 | const QString&Replyto()const{return replyto;} | 52 | const QString&Replyto()const{return replyto;} |
51 | void setMsgsize(int size){msg_size = size;} | 53 | void setMsgsize(unsigned int size){msg_size = size;} |
52 | const int Msgsize()const{return msg_size;} | 54 | const unsigned int Msgsize()const{return msg_size;} |
53 | 55 | ||
54 | 56 | ||
55 | void setTo(const QStringList&list); | 57 | void setTo(const QStringList&list); |
@@ -71,7 +73,7 @@ public: | |||
71 | 73 | ||
72 | protected: | 74 | protected: |
73 | QString subject,date,from,mbox,msg_id,replyto; | 75 | QString subject,date,from,mbox,msg_id,replyto; |
74 | int msg_number,msg_size; | 76 | unsigned int msg_number,msg_size; |
75 | QBitArray msg_flags; | 77 | QBitArray msg_flags; |
76 | QStringList to,cc,bcc,in_reply_to,references; | 78 | QStringList to,cc,bcc,in_reply_to,references; |
77 | AbstractMail*wrapper; | 79 | AbstractMail*wrapper; |
@@ -79,6 +81,7 @@ protected: | |||
79 | void copy_old(const RecMail&old); | 81 | void copy_old(const RecMail&old); |
80 | }; | 82 | }; |
81 | 83 | ||
84 | typedef Opie::OSmartPointer<RecMail> RecMailP; | ||
82 | typedef QMap<QString,QString> part_plist_t; | 85 | typedef QMap<QString,QString> part_plist_t; |
83 | 86 | ||
84 | class RecPart | 87 | class RecPart |