From d29de6d360b0570c12778beea9f654a8fcdbe3c7 Mon Sep 17 00:00:00 2001 From: alwin Date: Mon, 25 Oct 2004 22:33:48 +0000 Subject: moved out pure helper funs --- (limited to 'noncore/net/mail/libmailwrapper/genericwrapper.cpp') diff --git a/noncore/net/mail/libmailwrapper/genericwrapper.cpp b/noncore/net/mail/libmailwrapper/genericwrapper.cpp index 5ec9415..703235d 100644 --- a/noncore/net/mail/libmailwrapper/genericwrapper.cpp +++ b/noncore/net/mail/libmailwrapper/genericwrapper.cpp @@ -1,14 +1,14 @@ #include "genericwrapper.h" #include #include "mailtypes.h" +#include "mailstatics.h" #include -#include #include using namespace Opie::Core; Genericwrapper::Genericwrapper() - : AbstractMail() + : AbstractMail(),MailStatics() { bodyCache.clear(); m_storage = 0; @@ -243,15 +243,6 @@ RecBodyP Genericwrapper::parseMail( mailmessage * msg ) return body; } -QString Genericwrapper::parseDateTime( mailimf_date_time *date ) -{ - QDateTime da(QDate(date->dt_year,date->dt_month,date->dt_day),QTime(date->dt_hour,date->dt_min,date->dt_sec)); - QString timestring = TimeString::numberDateString(QDate(date->dt_year,date->dt_month,date->dt_day))+" "; - timestring+=TimeString::timeString(QTime(date->dt_hour,date->dt_min,date->dt_sec))+" "; - timestring.sprintf(timestring+" %+05i",date->dt_zone); - return timestring; -} - QString Genericwrapper::parseAddressList( mailimf_address_list *list ) { QString result( "" ); -- cgit v0.9.0.2