-rw-r--r-- | noncore/net/mail/accountview.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/net/mail/accountview.cpp b/noncore/net/mail/accountview.cpp index b6bf298..bc13336 100644 --- a/noncore/net/mail/accountview.cpp +++ b/noncore/net/mail/accountview.cpp | |||
@@ -1,48 +1,49 @@ | |||
1 | #include "accountview.h" | 1 | #include "accountview.h" |
2 | #include "mailtypes.h" | 2 | #include "mailtypes.h" |
3 | #include "defines.h" | 3 | #include "defines.h" |
4 | 4 | ||
5 | 5 | ||
6 | /** | 6 | /** |
7 | * POP3 Account stuff | 7 | * POP3 Account stuff |
8 | */ | 8 | */ |
9 | 9 | ||
10 | POP3viewItem::POP3viewItem( POP3account *a, QListView *parent ) | 10 | POP3viewItem::POP3viewItem( POP3account *a, QListView *parent ) |
11 | : AccountViewItem( parent ) | 11 | : AccountViewItem( parent ) |
12 | { | 12 | { |
13 | account = a; | 13 | account = a; |
14 | wrapper = AbstractMail::getWrapper( account ); | 14 | wrapper = AbstractMail::getWrapper( account ); |
15 | setPixmap( 0, PIXMAP_POP3FOLDER ); | 15 | setPixmap( 0, PIXMAP_POP3FOLDER ); |
16 | setText( 0, account->getAccountName() ); | 16 | setText( 0, account->getAccountName() ); |
17 | setOpen( true ); | ||
17 | } | 18 | } |
18 | 19 | ||
19 | POP3viewItem::~POP3viewItem() | 20 | POP3viewItem::~POP3viewItem() |
20 | { | 21 | { |
21 | delete wrapper; | 22 | delete wrapper; |
22 | } | 23 | } |
23 | 24 | ||
24 | AbstractMail *POP3viewItem::getWrapper() | 25 | AbstractMail *POP3viewItem::getWrapper() |
25 | { | 26 | { |
26 | return wrapper; | 27 | return wrapper; |
27 | } | 28 | } |
28 | 29 | ||
29 | void POP3viewItem::refresh( QList<RecMail> & ) | 30 | void POP3viewItem::refresh( QList<RecMail> & ) |
30 | { | 31 | { |
31 | QList<Folder> *folders = wrapper->listFolders(); | 32 | QList<Folder> *folders = wrapper->listFolders(); |
32 | QListViewItem *child = firstChild(); | 33 | QListViewItem *child = firstChild(); |
33 | while ( child ) { | 34 | while ( child ) { |
34 | QListViewItem *tmp = child; | 35 | QListViewItem *tmp = child; |
35 | child = child->nextSibling(); | 36 | child = child->nextSibling(); |
36 | delete tmp; | 37 | delete tmp; |
37 | } | 38 | } |
38 | Folder *it; | 39 | Folder *it; |
39 | QListViewItem*item = 0; | 40 | QListViewItem*item = 0; |
40 | for ( it = folders->first(); it; it = folders->next() ) { | 41 | for ( it = folders->first(); it; it = folders->next() ) { |
41 | item = new POP3folderItem( it, this , item ); | 42 | item = new POP3folderItem( it, this , item ); |
42 | item->setSelectable(it->may_select()); | 43 | item->setSelectable(it->may_select()); |
43 | } | 44 | } |
44 | // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | 45 | // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
45 | folders->setAutoDelete(false); | 46 | folders->setAutoDelete(false); |
46 | delete folders; | 47 | delete folders; |
47 | } | 48 | } |
48 | 49 | ||