equal
deleted
inserted
replaced
31 |
31 |
32 /*! |
32 /*! |
33 Constructs a new NmImapClientPlugin. |
33 Constructs a new NmImapClientPlugin. |
34 */ |
34 */ |
35 NmImapClientPlugin::NmImapClientPlugin() |
35 NmImapClientPlugin::NmImapClientPlugin() |
36 : mListOptionsMenuRequest(NULL), |
36 : mUiEngine(NULL), |
|
37 mListOptionsMenuRequest(NULL), |
37 mSettingsViewLauncher(NULL) |
38 mSettingsViewLauncher(NULL) |
38 { |
39 { |
|
40 mUiEngine = NmUiEngine::instance(); |
39 } |
41 } |
40 |
42 |
41 /*! |
43 /*! |
42 Destructor. |
44 Destructor. |
43 */ |
45 */ |
106 connect(sentAction, SIGNAL(triggered()), this, SLOT(switchToStandardFolderSent())); |
108 connect(sentAction, SIGNAL(triggered()), this, SLOT(switchToStandardFolderSent())); |
107 standardFolders->addAction(sentAction); |
109 standardFolders->addAction(sentAction); |
108 // Set active action |
110 // Set active action |
109 NmFolderType curFolderType(NmFolderOther); |
111 NmFolderType curFolderType(NmFolderOther); |
110 if (mUiEngine) { |
112 if (mUiEngine) { |
111 curFolderType = mUiEngine->folderTypeById(request.mailboxId(),request.folderId()); |
113 curFolderType = mUiEngine->folderTypeById(request.mailboxId(),request.folderId()); |
112 } |
114 } |
113 switch (curFolderType){ |
115 switch (curFolderType){ |
114 case NmFolderInbox: { |
116 case NmFolderInbox: { |
115 inboxAction->setChecked(true); |
117 inboxAction->setChecked(true); |
116 break; |
118 break; |