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