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