phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/inc/CCCAppCommLauncherPbkCmd.h
branchRCL_3
changeset 13 a6539d1e8e43
parent 0 e686773b3f54
equal deleted inserted replaced
12:4ae315f230bc 13:a6539d1e8e43
    24 #include <RPbk2LocalizedResourceFile.h>
    24 #include <RPbk2LocalizedResourceFile.h>
    25 #include <MVPbkSingleContactOperationObserver.h>
    25 #include <MVPbkSingleContactOperationObserver.h>
    26 #include <MVPbkContactStoreObserver.h>
    26 #include <MVPbkContactStoreObserver.h>
    27 #include <MPbk2ContactUiControl.h>
    27 #include <MPbk2ContactUiControl.h>
    28 #include <MPbk2ContactUiControl2.h>
    28 #include <MPbk2ContactUiControl2.h>
       
    29 #include <MPbk2MenuCommandObserver.h>
    29 #include <Pbk2Commands.hrh>
    30 #include <Pbk2Commands.hrh>
    30 
    31 
    31 class CPbk2CommandHandler;
    32 class CPbk2CommandHandler;
    32 class CPbk2ApplicationServices;
    33 class CPbk2ApplicationServices;
    33 class MVPbkContactOperationBase;
    34 class MVPbkContactOperationBase;
    51 class CCCAppCommLauncherPbkCmd :
    52 class CCCAppCommLauncherPbkCmd :
    52             public CBase,
    53             public CBase,
    53             public MVPbkContactStoreObserver,
    54             public MVPbkContactStoreObserver,
    54             public MVPbkSingleContactOperationObserver,
    55             public MVPbkSingleContactOperationObserver,
    55             public MPbk2ContactUiControl,
    56             public MPbk2ContactUiControl,
    56             public MPbk2ContactUiControl2
    57             public MPbk2ContactUiControl2,
       
    58             private MPbk2MenuCommandObserver
    57     {
    59     {
    58 public:
    60 public:
    59 
    61 
    60     static CCCAppCommLauncherPbkCmd* NewL( CCCAppCommLauncherPlugin& aPlugin );
    62     static CCCAppCommLauncherPbkCmd* NewL( CCCAppCommLauncherPlugin& aPlugin );
    61     static CCCAppCommLauncherPbkCmd* NewLC( CCCAppCommLauncherPlugin& aPlugin );
    63     static CCCAppCommLauncherPbkCmd* NewLC( CCCAppCommLauncherPlugin& aPlugin );
   161     TInt CommandItemCount() const;
   163     TInt CommandItemCount() const;
   162     const MPbk2UiControlCmdItem& CommandItemAt( TInt aIndex ) const;
   164     const MPbk2UiControlCmdItem& CommandItemAt( TInt aIndex ) const;
   163     const MPbk2UiControlCmdItem* FocusedCommandItem() const;
   165     const MPbk2UiControlCmdItem* FocusedCommandItem() const;
   164     void DeleteCommandItemL( TInt aIndex );
   166     void DeleteCommandItemL( TInt aIndex );
   165     void AddCommandItemL(MPbk2UiControlCmdItem* /*aCommand*/, TInt /*aIndex*/);
   167     void AddCommandItemL(MPbk2UiControlCmdItem* /*aCommand*/, TInt /*aIndex*/);
       
   168 
       
   169 private: // From MPbk2MenuCommandObserver
       
   170     void PreCommandExecutionL( const MPbk2Command& /*aCommand*/ ) {}
       
   171     void PostCommandExecutionL( const MPbk2Command& aCommand );
       
   172     
   166 private:
   173 private:
   167 
   174 
   168     void ConstructL();
   175     void ConstructL();
   169     CCCAppCommLauncherPbkCmd( CCCAppCommLauncherPlugin& aPlugin );
   176     CCCAppCommLauncherPbkCmd( CCCAppCommLauncherPlugin& aPlugin );
   170 
   177 
   221     
   228     
   222     CCCAppCommLauncherPlugin& iPlugin;
   229     CCCAppCommLauncherPlugin& iPlugin;
   223     
   230     
   224     /// Own: contact store in use, has to be closed when done
   231     /// Own: contact store in use, has to be closed when done
   225     MVPbkContactStore* iContactStore;
   232     MVPbkContactStore* iContactStore;
   226     
       
   227     /// Own: Boolean for querying if there is a command being executed
       
   228     TBool iCommandInProgress;
       
   229     };
   233     };
   230 
   234 
   231 #endif // C_CCCAPPCOMMLAUNCHERPBKCMD_H
   235 #endif // C_CCCAPPCOMMLAUNCHERPBKCMD_H