summaryrefslogtreecommitdiff
path: root/noncore/net/mail/accountview.cpp
authoralwin <alwin>2004-01-08 14:04:54 (UTC)
committer alwin <alwin>2004-01-08 14:04:54 (UTC)
commitab6a32266c8fb625e782c601c9729af7f98904f6 (patch) (unidiff)
tree1457c421109359bdaa50082f2640d33ac4d74cc2 /noncore/net/mail/accountview.cpp
parentb85bc4484bcc0a53557b4759c3e9e58dc9059138 (diff)
downloadopie-ab6a32266c8fb625e782c601c9729af7f98904f6.zip
opie-ab6a32266c8fb625e782c601c9729af7f98904f6.tar.gz
opie-ab6a32266c8fb625e782c601c9729af7f98904f6.tar.bz2
- store single message to another folder implemented
- cleaned code in mainwindow and opiemail.cpp
Diffstat (limited to 'noncore/net/mail/accountview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/accountview.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/noncore/net/mail/accountview.cpp b/noncore/net/mail/accountview.cpp
index b7de7b9..9f4f358 100644
--- a/noncore/net/mail/accountview.cpp
+++ b/noncore/net/mail/accountview.cpp
@@ -869,23 +869,34 @@ void MBOXfolderItem::deleteFolder()
869QPopupMenu * MBOXfolderItem::getContextMenu() 869QPopupMenu * MBOXfolderItem::getContextMenu()
870{ 870{
871 QPopupMenu *m = new QPopupMenu(0); 871 QPopupMenu *m = new QPopupMenu(0);
872 if (m) { 872 if (m) {
873 m->insertItem(QObject::tr("Delete all mails",contextName),0); 873 m->insertItem(QObject::tr("Delete all mails",contextName),0);
874 m->insertItem(QObject::tr("Delete folder",contextName),1); 874 m->insertItem(QObject::tr("Delete folder",contextName),1);
875 m->insertItem(QObject::tr("Move/Copie all mails",contextName),2);
875 } 876 }
876 return m; 877 return m;
877} 878}
878 879
880void MBOXfolderItem::downloadMails()
881{
882 AccountView*bl = mbox->accountView();
883 if (!bl) return;
884 bl->downloadMails(folder,mbox->getWrapper());
885}
886
879void MBOXfolderItem::contextMenuSelected(int which) 887void MBOXfolderItem::contextMenuSelected(int which)
880{ 888{
881 switch(which) { 889 switch(which) {
882 case 0: 890 case 0:
883 deleteAllMail(mbox->getWrapper(),folder); 891 deleteAllMail(mbox->getWrapper(),folder);
884 break; 892 break;
885 case 1: 893 case 1:
886 deleteFolder(); 894 deleteFolder();
887 break; 895 break;
896 case 2:
897 downloadMails();
898 break;
888 default: 899 default:
889 break; 900 break;
890 } 901 }
891} 902}