Diffstat (limited to 'noncore/net/mail/accountitem.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/accountitem.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/net/mail/accountitem.cpp b/noncore/net/mail/accountitem.cpp index f7fdccd..f3f2182 100644 --- a/noncore/net/mail/accountitem.cpp +++ b/noncore/net/mail/accountitem.cpp | |||
@@ -1,31 +1,33 @@ | |||
1 | 1 | ||
2 | #include "accountitem.h" | 2 | #include "accountitem.h" |
3 | #include "accountview.h" | 3 | #include "accountview.h" |
4 | #include "newmaildir.h" | 4 | #include "newmaildir.h" |
5 | #include "nntpgroupsdlg.h" | 5 | #include "nntpgroupsdlg.h" |
6 | #include "defines.h" | 6 | #include "defines.h" |
7 | 7 | ||
8 | #include <libmailwrapper/mailtypes.h> | 8 | #include <libmailwrapper/mailtypes.h> |
9 | #include <libmailwrapper/abstractmail.h> | 9 | #include <libmailwrapper/abstractmail.h> |
10 | #include <libmailwrapper/mailwrapper.h> | 10 | #include <libmailwrapper/mailwrapper.h> |
11 | |||
11 | /* OPIE */ | 12 | /* OPIE */ |
12 | #include <opie2/odebug.h> | 13 | #include <opie2/odebug.h> |
14 | #include <opie2/oresource.h> | ||
13 | #include <qpe/qpeapplication.h> | 15 | #include <qpe/qpeapplication.h> |
16 | using namespace Opie::Core; | ||
14 | 17 | ||
15 | /* QT */ | 18 | /* QT */ |
16 | #include <qpopupmenu.h> | 19 | #include <qpopupmenu.h> |
17 | #include <qmessagebox.h> | 20 | #include <qmessagebox.h> |
18 | 21 | ||
19 | using namespace Opie::Core; | ||
20 | #define SETPIX(x) if (!account->getOffline()) {setPixmap( 0,x);} else {setPixmap( 0, PIXMAP_OFFLINE );} | 22 | #define SETPIX(x) if (!account->getOffline()) {setPixmap( 0,x);} else {setPixmap( 0, PIXMAP_OFFLINE );} |
21 | /** | 23 | /** |
22 | * POP3 Account stuff | 24 | * POP3 Account stuff |
23 | */ | 25 | */ |
24 | POP3viewItem::POP3viewItem( POP3account *a, AccountView *parent ) | 26 | POP3viewItem::POP3viewItem( POP3account *a, AccountView *parent ) |
25 | : AccountViewItem( parent ) | 27 | : AccountViewItem( parent ) |
26 | { | 28 | { |
27 | account = a; | 29 | account = a; |
28 | wrapper = AbstractMail::getWrapper( account ); | 30 | wrapper = AbstractMail::getWrapper( account ); |
29 | SETPIX(PIXMAP_POP3FOLDER); | 31 | SETPIX(PIXMAP_POP3FOLDER); |
30 | #if 0 | 32 | #if 0 |
31 | if (!account->getOffline()) | 33 | if (!account->getOffline()) |
@@ -889,25 +891,25 @@ void MHfolderItem::initName() | |||
889 | if (pos > 0) | 891 | if (pos > 0) |
890 | { | 892 | { |
891 | bName.replace(0,pos+1,""); | 893 | bName.replace(0,pos+1,""); |
892 | } | 894 | } |
893 | if (bName.lower() == "outgoing") | 895 | if (bName.lower() == "outgoing") |
894 | { | 896 | { |
895 | setPixmap( 0, PIXMAP_OUTBOXFOLDER ); | 897 | setPixmap( 0, PIXMAP_OUTBOXFOLDER ); |
896 | } | 898 | } |
897 | else if (bName.lower() == "inbox") | 899 | else if (bName.lower() == "inbox") |
898 | { | 900 | { |
899 | setPixmap( 0, PIXMAP_INBOXFOLDER); | 901 | setPixmap( 0, PIXMAP_INBOXFOLDER); |
900 | } else if (bName.lower() == "drafts") { | 902 | } else if (bName.lower() == "drafts") { |
901 | setPixmap(0, Resource::loadPixmap("edit")); | 903 | setPixmap(0, Opie::Core::OResource::loadPixmap("edit", Opie::Core::OResource::SmallIcon)); |
902 | } else { | 904 | } else { |
903 | setPixmap( 0, PIXMAP_MBOXFOLDER ); | 905 | setPixmap( 0, PIXMAP_MBOXFOLDER ); |
904 | } | 906 | } |
905 | setText( 0, bName ); | 907 | setText( 0, bName ); |
906 | } | 908 | } |
907 | 909 | ||
908 | const FolderP&MHfolderItem::getFolder()const | 910 | const FolderP&MHfolderItem::getFolder()const |
909 | { | 911 | { |
910 | return folder; | 912 | return folder; |
911 | } | 913 | } |
912 | 914 | ||
913 | void MHfolderItem::refresh(QValueList<RecMailP>&target) | 915 | void MHfolderItem::refresh(QValueList<RecMailP>&target) |