Diffstat (limited to 'noncore/net/mail/libmailwrapper/mailtypes.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/mailtypes.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/noncore/net/mail/libmailwrapper/mailtypes.cpp b/noncore/net/mail/libmailwrapper/mailtypes.cpp index 90b8865..6d44db4 100644 --- a/noncore/net/mail/libmailwrapper/mailtypes.cpp +++ b/noncore/net/mail/libmailwrapper/mailtypes.cpp | |||
@@ -1,40 +1,40 @@ | |||
1 | #include "mailtypes.h" | 1 | #include "mailtypes.h" |
2 | #include <stdlib.h> | 2 | #include <stdlib.h> |
3 | 3 | ||
4 | using namespace Opie::Core; | 4 | using namespace Opie::Core; |
5 | RecMail::RecMail() | 5 | RecMail::RecMail() |
6 | :Opie::Core::ORefCount(),subject(""),date(""),from(""),mbox(""),msg_id(""),msg_number(0),msg_size(0),msg_flags(7) | 6 | :Opie::Core::ORefCount(),subject(""),date(""),from(""),mbox(""),msg_id(""),msg_number(0),msg_size(0),msg_flags(7) |
7 | { | 7 | { |
8 | init(); | 8 | init(); |
9 | } | 9 | } |
10 | 10 | ||
11 | RecMail::RecMail(const RecMail&old) | 11 | RecMail::RecMail(const RecMail&old) |
12 | :Opie::Core::ORefCount(),subject(""),date(""),from(""),mbox(""),msg_id(""),msg_number(0),msg_flags(7) | 12 | :Opie::Core::ORefCount(),subject(""),date(""),from(""),mbox(""),msg_id(""),msg_number(0),msg_flags(7) |
13 | { | 13 | { |
14 | init(); | 14 | init(); |
15 | copy_old(old); | 15 | copy_old(old); |
16 | qDebug("Copy constructor RecMail"); | 16 | odebug << "Copy constructor RecMail" << oendl; |
17 | } | 17 | } |
18 | 18 | ||
19 | RecMail::~RecMail() | 19 | RecMail::~RecMail() |
20 | { | 20 | { |
21 | wrapper = 0; | 21 | wrapper = 0; |
22 | } | 22 | } |
23 | 23 | ||
24 | void RecMail::copy_old(const RecMail&old) | 24 | void RecMail::copy_old(const RecMail&old) |
25 | { | 25 | { |
26 | subject = old.subject; | 26 | subject = old.subject; |
27 | date = old.date; | 27 | date = old.date; |
28 | mbox = old.mbox; | 28 | mbox = old.mbox; |
29 | msg_id = old.msg_id; | 29 | msg_id = old.msg_id; |
30 | msg_size = old.msg_size; | 30 | msg_size = old.msg_size; |
31 | msg_number = old.msg_number; | 31 | msg_number = old.msg_number; |
32 | from = old.from; | 32 | from = old.from; |
33 | msg_flags = old.msg_flags; | 33 | msg_flags = old.msg_flags; |
34 | to = old.to; | 34 | to = old.to; |
35 | cc = old.cc; | 35 | cc = old.cc; |
36 | bcc = old.bcc; | 36 | bcc = old.bcc; |
37 | wrapper = old.wrapper; | 37 | wrapper = old.wrapper; |
38 | in_reply_to = old.in_reply_to; | 38 | in_reply_to = old.in_reply_to; |
39 | references = old.references; | 39 | references = old.references; |
40 | replyto = old.replyto; | 40 | replyto = old.replyto; |
@@ -110,49 +110,49 @@ const QStringList& RecMail::References()const | |||
110 | return references; | 110 | return references; |
111 | } | 111 | } |
112 | 112 | ||
113 | RecPart::RecPart() | 113 | RecPart::RecPart() |
114 | : Opie::Core::ORefCount(), | 114 | : Opie::Core::ORefCount(), |
115 | m_type(""),m_subtype(""),m_identifier(""),m_encoding(""),m_description(""),m_lines(0),m_size(0) | 115 | m_type(""),m_subtype(""),m_identifier(""),m_encoding(""),m_description(""),m_lines(0),m_size(0) |
116 | { | 116 | { |
117 | m_Parameters.clear(); | 117 | m_Parameters.clear(); |
118 | m_poslist.clear(); | 118 | m_poslist.clear(); |
119 | } | 119 | } |
120 | 120 | ||
121 | RecPart::RecPart(const RecPart&old) | 121 | RecPart::RecPart(const RecPart&old) |
122 | : Opie::Core::ORefCount(), | 122 | : Opie::Core::ORefCount(), |
123 | m_type(""),m_subtype(""),m_identifier(""),m_encoding(""),m_description(""),m_lines(0),m_size(0) | 123 | m_type(""),m_subtype(""),m_identifier(""),m_encoding(""),m_description(""),m_lines(0),m_size(0) |
124 | { | 124 | { |
125 | m_type = old.m_type; | 125 | m_type = old.m_type; |
126 | m_subtype = old.m_subtype; | 126 | m_subtype = old.m_subtype; |
127 | m_identifier = old.m_identifier; | 127 | m_identifier = old.m_identifier; |
128 | m_encoding = old.m_encoding; | 128 | m_encoding = old.m_encoding; |
129 | m_description = old.m_description; | 129 | m_description = old.m_description; |
130 | m_lines = old.m_lines; | 130 | m_lines = old.m_lines; |
131 | m_size = old.m_size; | 131 | m_size = old.m_size; |
132 | m_Parameters = old.m_Parameters; | 132 | m_Parameters = old.m_Parameters; |
133 | m_poslist = old.m_poslist; | 133 | m_poslist = old.m_poslist; |
134 | qDebug("RecPart copy constructor"); | 134 | odebug << "RecPart copy constructor" << oendl; |
135 | } | 135 | } |
136 | 136 | ||
137 | RecPart::~RecPart() | 137 | RecPart::~RecPart() |
138 | { | 138 | { |
139 | } | 139 | } |
140 | 140 | ||
141 | void RecPart::setSize(unsigned int size) | 141 | void RecPart::setSize(unsigned int size) |
142 | { | 142 | { |
143 | m_size = size; | 143 | m_size = size; |
144 | } | 144 | } |
145 | 145 | ||
146 | const unsigned int RecPart::Size()const | 146 | const unsigned int RecPart::Size()const |
147 | { | 147 | { |
148 | return m_size; | 148 | return m_size; |
149 | } | 149 | } |
150 | 150 | ||
151 | void RecPart::setLines(unsigned int lines) | 151 | void RecPart::setLines(unsigned int lines) |
152 | { | 152 | { |
153 | m_lines = lines; | 153 | m_lines = lines; |
154 | } | 154 | } |
155 | 155 | ||
156 | const unsigned int RecPart::Lines()const | 156 | const unsigned int RecPart::Lines()const |
157 | { | 157 | { |
158 | return m_lines; | 158 | return m_lines; |
@@ -234,49 +234,49 @@ const QString RecPart::searchParamter(const QString&key)const | |||
234 | } | 234 | } |
235 | 235 | ||
236 | void RecPart::setPositionlist(const QValueList<int>&poslist) | 236 | void RecPart::setPositionlist(const QValueList<int>&poslist) |
237 | { | 237 | { |
238 | m_poslist = poslist; | 238 | m_poslist = poslist; |
239 | } | 239 | } |
240 | 240 | ||
241 | const QValueList<int>& RecPart::Positionlist()const | 241 | const QValueList<int>& RecPart::Positionlist()const |
242 | { | 242 | { |
243 | return m_poslist; | 243 | return m_poslist; |
244 | } | 244 | } |
245 | 245 | ||
246 | RecBody::RecBody() | 246 | RecBody::RecBody() |
247 | : Opie::Core::ORefCount(),m_BodyText(),m_description(new RecPart()) | 247 | : Opie::Core::ORefCount(),m_BodyText(),m_description(new RecPart()) |
248 | { | 248 | { |
249 | m_PartsList.clear(); | 249 | m_PartsList.clear(); |
250 | } | 250 | } |
251 | 251 | ||
252 | RecBody::RecBody(const RecBody&old) | 252 | RecBody::RecBody(const RecBody&old) |
253 | :Opie::Core::ORefCount(),m_BodyText(),m_PartsList(),m_description(new RecPart()) | 253 | :Opie::Core::ORefCount(),m_BodyText(),m_PartsList(),m_description(new RecPart()) |
254 | { | 254 | { |
255 | m_BodyText = old.m_BodyText; | 255 | m_BodyText = old.m_BodyText; |
256 | m_PartsList = old.m_PartsList; | 256 | m_PartsList = old.m_PartsList; |
257 | m_description = old.m_description; | 257 | m_description = old.m_description; |
258 | qDebug("Recbody copy constructor"); | 258 | odebug << "Recbody copy constructor" << oendl; |
259 | } | 259 | } |
260 | 260 | ||
261 | RecBody::~RecBody() | 261 | RecBody::~RecBody() |
262 | { | 262 | { |
263 | } | 263 | } |
264 | 264 | ||
265 | void RecBody::setBodytext(const QString&bodyText) | 265 | void RecBody::setBodytext(const QString&bodyText) |
266 | { | 266 | { |
267 | m_BodyText = bodyText; | 267 | m_BodyText = bodyText; |
268 | } | 268 | } |
269 | 269 | ||
270 | const QString& RecBody::Bodytext()const | 270 | const QString& RecBody::Bodytext()const |
271 | { | 271 | { |
272 | return m_BodyText; | 272 | return m_BodyText; |
273 | } | 273 | } |
274 | 274 | ||
275 | void RecBody::setParts(const QValueList<RecPartP>&parts) | 275 | void RecBody::setParts(const QValueList<RecPartP>&parts) |
276 | { | 276 | { |
277 | m_PartsList.clear(); | 277 | m_PartsList.clear(); |
278 | m_PartsList = parts; | 278 | m_PartsList = parts; |
279 | } | 279 | } |
280 | 280 | ||
281 | const QValueList<RecPartP>& RecBody::Parts()const | 281 | const QValueList<RecPartP>& RecBody::Parts()const |
282 | { | 282 | { |
@@ -299,56 +299,56 @@ const RecPartP& RecBody::Description()const | |||
299 | } | 299 | } |
300 | 300 | ||
301 | /* handling encoded content */ | 301 | /* handling encoded content */ |
302 | encodedString::encodedString() | 302 | encodedString::encodedString() |
303 | { | 303 | { |
304 | init(); | 304 | init(); |
305 | } | 305 | } |
306 | 306 | ||
307 | encodedString::encodedString(const char*nContent,unsigned int nSize) | 307 | encodedString::encodedString(const char*nContent,unsigned int nSize) |
308 | { | 308 | { |
309 | init(); | 309 | init(); |
310 | setContent(nContent,nSize); | 310 | setContent(nContent,nSize); |
311 | } | 311 | } |
312 | 312 | ||
313 | encodedString::encodedString(char*nContent,unsigned int nSize) | 313 | encodedString::encodedString(char*nContent,unsigned int nSize) |
314 | { | 314 | { |
315 | init(); | 315 | init(); |
316 | setContent(nContent,nSize); | 316 | setContent(nContent,nSize); |
317 | } | 317 | } |
318 | 318 | ||
319 | encodedString::encodedString(const encodedString&old) | 319 | encodedString::encodedString(const encodedString&old) |
320 | { | 320 | { |
321 | init(); | 321 | init(); |
322 | copy_old(old); | 322 | copy_old(old); |
323 | qDebug("encodedeString: copy constructor!"); | 323 | odebug << "encodedeString: copy constructor!" << oendl; |
324 | } | 324 | } |
325 | 325 | ||
326 | encodedString& encodedString::operator=(const encodedString&old) | 326 | encodedString& encodedString::operator=(const encodedString&old) |
327 | { | 327 | { |
328 | init(); | 328 | init(); |
329 | copy_old(old); | 329 | copy_old(old); |
330 | qDebug("encodedString: assign operator!"); | 330 | odebug << "encodedString: assign operator!" << oendl; |
331 | return *this; | 331 | return *this; |
332 | } | 332 | } |
333 | 333 | ||
334 | encodedString::~encodedString() | 334 | encodedString::~encodedString() |
335 | { | 335 | { |
336 | clean(); | 336 | clean(); |
337 | } | 337 | } |
338 | 338 | ||
339 | void encodedString::init() | 339 | void encodedString::init() |
340 | { | 340 | { |
341 | content = 0; | 341 | content = 0; |
342 | size = 0; | 342 | size = 0; |
343 | } | 343 | } |
344 | 344 | ||
345 | void encodedString::clean() | 345 | void encodedString::clean() |
346 | { | 346 | { |
347 | if (content) { | 347 | if (content) { |
348 | free(content); | 348 | free(content); |
349 | } | 349 | } |
350 | content = 0; | 350 | content = 0; |
351 | size = 0; | 351 | size = 0; |
352 | } | 352 | } |
353 | 353 | ||
354 | void encodedString::copy_old(const encodedString&old) | 354 | void encodedString::copy_old(const encodedString&old) |