ipsservices/nmimapclientplugin/src/nmimapclientplugin.cpp
changeset 59 16ed8d08d0b1
parent 27 9ba4404ef423
equal deleted inserted replaced
54:997a02608b3a 59:16ed8d08d0b1
    81             mListOptionsMenuRequest = request;
    81             mListOptionsMenuRequest = request;
    82             // Create sub-menu for standard folders selection
    82             // Create sub-menu for standard folders selection
    83             HbMenu *standardFolders = new HbMenu();
    83             HbMenu *standardFolders = new HbMenu();
    84             NmAction *inboxAction = new NmAction(0);
    84             NmAction *inboxAction = new NmAction(0);
    85             inboxAction->setObjectName("imapclientplugin_folders_inbox");
    85             inboxAction->setObjectName("imapclientplugin_folders_inbox");
    86             inboxAction->setText(hbTrId("txt_mail_opt_folders_inbox"));
    86             inboxAction->setText(hbTrId("txt_mail_opt_folder_sub_inbox"));
    87             inboxAction->setCheckable(true);
    87             inboxAction->setCheckable(true);
    88             connect(inboxAction, SIGNAL(triggered()), this, SLOT(switchToStandardFolderInbox()));
    88             connect(inboxAction, SIGNAL(triggered()), this, SLOT(switchToStandardFolderInbox()));
    89             standardFolders->addAction(inboxAction);
    89             standardFolders->addAction(inboxAction);
    90             NmAction *outboxAction = new NmAction(0);
    90             NmAction *outboxAction = new NmAction(0);
    91             outboxAction->setObjectName("imapclientplugin_folders_outbox");
    91             outboxAction->setObjectName("imapclientplugin_folders_outbox");
    92             outboxAction->setText(hbTrId("txt_mail_opt_folders_outbox"));
    92             outboxAction->setText(hbTrId("txt_mail_opt_folder_sub_outbox"));
    93             outboxAction->setCheckable(true);
    93             outboxAction->setCheckable(true);
    94             connect(outboxAction, SIGNAL(triggered()), this, SLOT(switchToStandardFolderOutbox()));
    94             connect(outboxAction, SIGNAL(triggered()), this, SLOT(switchToStandardFolderOutbox()));
    95             standardFolders->addAction(outboxAction);
    95             standardFolders->addAction(outboxAction);
    96             NmAction *draftsAction = new NmAction(0);
    96             NmAction *draftsAction = new NmAction(0);
    97             draftsAction->setObjectName("imapclientplugin_folders_drafts");
    97             draftsAction->setObjectName("imapclientplugin_folders_drafts");
    98             draftsAction->setText(hbTrId("txt_mail_opt_folders_drafts"));
    98             draftsAction->setText(hbTrId("txt_mail_opt_folder_sub_drafts"));
    99             draftsAction->setCheckable(true);
    99             draftsAction->setCheckable(true);
   100             connect(draftsAction, SIGNAL(triggered()), this, SLOT(switchToStandardFolderDrafts()));
   100             connect(draftsAction, SIGNAL(triggered()), this, SLOT(switchToStandardFolderDrafts()));
   101             standardFolders->addAction(draftsAction);
   101             standardFolders->addAction(draftsAction);
   102             NmAction *sentAction = new NmAction(0);
   102             NmAction *sentAction = new NmAction(0);
   103             sentAction->setObjectName("imapclientplugin_folders_sent");
   103             sentAction->setObjectName("imapclientplugin_folders_sent");
   104             sentAction->setText(hbTrId("txt_mail_opt_folders_sent"));
   104             sentAction->setText(hbTrId("txt_mail_opt_folder_sub_sent"));
   105             sentAction->setCheckable(true);
   105             sentAction->setCheckable(true);
   106             connect(sentAction, SIGNAL(triggered()), this, SLOT(switchToStandardFolderSent()));
   106             connect(sentAction, SIGNAL(triggered()), this, SLOT(switchToStandardFolderSent()));
   107             standardFolders->addAction(sentAction);
   107             standardFolders->addAction(sentAction);
   108             // Set active action
   108             // Set active action
   109             NmFolderType curFolderType(NmFolderOther);
   109             NmFolderType curFolderType(NmFolderOther);
   130             }
   130             }
   131 
   131 
   132             // Add folders selection with sub-menu
   132             // Add folders selection with sub-menu
   133             NmAction *foldersAction = new NmAction(0);
   133             NmAction *foldersAction = new NmAction(0);
   134             foldersAction->setObjectName("baseclientplugin_folders");
   134             foldersAction->setObjectName("baseclientplugin_folders");
   135             foldersAction->setText(hbTrId("txt_mail_opt_folders"));
   135             foldersAction->setText(hbTrId("txt_mail_opt_change_folder"));
   136             foldersAction->setMenu(standardFolders);
   136             foldersAction->setMenu(standardFolders);
   137             actionList.append(foldersAction);
   137             actionList.append(foldersAction);
   138             }
   138             }
   139         }
   139         }
   140         break;
   140         break;