Diffstat (limited to 'kmicromail/libmailwrapper/mailtypes.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kmicromail/libmailwrapper/mailtypes.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kmicromail/libmailwrapper/mailtypes.cpp b/kmicromail/libmailwrapper/mailtypes.cpp index af3b9d0..89150ad 100644 --- a/kmicromail/libmailwrapper/mailtypes.cpp +++ b/kmicromail/libmailwrapper/mailtypes.cpp | |||
@@ -274,32 +274,33 @@ const QValueList<int>& RecPart::Positionlist()const | |||
274 | { | 274 | { |
275 | return m_poslist; | 275 | return m_poslist; |
276 | } | 276 | } |
277 | 277 | ||
278 | RecBody::RecBody() | 278 | RecBody::RecBody() |
279 | : Opie::Core::ORefCount(),m_BodyText(),m_description(new RecPart()) | 279 | : Opie::Core::ORefCount(),m_BodyText(),m_description(new RecPart()) |
280 | { | 280 | { |
281 | m_PartsList.clear(); | 281 | m_PartsList.clear(); |
282 | } | 282 | } |
283 | 283 | ||
284 | RecBody::RecBody(const RecBody&old) | 284 | RecBody::RecBody(const RecBody&old) |
285 | :Opie::Core::ORefCount(),m_BodyText(),m_PartsList(),m_description(new RecPart()) | 285 | :Opie::Core::ORefCount(),m_BodyText(),m_PartsList(),m_description(new RecPart()) |
286 | { | 286 | { |
287 | m_BodyText = old.m_BodyText; | 287 | m_BodyText = old.m_BodyText; |
288 | m_PartsList = old.m_PartsList; | 288 | m_PartsList = old.m_PartsList; |
289 | m_description = old.m_description; | 289 | m_description = old.m_description; |
290 | mCharset = old.mCharset; | ||
290 | // odebug << "Recbody copy constructor" << oendl; | 291 | // odebug << "Recbody copy constructor" << oendl; |
291 | } | 292 | } |
292 | 293 | ||
293 | RecBody::~RecBody() | 294 | RecBody::~RecBody() |
294 | { | 295 | { |
295 | } | 296 | } |
296 | 297 | ||
297 | void RecBody::setBodytext(const QString&bodyText) | 298 | void RecBody::setBodytext(const QString&bodyText) |
298 | { | 299 | { |
299 | m_BodyText = bodyText; | 300 | m_BodyText = bodyText; |
300 | } | 301 | } |
301 | 302 | ||
302 | const QString& RecBody::Bodytext()const | 303 | const QString& RecBody::Bodytext()const |
303 | { | 304 | { |
304 | return m_BodyText; | 305 | return m_BodyText; |
305 | } | 306 | } |
@@ -317,32 +318,42 @@ const QValueList<RecPartP>& RecBody::Parts()const | |||
317 | 318 | ||
318 | void RecBody::addPart(const RecPartP& part) | 319 | void RecBody::addPart(const RecPartP& part) |
319 | { | 320 | { |
320 | m_PartsList.append(part); | 321 | m_PartsList.append(part); |
321 | } | 322 | } |
322 | 323 | ||
323 | void RecBody::setDescription(const RecPartP&des) | 324 | void RecBody::setDescription(const RecPartP&des) |
324 | { | 325 | { |
325 | m_description = des; | 326 | m_description = des; |
326 | } | 327 | } |
327 | 328 | ||
328 | const RecPartP& RecBody::Description()const | 329 | const RecPartP& RecBody::Description()const |
329 | { | 330 | { |
330 | return m_description; | 331 | return m_description; |
331 | } | 332 | } |
332 | 333 | ||
334 | void RecBody::setCharset(const QString& str) | ||
335 | { | ||
336 | mCharset = str; | ||
337 | } | ||
338 | |||
339 | QString RecBody::getCharset()const | ||
340 | { | ||
341 | return mCharset; | ||
342 | } | ||
343 | |||
333 | /* handling encoded content */ | 344 | /* handling encoded content */ |
334 | encodedString::encodedString() | 345 | encodedString::encodedString() |
335 | { | 346 | { |
336 | init(); | 347 | init(); |
337 | } | 348 | } |
338 | 349 | ||
339 | encodedString::encodedString(const char*nContent,unsigned int nSize) | 350 | encodedString::encodedString(const char*nContent,unsigned int nSize) |
340 | { | 351 | { |
341 | init(); | 352 | init(); |
342 | setContent(nContent,nSize); | 353 | setContent(nContent,nSize); |
343 | } | 354 | } |
344 | 355 | ||
345 | encodedString::encodedString(char*nContent,unsigned int nSize) | 356 | encodedString::encodedString(char*nContent,unsigned int nSize) |
346 | { | 357 | { |
347 | init(); | 358 | init(); |
348 | setContent(nContent,nSize); | 359 | setContent(nContent,nSize); |