author | zautrix <zautrix> | 2004-10-23 19:32:41 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-23 19:32:41 (UTC) |
commit | 94df6192e59b7d4c69e2fb43ef2c39db08bb1c39 (patch) (unidiff) | |
tree | 28956adbf73a61010d98deb27d83b324cb285471 /kmicromail/accountview.cpp | |
parent | 52b6fc17c0dcd1f13f701f698e0305440f26fc3e (diff) | |
download | kdepimpi-94df6192e59b7d4c69e2fb43ef2c39db08bb1c39.zip kdepimpi-94df6192e59b7d4c69e2fb43ef2c39db08bb1c39.tar.gz kdepimpi-94df6192e59b7d4c69e2fb43ef2c39db08bb1c39.tar.bz2 |
compile fixes
-rw-r--r-- | kmicromail/accountview.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/kmicromail/accountview.cpp b/kmicromail/accountview.cpp index de8c5bb..c10d384 100644 --- a/kmicromail/accountview.cpp +++ b/kmicromail/accountview.cpp | |||
@@ -7,24 +7,25 @@ | |||
7 | #include <libmailwrapper/mailwrapper.h> | 7 | #include <libmailwrapper/mailwrapper.h> |
8 | #include <libmailwrapper/mailtypes.h> | 8 | #include <libmailwrapper/mailtypes.h> |
9 | #include <libmailwrapper/abstractmail.h> | 9 | #include <libmailwrapper/abstractmail.h> |
10 | 10 | ||
11 | /* OPIE */ | 11 | /* OPIE */ |
12 | #include <qpe/qpeapplication.h> | 12 | #include <qpe/qpeapplication.h> |
13 | 13 | ||
14 | /* QT */ | 14 | /* QT */ |
15 | #include <qmessagebox.h> | 15 | #include <qmessagebox.h> |
16 | #include <qpopupmenu.h> | 16 | #include <qpopupmenu.h> |
17 | #include <qcheckbox.h> | 17 | #include <qcheckbox.h> |
18 | #include <qspinbox.h> | 18 | #include <qspinbox.h> |
19 | #include <klocale.h> | ||
19 | 20 | ||
20 | using namespace Opie::Core; | 21 | using namespace Opie::Core; |
21 | AccountView::AccountView( QWidget *parent, const char *name, WFlags flags ) | 22 | AccountView::AccountView( QWidget *parent, const char *name, WFlags flags ) |
22 | : QListView( parent, name, flags ) | 23 | : QListView( parent, name, flags ) |
23 | { | 24 | { |
24 | connect( this, SIGNAL( selectionChanged(QListViewItem*) ), | 25 | connect( this, SIGNAL( selectionChanged(QListViewItem*) ), |
25 | SLOT( refresh(QListViewItem*) ) ); | 26 | SLOT( refresh(QListViewItem*) ) ); |
26 | connect( this, SIGNAL( mouseButtonPressed(int,QListViewItem*,const QPoint&,int) ),this, | 27 | connect( this, SIGNAL( mouseButtonPressed(int,QListViewItem*,const QPoint&,int) ),this, |
27 | SLOT( slotHold(int,QListViewItem*,const QPoint&,int) ) ); | 28 | SLOT( slotHold(int,QListViewItem*,const QPoint&,int) ) ); |
28 | setSorting(0); | 29 | setSorting(0); |
29 | } | 30 | } |
30 | 31 | ||
@@ -147,26 +148,26 @@ void AccountView::downloadMailsInbox(const FolderP&fromFolder,AbstractMail*fromW | |||
147 | Selectstore sels; | 148 | Selectstore sels; |
148 | setupFolderselect(&sels); | 149 | setupFolderselect(&sels); |
149 | if (!sels.exec()) return; | 150 | if (!sels.exec()) return; |
150 | targetMail = sels.currentMail(); | 151 | targetMail = sels.currentMail(); |
151 | targetFolder = sels.currentFolder(); | 152 | targetFolder = sels.currentFolder(); |
152 | if ( (fromWrapper==targetMail && fromFolder->getName()==targetFolder) || | 153 | if ( (fromWrapper==targetMail && fromFolder->getName()==targetFolder) || |
153 | targetFolder.isEmpty()) | 154 | targetFolder.isEmpty()) |
154 | { | 155 | { |
155 | return; | 156 | return; |
156 | } | 157 | } |
157 | if (sels.newFolder() && !targetMail->createMbox(targetFolder)) | 158 | if (sels.newFolder() && !targetMail->createMbox(targetFolder)) |
158 | { | 159 | { |
159 | QMessageBox::critical(0,tr("Error creating new Folder"), | 160 | QMessageBox::critical(0,i18n("Error creating new Folder"), |
160 | tr("<center>Error while creating<br>new folder - breaking.</center>")); | 161 | i18n("<center>Error while creating<br>new folder - breaking.</center>")); |
161 | return; | 162 | return; |
162 | } | 163 | } |
163 | int maxsize = 0; | 164 | int maxsize = 0; |
164 | if ( sels.useSize->isChecked()) | 165 | if ( sels.useSize->isChecked()) |
165 | maxsize = sels.sizeSpinBox->value(); | 166 | maxsize = sels.sizeSpinBox->value(); |
166 | fromWrapper->mvcpAllMails(fromFolder,targetFolder,targetMail,sels.moveMails(), maxsize); | 167 | fromWrapper->mvcpAllMails(fromFolder,targetFolder,targetMail,sels.moveMails(), maxsize); |
167 | #endif | 168 | #endif |
168 | fromWrapper->downloadNewMails( fromFolder, mhAccounts[0]->getWrapper()); | 169 | fromWrapper->downloadNewMails( fromFolder, mhAccounts[0]->getWrapper()); |
169 | refreshCurrent(); | 170 | refreshCurrent(); |
170 | 171 | ||
171 | } | 172 | } |
172 | 173 | ||
@@ -177,26 +178,26 @@ void AccountView::downloadMails(const FolderP&fromFolder,AbstractMail*fromWrappe | |||
177 | Selectstore sels; | 178 | Selectstore sels; |
178 | setupFolderselect(&sels); | 179 | setupFolderselect(&sels); |
179 | if (!sels.exec()) return; | 180 | if (!sels.exec()) return; |
180 | targetMail = sels.currentMail(); | 181 | targetMail = sels.currentMail(); |
181 | targetFolder = sels.currentFolder(); | 182 | targetFolder = sels.currentFolder(); |
182 | if ( (fromWrapper==targetMail && fromFolder->getName()==targetFolder) || | 183 | if ( (fromWrapper==targetMail && fromFolder->getName()==targetFolder) || |
183 | targetFolder.isEmpty()) | 184 | targetFolder.isEmpty()) |
184 | { | 185 | { |
185 | return; | 186 | return; |
186 | } | 187 | } |
187 | if (sels.newFolder() && !targetMail->createMbox(targetFolder)) | 188 | if (sels.newFolder() && !targetMail->createMbox(targetFolder)) |
188 | { | 189 | { |
189 | QMessageBox::critical(0,tr("Error creating new Folder"), | 190 | QMessageBox::critical(0,i18n("Error creating new Folder"), |
190 | tr("<center>Error while creating<br>new folder - breaking.</center>")); | 191 | i18n("<center>Error while creating<br>new folder - breaking.</center>")); |
191 | return; | 192 | return; |
192 | } | 193 | } |
193 | int maxsize = 0; | 194 | int maxsize = 0; |
194 | if ( sels.useSize->isChecked()) | 195 | if ( sels.useSize->isChecked()) |
195 | maxsize = sels.sizeSpinBox->value(); | 196 | maxsize = sels.sizeSpinBox->value(); |
196 | 197 | ||
197 | fromWrapper->mvcpAllMails(fromFolder,targetFolder,targetMail,sels.moveMails(), maxsize); | 198 | fromWrapper->mvcpAllMails(fromFolder,targetFolder,targetMail,sels.moveMails(), maxsize); |
198 | refreshCurrent(); | 199 | refreshCurrent(); |
199 | } | 200 | } |
200 | 201 | ||
201 | bool AccountView::currentisDraft() | 202 | bool AccountView::currentisDraft() |
202 | { | 203 | { |