Diffstat (limited to 'noncore/net/mail/libmailwrapper/mailtypes.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/mailtypes.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/noncore/net/mail/libmailwrapper/mailtypes.h b/noncore/net/mail/libmailwrapper/mailtypes.h index 6d6b080..900f10a 100644 --- a/noncore/net/mail/libmailwrapper/mailtypes.h +++ b/noncore/net/mail/libmailwrapper/mailtypes.h | |||
@@ -43,12 +43,14 @@ public: | |||
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;} | 47 | void setReplyto(const QString&reply){replyto=reply;} |
48 | const QString&Replyto()const{return replyto;} | 48 | const QString&Replyto()const{return replyto;} |
49 | void setMsgsize(int size){msg_size = size;} | ||
50 | const int Msgsize()const{return msg_size;} | ||
49 | 51 | ||
50 | 52 | ||
51 | void setTo(const QStringList&list); | 53 | void setTo(const QStringList&list); |
52 | const QStringList&To()const; | 54 | const QStringList&To()const; |
53 | void setCC(const QStringList&list); | 55 | void setCC(const QStringList&list); |
54 | const QStringList&CC()const; | 56 | const QStringList&CC()const; |
@@ -56,49 +58,57 @@ public: | |||
56 | const QStringList&Bcc()const; | 58 | const QStringList&Bcc()const; |
57 | const QBitArray&getFlags()const{return msg_flags;} | 59 | const QBitArray&getFlags()const{return msg_flags;} |
58 | void setFlags(const QBitArray&flags){msg_flags = flags;} | 60 | void setFlags(const QBitArray&flags){msg_flags = flags;} |
59 | 61 | ||
60 | protected: | 62 | protected: |
61 | QString subject,date,from,mbox,msg_id,replyto; | 63 | QString subject,date,from,mbox,msg_id,replyto; |
62 | int msg_number; | 64 | int msg_number,msg_size; |
63 | QBitArray msg_flags; | 65 | QBitArray msg_flags; |
64 | QStringList to,cc,bcc; | 66 | QStringList to,cc,bcc; |
65 | void init(); | 67 | void init(); |
66 | void copy_old(const RecMail&old); | 68 | void copy_old(const RecMail&old); |
67 | }; | 69 | }; |
68 | 70 | ||
69 | class RecPart | 71 | class RecPart |
70 | { | 72 | { |
71 | protected: | 73 | protected: |
72 | QString m_type,m_subtype,m_identifier,m_encoding; | 74 | QString m_type,m_subtype,m_identifier,m_encoding; |
75 | unsigned int m_lines; | ||
73 | public: | 76 | public: |
74 | RecPart(); | 77 | RecPart(); |
75 | RecPart(const QString&identifier,const QString&type="",const QString&subtype="",const QString&encoding="BASE64"); | 78 | RecPart(const QString&identifier,const QString&type="",const QString&subtype="",const QString&encoding="BASE64",unsigned int lines=0); |
76 | virtual ~RecPart(); | 79 | virtual ~RecPart(); |
77 | 80 | ||
78 | const QString&Type()const; | 81 | const QString&Type()const; |
79 | void setType(const QString&type); | 82 | void setType(const QString&type); |
80 | const QString&Subtype()const; | 83 | const QString&Subtype()const; |
81 | void setSubtype(const QString&subtype); | 84 | void setSubtype(const QString&subtype); |
82 | const QString&Identifier()const; | 85 | const QString&Identifier()const; |
83 | void setIdentifier(const QString&identifier); | 86 | void setIdentifier(const QString&identifier); |
84 | const QString&Encoding()const; | 87 | const QString&Encoding()const; |
85 | void setEncoding(const QString&encoding); | 88 | void setEncoding(const QString&encoding); |
89 | void setLines(unsigned int lines); | ||
90 | const unsigned int Lines()const; | ||
86 | }; | 91 | }; |
87 | 92 | ||
88 | class RecBody | 93 | class RecBody |
89 | { | 94 | { |
90 | protected: | 95 | protected: |
91 | QString m_BodyText; | 96 | QString m_BodyText,m_type,m_subtype; |
92 | QList<RecPart> m_PartsList; | 97 | QList<RecPart> m_PartsList; |
93 | 98 | ||
94 | public: | 99 | public: |
95 | RecBody(); | 100 | RecBody(); |
96 | virtual ~RecBody(); | 101 | virtual ~RecBody(); |
97 | void setBodytext(const QString&); | 102 | void setBodytext(const QString&); |
98 | const QString& Bodytext()const; | 103 | const QString& Bodytext()const; |
104 | void setType(const QString&); | ||
105 | const QString&Type()const; | ||
106 | void setSubtype(const QString&); | ||
107 | const QString&Subtype()const; | ||
108 | |||
99 | 109 | ||
100 | void setParts(const QList<RecPart>&parts); | 110 | void setParts(const QList<RecPart>&parts); |
101 | const QList<RecPart>& Parts()const; | 111 | const QList<RecPart>& Parts()const; |
102 | void addPart(const RecPart&part); | 112 | void addPart(const RecPart&part); |
103 | }; | 113 | }; |
104 | 114 | ||