-rw-r--r-- | kmicromail/accountview.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kmicromail/accountview.cpp b/kmicromail/accountview.cpp index c10d384..c9c4a0f 100644 --- a/kmicromail/accountview.cpp +++ b/kmicromail/accountview.cpp | |||
@@ -102,49 +102,54 @@ void AccountView::refresh(QListViewItem *item) | |||
102 | void AccountView::refreshCurrent() | 102 | void AccountView::refreshCurrent() |
103 | { | 103 | { |
104 | m_currentItem = currentItem(); | 104 | m_currentItem = currentItem(); |
105 | if ( !m_currentItem ) return; | 105 | if ( !m_currentItem ) return; |
106 | QValueList<RecMailP> headerlist; | 106 | QValueList<RecMailP> headerlist; |
107 | AccountViewItem *view = static_cast<AccountViewItem *>(m_currentItem); | 107 | AccountViewItem *view = static_cast<AccountViewItem *>(m_currentItem); |
108 | view->refresh(headerlist); | 108 | view->refresh(headerlist); |
109 | emit refreshMailview(headerlist); | 109 | emit refreshMailview(headerlist); |
110 | } | 110 | } |
111 | 111 | ||
112 | void AccountView::refreshAll() | 112 | void AccountView::refreshAll() |
113 | { | 113 | { |
114 | } | 114 | } |
115 | 115 | ||
116 | RecBodyP AccountView::fetchBody(const RecMailP&aMail) | 116 | RecBodyP AccountView::fetchBody(const RecMailP&aMail) |
117 | { | 117 | { |
118 | QListViewItem*item = selectedItem (); | 118 | QListViewItem*item = selectedItem (); |
119 | if (!item) return new RecBody(); | 119 | if (!item) return new RecBody(); |
120 | AccountViewItem *view = static_cast<AccountViewItem *>(item); | 120 | AccountViewItem *view = static_cast<AccountViewItem *>(item); |
121 | return view->fetchBody(aMail); | 121 | return view->fetchBody(aMail); |
122 | } | 122 | } |
123 | 123 | ||
124 | void AccountView::setupFolderselect(Selectstore*sels) | 124 | void AccountView::setupFolderselect(Selectstore*sels) |
125 | { | 125 | { |
126 | |||
127 | #ifndef DESKTOP_VERSION | ||
126 | sels->showMaximized(); | 128 | sels->showMaximized(); |
129 | #else | ||
130 | sels->show(); | ||
131 | #endif | ||
127 | QStringList sFolders; | 132 | QStringList sFolders; |
128 | unsigned int i = 0; | 133 | unsigned int i = 0; |
129 | for (i=0; i < mhAccounts.count();++i) | 134 | for (i=0; i < mhAccounts.count();++i) |
130 | { | 135 | { |
131 | mhAccounts[i]->refresh(false); | 136 | mhAccounts[i]->refresh(false); |
132 | sFolders = mhAccounts[i]->subFolders(); | 137 | sFolders = mhAccounts[i]->subFolders(); |
133 | sels->addAccounts(mhAccounts[i]->getWrapper(),sFolders); | 138 | sels->addAccounts(mhAccounts[i]->getWrapper(),sFolders); |
134 | } | 139 | } |
135 | for (i=0; i < imapAccounts.count();++i) | 140 | for (i=0; i < imapAccounts.count();++i) |
136 | { | 141 | { |
137 | if (imapAccounts[i]->offline()) | 142 | if (imapAccounts[i]->offline()) |
138 | continue; | 143 | continue; |
139 | imapAccounts[i]->refreshFolders(false); | 144 | imapAccounts[i]->refreshFolders(false); |
140 | sels->addAccounts(imapAccounts[i]->getWrapper(),imapAccounts[i]->subFolders()); | 145 | sels->addAccounts(imapAccounts[i]->getWrapper(),imapAccounts[i]->subFolders()); |
141 | } | 146 | } |
142 | } | 147 | } |
143 | void AccountView::downloadMailsInbox(const FolderP&fromFolder,AbstractMail*fromWrapper) | 148 | void AccountView::downloadMailsInbox(const FolderP&fromFolder,AbstractMail*fromWrapper) |
144 | { | 149 | { |
145 | #if 0 | 150 | #if 0 |
146 | AbstractMail*targetMail = 0; | 151 | AbstractMail*targetMail = 0; |
147 | QString targetFolder = ""; | 152 | QString targetFolder = ""; |
148 | Selectstore sels; | 153 | Selectstore sels; |
149 | setupFolderselect(&sels); | 154 | setupFolderselect(&sels); |
150 | if (!sels.exec()) return; | 155 | if (!sels.exec()) return; |