author | alwin <alwin> | 2003-12-13 03:51:21 (UTC) |
---|---|---|
committer | alwin <alwin> | 2003-12-13 03:51:21 (UTC) |
commit | 7f0861e63db74263ff286e09fbc4faf16d367a5b (patch) (unidiff) | |
tree | d97bd868343b179039c141fee3725f7781a0fca1 /noncore/net/mail/libmailwrapper/mailtypes.h | |
parent | a170120c655169de904ff282e23461ba4eef2b47 (diff) | |
download | opie-7f0861e63db74263ff286e09fbc4faf16d367a5b.zip opie-7f0861e63db74263ff286e09fbc4faf16d367a5b.tar.gz opie-7f0861e63db74263ff286e09fbc4faf16d367a5b.tar.bz2 |
displaying list of attachments of a mail works. (Of course only if
the mail HAS attachments ;)
Diffstat (limited to 'noncore/net/mail/libmailwrapper/mailtypes.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/mailtypes.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/net/mail/libmailwrapper/mailtypes.h b/noncore/net/mail/libmailwrapper/mailtypes.h index f308bc7..24518cf 100644 --- a/noncore/net/mail/libmailwrapper/mailtypes.h +++ b/noncore/net/mail/libmailwrapper/mailtypes.h | |||
@@ -55,67 +55,70 @@ public: | |||
55 | void setTo(const QStringList&list); | 55 | void setTo(const QStringList&list); |
56 | const QStringList&To()const; | 56 | const QStringList&To()const; |
57 | void setCC(const QStringList&list); | 57 | void setCC(const QStringList&list); |
58 | const QStringList&CC()const; | 58 | const QStringList&CC()const; |
59 | void setBcc(const QStringList&list); | 59 | void setBcc(const QStringList&list); |
60 | const QStringList&Bcc()const; | 60 | const QStringList&Bcc()const; |
61 | const QBitArray&getFlags()const{return msg_flags;} | 61 | const QBitArray&getFlags()const{return msg_flags;} |
62 | void setFlags(const QBitArray&flags){msg_flags = flags;} | 62 | void setFlags(const QBitArray&flags){msg_flags = flags;} |
63 | 63 | ||
64 | protected: | 64 | protected: |
65 | QString subject,date,from,mbox,msg_id,replyto; | 65 | QString subject,date,from,mbox,msg_id,replyto; |
66 | int msg_number,msg_size; | 66 | int msg_number,msg_size; |
67 | QBitArray msg_flags; | 67 | QBitArray msg_flags; |
68 | QStringList to,cc,bcc; | 68 | QStringList to,cc,bcc; |
69 | void init(); | 69 | void init(); |
70 | void copy_old(const RecMail&old); | 70 | void copy_old(const RecMail&old); |
71 | }; | 71 | }; |
72 | 72 | ||
73 | typedef QMap<QString,QString> part_plist_t; | 73 | typedef QMap<QString,QString> part_plist_t; |
74 | 74 | ||
75 | class RecPart | 75 | class RecPart |
76 | { | 76 | { |
77 | protected: | 77 | protected: |
78 | QString m_type,m_subtype,m_identifier,m_encoding; | 78 | QString m_type,m_subtype,m_identifier,m_encoding; |
79 | unsigned int m_lines; | 79 | unsigned int m_lines,m_size; |
80 | part_plist_t m_Parameters; | 80 | part_plist_t m_Parameters; |
81 | /* describes the position in the mail */ | 81 | /* describes the position in the mail */ |
82 | QValueList<int> m_poslist; | 82 | QValueList<int> m_poslist; |
83 | 83 | ||
84 | public: | 84 | public: |
85 | RecPart(); | 85 | RecPart(); |
86 | virtual ~RecPart(); | 86 | virtual ~RecPart(); |
87 | 87 | ||
88 | const QString&Type()const; | 88 | const QString&Type()const; |
89 | void setType(const QString&type); | 89 | void setType(const QString&type); |
90 | const QString&Subtype()const; | 90 | const QString&Subtype()const; |
91 | void setSubtype(const QString&subtype); | 91 | void setSubtype(const QString&subtype); |
92 | const QString&Identifier()const; | 92 | const QString&Identifier()const; |
93 | void setIdentifier(const QString&identifier); | 93 | void setIdentifier(const QString&identifier); |
94 | const QString&Encoding()const; | 94 | const QString&Encoding()const; |
95 | void setEncoding(const QString&encoding); | 95 | void setEncoding(const QString&encoding); |
96 | void setLines(unsigned int lines); | 96 | void setLines(unsigned int lines); |
97 | const unsigned int Lines()const; | 97 | const unsigned int Lines()const; |
98 | void setSize(unsigned int size); | ||
99 | const unsigned int Size()const; | ||
100 | |||
98 | 101 | ||
99 | void setParameters(const part_plist_t&list); | 102 | void setParameters(const part_plist_t&list); |
100 | const part_plist_t&Parameters()const; | 103 | const part_plist_t&Parameters()const; |
101 | void addParameter(const QString&key,const QString&value); | 104 | void addParameter(const QString&key,const QString&value); |
102 | const QString searchParamter(const QString&key)const; | 105 | const QString searchParamter(const QString&key)const; |
103 | void setPositionlist(const QValueList<int>&poslist); | 106 | void setPositionlist(const QValueList<int>&poslist); |
104 | const QValueList<int>& Positionlist()const; | 107 | const QValueList<int>& Positionlist()const; |
105 | }; | 108 | }; |
106 | 109 | ||
107 | class RecBody | 110 | class RecBody |
108 | { | 111 | { |
109 | protected: | 112 | protected: |
110 | QString m_BodyText; | 113 | QString m_BodyText; |
111 | QValueList<RecPart> m_PartsList; | 114 | QValueList<RecPart> m_PartsList; |
112 | RecPart m_description; | 115 | RecPart m_description; |
113 | 116 | ||
114 | public: | 117 | public: |
115 | RecBody(); | 118 | RecBody(); |
116 | virtual ~RecBody(); | 119 | virtual ~RecBody(); |
117 | void setBodytext(const QString&); | 120 | void setBodytext(const QString&); |
118 | const QString& Bodytext()const; | 121 | const QString& Bodytext()const; |
119 | 122 | ||
120 | void setDescription(const RecPart&des); | 123 | void setDescription(const RecPart&des); |
121 | const RecPart& Description()const; | 124 | const RecPart& Description()const; |