summaryrefslogtreecommitdiff
authoralwin <alwin>2004-10-25 22:33:48 (UTC)
committer alwin <alwin>2004-10-25 22:33:48 (UTC)
commitd29de6d360b0570c12778beea9f654a8fcdbe3c7 (patch) (side-by-side diff)
treeae0b3505b57e0fd47f353faf287408c354d3e6c6
parentef34b8716b06f2225d7cf76e22a7a72cf5b689df (diff)
downloadopie-d29de6d360b0570c12778beea9f654a8fcdbe3c7.zip
opie-d29de6d360b0570c12778beea9f654a8fcdbe3c7.tar.gz
opie-d29de6d360b0570c12778beea9f654a8fcdbe3c7.tar.bz2
moved out pure helper funs
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/libmailwrapper/genericwrapper.cpp13
-rw-r--r--noncore/net/mail/libmailwrapper/genericwrapper.h5
2 files changed, 4 insertions, 14 deletions
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
@@ -3,5 +3,5 @@
#include "mailtypes.h"
+#include "mailstatics.h"
#include <opie2/odebug.h>
-#include <qpe/timestring.h>
#include <qdatetime.h>
@@ -10,3 +10,3 @@ using namespace Opie::Core;
Genericwrapper::Genericwrapper()
- : AbstractMail()
+ : AbstractMail(),MailStatics()
{
@@ -245,11 +245,2 @@ RecBodyP Genericwrapper::parseMail( mailmessage * msg )
-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 )
diff --git a/noncore/net/mail/libmailwrapper/genericwrapper.h b/noncore/net/mail/libmailwrapper/genericwrapper.h
index 8be9212..3336556 100644
--- a/noncore/net/mail/libmailwrapper/genericwrapper.h
+++ b/noncore/net/mail/libmailwrapper/genericwrapper.h
@@ -4,2 +4,3 @@
#include "abstractmail.h"
+#include "mailstatics.h"
#include <qmap.h>
@@ -17,3 +18,2 @@ struct mailimf_mailbox_list;
struct mailimf_mailbox;
-struct mailimf_date_time;
struct mailimf_group;
@@ -29,3 +29,3 @@ struct mailimf_in_reply_to;
*/
-class Genericwrapper : public AbstractMail
+class Genericwrapper : public AbstractMail,public MailStatics
{
@@ -50,3 +50,2 @@ protected:
QString parseAddressList( mailimf_address_list *list );
- QString parseDateTime( mailimf_date_time *date );