phonebookui/Phonebook2/NamesListExtension/src/NamesListExView.cpp
branchRCL_3
changeset 21 9da50d567e3c
parent 20 f4a778e096c2
equal deleted inserted replaced
20:f4a778e096c2 21:9da50d567e3c
    19 // INCLUDE FILES
    19 // INCLUDE FILES
    20 #include "Pbk2NamesListExView.h"
    20 #include "Pbk2NamesListExView.h"
    21 #include "CPbk2CmdItemAddTop.h"
    21 #include "CPbk2CmdItemAddTop.h"
    22 #include "CPbk2CmdItemRemoteContactLookup.h"
    22 #include "CPbk2CmdItemRemoteContactLookup.h"
    23 #include <cpbk2remotecontactlookupaccounts.h>
    23 #include <cpbk2remotecontactlookupaccounts.h>
    24 #include <Pbk2ExNamesListRes.rsg>
    24 #include <pbk2exnameslistres.rsg>
    25 #include "Pbk2NlxMenuFiltering.h"
    25 #include "Pbk2NlxMenuFiltering.h"
    26 #include "cpbk2cmditemmycard.h"
    26 #include "cpbk2cmditemmycard.h"
    27 #include "cpbk2mycard.h"
    27 #include "cpbk2mycard.h"
    28 #include "Pbk2NamesListEx.hrh"
    28 #include "Pbk2NamesListEx.hrh"
    29 #include "cpbk2contextlaunch.h"
    29 #include "cpbk2contextlaunch.h"
    34 #include <CPbk2UIExtensionView.h>
    34 #include <CPbk2UIExtensionView.h>
    35 #include <MPbk2AppUi.h>
    35 #include <MPbk2AppUi.h>
    36 #include <MPbk2ViewExplorer.h>
    36 #include <MPbk2ViewExplorer.h>
    37 #include "CPbk2ViewState.h"
    37 #include "CPbk2ViewState.h"
    38 #include <MPbk2StartupMonitor.h>
    38 #include <MPbk2StartupMonitor.h>
    39 #include <Phonebook2.rsg>
    39 #include <phonebook2.rsg>
    40 #include <Pbk2Commands.rsg>
    40 #include <pbk2commands.rsg>
    41 #include <Pbk2UIControls.rsg>
    41 #include <pbk2uicontrols.rsg>
    42 #include <Pbk2CommonUi.rsg>
    42 #include <pbk2commonui.rsg>
    43 #include <CPbk2ControlContainer.h>
    43 #include <CPbk2ControlContainer.h>
    44 #include <CPbk2NamesListControl.h>
    44 #include <CPbk2NamesListControl.h>
    45 #include <MPbk2CommandHandler.h>
    45 #include <MPbk2CommandHandler.h>
    46 #include <Pbk2Commands.hrh>
    46 #include <Pbk2Commands.hrh>
       
    47 #include <PmuCommands.hrh>
    47 #include <MPbk2ViewActivationTransaction.h>
    48 #include <MPbk2ViewActivationTransaction.h>
    48 #include <CPbk2ViewStateTransformer.h>
    49 #include <CPbk2ViewStateTransformer.h>
    49 #include <csxhelp/phob.hlp.hrh>
    50 #include <csxhelp/phob.hlp.hrh>
    50 #include <Pbk2UID.h>
    51 #include <Pbk2UID.h>
    51 #include <MPbk2PointerEventInspector.h>
    52 #include <MPbk2PointerEventInspector.h>
   810             TInt pos;
   811             TInt pos;
   811             if ( aMenuPane->MenuItemExists( EAknCmdMarkingModeEnter, pos ) &&
   812             if ( aMenuPane->MenuItemExists( EAknCmdMarkingModeEnter, pos ) &&
   812                     iControl->NumberOfContacts() <= 0 )
   813                     iControl->NumberOfContacts() <= 0 )
   813                 {
   814                 {
   814                 aMenuPane->SetItemDimmed( EAknCmdMarkingModeEnter, ETrue );
   815                 aMenuPane->SetItemDimmed( EAknCmdMarkingModeEnter, ETrue );
       
   816                 }
       
   817             break;
       
   818             }
       
   819         case R_PHONEBOOK2_NAMESLIST_BACKUP_MENU_PLACEHOLDER:
       
   820             {
       
   821             if ( iControl->ContactsMarked() && iMarkingModeOn )
       
   822                 {
       
   823                 // This item is shown in option menu but not in popup menu
       
   824                 CEikMenuBar* menuBar = static_cast<CEikMenuBar*>( aMenuPane->Parent() );
       
   825                 if ( menuBar && menuBar->GetMenuType() == CEikMenuBar::EMenuOptions )
       
   826                     {
       
   827                     aMenuPane->SetItemSpecific( EPmuCmdCascadingBackup, ETrue );
       
   828                     }
       
   829                 else
       
   830                     {
       
   831                     aMenuPane->SetItemDimmed( EPmuCmdCascadingBackup, ETrue );
       
   832                     }
   815                 }
   833                 }
   816             break;
   834             break;
   817             }
   835             }
   818         case R_PHONEBOOK2_NAMESLIST_SEND_URL_MENU:
   836         case R_PHONEBOOK2_NAMESLIST_SEND_URL_MENU:
   819             {
   837             {