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); |