ipsservices/nmimapclientplugin/src/nmimapclientplugin.cpp
changeset 38 b4618f2cf6ac
parent 23 2dc6caa42ec3
child 39 b0b89ca206b5
equal deleted inserted replaced
23:2dc6caa42ec3 38:b4618f2cf6ac
    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;