Diffstat (limited to 'noncore/net/mail/libmailwrapper') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/genericwrapper.cpp | 13 | ||||
-rw-r--r-- | noncore/net/mail/libmailwrapper/genericwrapper.h | 5 |
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 @@ | |||
3 | #include "mailtypes.h" | 3 | #include "mailtypes.h" |
4 | #include "mailstatics.h" | ||
4 | 5 | ||
5 | #include <opie2/odebug.h> | 6 | #include <opie2/odebug.h> |
6 | #include <qpe/timestring.h> | ||
7 | #include <qdatetime.h> | 7 | #include <qdatetime.h> |
@@ -10,3 +10,3 @@ using namespace Opie::Core; | |||
10 | Genericwrapper::Genericwrapper() | 10 | Genericwrapper::Genericwrapper() |
11 | : AbstractMail() | 11 | : AbstractMail(),MailStatics() |
12 | { | 12 | { |
@@ -245,11 +245,2 @@ RecBodyP Genericwrapper::parseMail( mailmessage * msg ) | |||
245 | 245 | ||
246 | QString Genericwrapper::parseDateTime( mailimf_date_time *date ) | ||
247 | { | ||
248 | QDateTime da(QDate(date->dt_year,date->dt_month,date->dt_day),QTime(date->dt_hour,date->dt_min,date->dt_sec)); | ||
249 | QString timestring = TimeString::numberDateString(QDate(date->dt_year,date->dt_month,date->dt_day))+" "; | ||
250 | timestring+=TimeString::timeString(QTime(date->dt_hour,date->dt_min,date->dt_sec))+" "; | ||
251 | timestring.sprintf(timestring+" %+05i",date->dt_zone); | ||
252 | return timestring; | ||
253 | } | ||
254 | |||
255 | QString Genericwrapper::parseAddressList( mailimf_address_list *list ) | 246 | 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 @@ | |||
4 | #include "abstractmail.h" | 4 | #include "abstractmail.h" |
5 | #include "mailstatics.h" | ||
5 | #include <qmap.h> | 6 | #include <qmap.h> |
@@ -17,3 +18,2 @@ struct mailimf_mailbox_list; | |||
17 | struct mailimf_mailbox; | 18 | struct mailimf_mailbox; |
18 | struct mailimf_date_time; | ||
19 | struct mailimf_group; | 19 | struct mailimf_group; |
@@ -29,3 +29,3 @@ struct mailimf_in_reply_to; | |||
29 | */ | 29 | */ |
30 | class Genericwrapper : public AbstractMail | 30 | class Genericwrapper : public AbstractMail,public MailStatics |
31 | { | 31 | { |
@@ -50,3 +50,2 @@ protected: | |||
50 | QString parseAddressList( mailimf_address_list *list ); | 50 | QString parseAddressList( mailimf_address_list *list ); |
51 | QString parseDateTime( mailimf_date_time *date ); | ||
52 | 51 | ||