Diffstat (limited to 'noncore/net/mail/accountview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/accountview.cpp | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/noncore/net/mail/accountview.cpp b/noncore/net/mail/accountview.cpp index 662e555..0fe8475 100644 --- a/noncore/net/mail/accountview.cpp +++ b/noncore/net/mail/accountview.cpp | |||
@@ -63,35 +63,30 @@ void AccountView::populate( QList<Account> list ) | |||
63 | mhAccounts.append(new MHviewItem(AbstractMail::defaultLocalfolder(),this)); | 63 | mhAccounts.append(new MHviewItem(AbstractMail::defaultLocalfolder(),this)); |
64 | 64 | ||
65 | Account *it; | 65 | Account *it; |
66 | for ( it = list.first(); it; it = list.next() ) | 66 | for ( it = list.first(); it; it = list.next() ) { |
67 | { | 67 | if ( it->getType() == MAILLIB::A_IMAP ) { |
68 | if ( it->getType() == MAILLIB::A_IMAP ) | ||
69 | { | ||
70 | IMAPaccount *imap = static_cast<IMAPaccount *>(it); | 68 | IMAPaccount *imap = static_cast<IMAPaccount *>(it); |
71 | odebug << "added IMAP " + imap->getAccountName() << oendl; | 69 | odebug << "added IMAP " + imap->getAccountName() << oendl; |
72 | imapAccounts.append(new IMAPviewItem( imap, this )); | 70 | imapAccounts.append(new IMAPviewItem( imap, this )); |
73 | } | 71 | } else if ( it->getType() == MAILLIB::A_POP3 ) { |
74 | else if ( it->getType() == MAILLIB::A_POP3 ) | ||
75 | { | ||
76 | POP3account *pop3 = static_cast<POP3account *>(it); | 72 | POP3account *pop3 = static_cast<POP3account *>(it); |
77 | odebug << "added POP3 " + pop3->getAccountName() << oendl; | 73 | odebug << "added POP3 " + pop3->getAccountName() << oendl; |
78 | /* must not be hold 'cause it isn't required */ | 74 | /* must not be hold 'cause it isn't required */ |
79 | (void) new POP3viewItem( pop3, this ); | 75 | (void) new POP3viewItem( pop3, this ); |
80 | } | 76 | } else if ( it->getType() == MAILLIB::A_NNTP ) { |
81 | else if ( it->getType() == MAILLIB::A_NNTP ) | ||
82 | { | ||
83 | NNTPaccount *nntp = static_cast<NNTPaccount *>(it); | 77 | NNTPaccount *nntp = static_cast<NNTPaccount *>(it); |
84 | odebug << "added NNTP " + nntp->getAccountName() << oendl; | 78 | odebug << "added NNTP " + nntp->getAccountName() << oendl; |
85 | /* must not be hold 'cause it isn't required */ | 79 | /* must not be hold 'cause it isn't required */ |
86 | (void) new NNTPviewItem( nntp, this ); | 80 | (void) new NNTPviewItem( nntp, this ); |
87 | } | 81 | } else if ( it->getType() == MAILLIB::A_MH ) { |
88 | } | 82 | } |
83 | } | ||
89 | } | 84 | } |
90 | 85 | ||
91 | void AccountView::refresh(QListViewItem *item) | 86 | void AccountView::refresh(QListViewItem *item) |
92 | { | 87 | { |
93 | 88 | ||
94 | odebug << "AccountView refresh..." << oendl; | 89 | odebug << "AccountView refresh..." << oendl; |
95 | if ( item ) | 90 | if ( item ) |
96 | { | 91 | { |
97 | m_currentItem = item; | 92 | m_currentItem = item; |
@@ -164,8 +159,8 @@ void AccountView::downloadMails(const FolderP&fromFolder,AbstractMail*fromWrappe | |||
164 | tr("<center>Error while creating<br>new folder - breaking.</center>")); | 159 | tr("<center>Error while creating<br>new folder - breaking.</center>")); |
165 | return; | 160 | return; |
166 | } | 161 | } |
167 | odebug << "Targetfolder: " << targetFolder.latin1() << "" << oendl; | 162 | odebug << "Targetfolder: " << targetFolder.latin1() << "" << oendl; |
168 | odebug << "Fromfolder: " << fromFolder->getName().latin1() << "" << oendl; | 163 | odebug << "Fromfolder: " << fromFolder->getName().latin1() << "" << oendl; |
169 | fromWrapper->mvcpAllMails(fromFolder,targetFolder,targetMail,sels.moveMails()); | 164 | fromWrapper->mvcpAllMails(fromFolder,targetFolder,targetMail,sels.moveMails()); |
170 | refreshCurrent(); | 165 | refreshCurrent(); |
171 | } | 166 | } |