Diffstat (limited to 'noncore/net/mail/mailtypes.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/mailtypes.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/noncore/net/mail/mailtypes.h b/noncore/net/mail/mailtypes.h index 6d6b080..900f10a 100644 --- a/noncore/net/mail/mailtypes.h +++ b/noncore/net/mail/mailtypes.h | |||
@@ -46,6 +46,8 @@ public: | |||
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); |
@@ -59,7 +61,7 @@ public: | |||
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(); |
@@ -70,9 +72,10 @@ 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; |
@@ -83,12 +86,14 @@ public: | |||
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: |
@@ -96,6 +101,11 @@ public: | |||
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; |