ipsservices/nmpopclientplugin/src/nmpopclientplugin.cpp
changeset 51 d845db10c0d4
parent 40 2c62ef3caffd
child 76 38bf5461e270
equal deleted inserted replaced
49:00c7ae862740 51:d845db10c0d4
    86             mListOptionsMenuRequest = request;
    86             mListOptionsMenuRequest = request;
    87             // Create sub-menu for standard folders selection
    87             // Create sub-menu for standard folders selection
    88             HbMenu *standardFolders = new HbMenu();
    88             HbMenu *standardFolders = new HbMenu();
    89             NmAction *inboxAction = new NmAction(0);
    89             NmAction *inboxAction = new NmAction(0);
    90             inboxAction->setObjectName("popclientplugin_folders_inbox");
    90             inboxAction->setObjectName("popclientplugin_folders_inbox");
    91             inboxAction->setText(hbTrId("txt_mail_opt_folders_inbox"));
    91             inboxAction->setText(hbTrId("txt_mail_opt_folder_sub_inbox"));
    92             inboxAction->setCheckable(true);
    92             inboxAction->setCheckable(true);
    93             connect(inboxAction, SIGNAL(triggered()), this, SLOT(switchToStandardFolderInbox()));
    93             connect(inboxAction, SIGNAL(triggered()), this, SLOT(switchToStandardFolderInbox()));
    94             standardFolders->addAction(inboxAction);
    94             standardFolders->addAction(inboxAction);
    95             NmAction *outboxAction = new NmAction(0);
    95             NmAction *outboxAction = new NmAction(0);
    96             outboxAction->setObjectName("popclientplugin_folders_outbox");
    96             outboxAction->setObjectName("popclientplugin_folders_outbox");
    97             outboxAction->setText(hbTrId("txt_mail_opt_folders_outbox"));
    97             outboxAction->setText(hbTrId("txt_mail_opt_folder_sub_outbox"));
    98             outboxAction->setCheckable(true);
    98             outboxAction->setCheckable(true);
    99             connect(outboxAction, SIGNAL(triggered()), this, SLOT(switchToStandardFolderOutbox()));
    99             connect(outboxAction, SIGNAL(triggered()), this, SLOT(switchToStandardFolderOutbox()));
   100             standardFolders->addAction(outboxAction);
   100             standardFolders->addAction(outboxAction);
   101             NmAction *draftsAction = new NmAction(0);
   101             NmAction *draftsAction = new NmAction(0);
   102             draftsAction->setObjectName("popclientplugin_folders_drafts");
   102             draftsAction->setObjectName("popclientplugin_folders_drafts");
   103             draftsAction->setText(hbTrId("txt_mail_opt_folders_drafts"));
   103             draftsAction->setText(hbTrId("txt_mail_opt_folder_sub_drafts"));
   104             draftsAction->setCheckable(true);
   104             draftsAction->setCheckable(true);
   105             connect(draftsAction, SIGNAL(triggered()), this, SLOT(switchToStandardFolderDrafts()));
   105             connect(draftsAction, SIGNAL(triggered()), this, SLOT(switchToStandardFolderDrafts()));
   106             standardFolders->addAction(draftsAction);
   106             standardFolders->addAction(draftsAction);
   107             NmAction *sentAction = new NmAction(0);
   107             NmAction *sentAction = new NmAction(0);
   108             sentAction->setObjectName("popclientplugin_folders_sent");
   108             sentAction->setObjectName("popclientplugin_folders_sent");
   109             sentAction->setText(hbTrId("txt_mail_opt_folders_sent"));
   109             sentAction->setText(hbTrId("txt_mail_opt_folder_sub_sent"));
   110             sentAction->setCheckable(true);
   110             sentAction->setCheckable(true);
   111             connect(sentAction, SIGNAL(triggered()), this, SLOT(switchToStandardFolderSent()));
   111             connect(sentAction, SIGNAL(triggered()), this, SLOT(switchToStandardFolderSent()));
   112             standardFolders->addAction(sentAction);
   112             standardFolders->addAction(sentAction);
   113             // Set active action
   113             // Set active action
   114             NmFolderType curFolderType(NmFolderOther);
   114             NmFolderType curFolderType(NmFolderOther);
   135             }
   135             }
   136 
   136 
   137             // Add folders selection with sub-menu
   137             // Add folders selection with sub-menu
   138             NmAction *foldersAction = new NmAction(0);
   138             NmAction *foldersAction = new NmAction(0);
   139             foldersAction->setObjectName("baseclientplugin_folders");
   139             foldersAction->setObjectName("baseclientplugin_folders");
   140             foldersAction->setText(hbTrId("txt_mail_opt_folders"));
   140             foldersAction->setText(hbTrId("txt_mail_opt_change_folder"));
   141             foldersAction->setMenu(standardFolders);
   141             foldersAction->setMenu(standardFolders);
   142             actionList.append(foldersAction);
   142             actionList.append(foldersAction);
   143             }
   143             }
   144         }
   144         }
   145         break;
   145         break;