Diffstat (limited to 'noncore/net/mail/libmailwrapper/mboxwrapper.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/mboxwrapper.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/noncore/net/mail/libmailwrapper/mboxwrapper.cpp b/noncore/net/mail/libmailwrapper/mboxwrapper.cpp index 540a971..60f7507 100644 --- a/noncore/net/mail/libmailwrapper/mboxwrapper.cpp +++ b/noncore/net/mail/libmailwrapper/mboxwrapper.cpp | |||
@@ -3,12 +3,14 @@ | |||
3 | #include "mailwrapper.h" | 3 | #include "mailwrapper.h" |
4 | #include <libetpan/libetpan.h> | 4 | #include <libetpan/libetpan.h> |
5 | #include <qdir.h> | 5 | #include <qdir.h> |
6 | #include <stdlib.h> | 6 | #include <stdlib.h> |
7 | #include <qpe/global.h> | 7 | #include <qpe/global.h> |
8 | 8 | ||
9 | const QString MBOXwrapper::wrapperType="MBOX"; | ||
10 | |||
9 | MBOXwrapper::MBOXwrapper(const QString & mbox_dir) | 11 | MBOXwrapper::MBOXwrapper(const QString & mbox_dir) |
10 | : Genericwrapper(),MBOXPath(mbox_dir) | 12 | : Genericwrapper(),MBOXPath(mbox_dir) |
11 | { | 13 | { |
12 | QDir dir(MBOXPath); | 14 | QDir dir(MBOXPath); |
13 | if (!dir.exists()) { | 15 | if (!dir.exists()) { |
14 | dir.mkdir(MBOXPath); | 16 | dir.mkdir(MBOXPath); |
@@ -319,6 +321,11 @@ void MBOXwrapper::statusFolder(folderStat&target_stat,const QString & mailbox) | |||
319 | r = mailfolder_connect(folder); | 321 | r = mailfolder_connect(folder); |
320 | r = mailsession_status_folder(folder->fld_session,(char*)mailbox.latin1(),&target_stat.message_count, | 322 | r = mailsession_status_folder(folder->fld_session,(char*)mailbox.latin1(),&target_stat.message_count, |
321 | &target_stat.message_recent,&target_stat.message_unseen); | 323 | &target_stat.message_recent,&target_stat.message_unseen); |
322 | if (folder) mailfolder_free(folder); | 324 | if (folder) mailfolder_free(folder); |
323 | if (storage) mailstorage_free(storage); | 325 | if (storage) mailstorage_free(storage); |
324 | } | 326 | } |
327 | |||
328 | const QString&MBOXwrapper::getType()const | ||
329 | { | ||
330 | return wrapperType; | ||
331 | } | ||