phonebookui/Phonebook2/NamesListExtension/inc/Pbk2NamesListExView.h
branchRCL_3
changeset 18 d4f567ce2e7c
parent 6 e8e3147d53eb
equal deleted inserted replaced
17:2666d9724c76 18:d4f567ce2e7c
    30 #include <akntoolbarobserver.h>
    30 #include <akntoolbarobserver.h>
    31 #include <eiklbo.h>
    31 #include <eiklbo.h>
    32 #include <coemain.h>
    32 #include <coemain.h>
    33 
    33 
    34 #include <Pbk2Commands.hrh> 
    34 #include <Pbk2Commands.hrh> 
       
    35 #include <aknmarkingmodeobserver.h>
    35 
    36 
    36 // FORWARD DECLARATIONS
    37 // FORWARD DECLARATIONS
    37 template<class ControlType> class CPbk2ControlContainer;
    38 template<class ControlType> class CPbk2ControlContainer;
    38 class CPbk2UIExtensionView;
    39 class CPbk2UIExtensionView;
    39 class MPbk2ContactUiControl;
    40 class MPbk2ContactUiControl;
    68                              public MPbk2MenuCommandObserver,
    69                              public MPbk2MenuCommandObserver,
    69                              public MAknToolbarObserver,
    70                              public MAknToolbarObserver,
    70                              public MCoeControlObserver,
    71                              public MCoeControlObserver,
    71                              public MEikListBoxObserver,
    72                              public MEikListBoxObserver,
    72                              private MCoeForegroundObserver,
    73                              private MCoeForegroundObserver,
    73                              public MPbk2UIExtensionView2
    74                              public MPbk2UIExtensionView2,
       
    75                              public MAknMarkingModeObserver
    74     {
    76     {
    75     public: // Construction and destruction
    77     public: // Construction and destruction
    76 
    78 
    77         /**
    79         /**
    78          * Creates a new instance of this class.
    80          * Creates a new instance of this class.
   159 
   161 
   160     private: // From MCoeControlObserver
   162     private: // From MCoeControlObserver
   161         void HandleControlEventL(
   163         void HandleControlEventL(
   162                 CCoeControl* aControl,
   164                 CCoeControl* aControl,
   163                 TCoeEvent aEventType );
   165                 TCoeEvent aEventType );
       
   166 
       
   167     public: // From MAknMarkingModeObserver 
       
   168             
       
   169         /**
       
   170          * This method is called when marking mode is activated or deactivated.
       
   171          * 
       
   172          * @param aActivated @c ETrue if marking mode was activate, @c EFalse
       
   173          *                   if marking mode was deactivated.
       
   174          */
       
   175         void MarkingModeStatusChanged( TBool aActivated );
       
   176 
       
   177         /**
       
   178          * This method is called just before marking mode is closed. Client can 
       
   179          * either accept or decline closing.
       
   180          * 
       
   181          * @return @c ETrue if marking mode should be closed, otherwise @c EFalse.
       
   182          */
       
   183         TBool ExitMarkingMode() const;  
   164 
   184 
   165     private: // Implementation
   185     private: // Implementation
   166         CPbk2NamesListExView( 
   186         CPbk2NamesListExView( 
   167             CPbk2UIExtensionView& aView,
   187             CPbk2UIExtensionView& aView,
   168             CSpbContentProvider& aStatusProvider,
   188             CSpbContentProvider& aStatusProvider,
   260         
   280         
   261         // REF: content provider
   281         // REF: content provider
   262         CSpbContentProvider&  iContentProvider;
   282         CSpbContentProvider&  iContentProvider;
   263         // Not own. CCA launcher connection
   283         // Not own. CCA launcher connection
   264         MCCAConnection*& iCCAConnection;
   284         MCCAConnection*& iCCAConnection;
   265         /// Own: Context launcher
   285         // Own: Context launcher
   266         CPbk2ContextLaunch* iContextLauncher;
   286         CPbk2ContextLaunch* iContextLauncher;
       
   287         // Flag to indicate whether Marking mode is active
       
   288         TBool iMarkingModeOn;
   267     };
   289     };
   268 
   290 
   269 #endif // CPBK2NAMESLISTEXVIEW_H
   291 #endif // CPBK2NAMESLISTEXVIEW_H
   270 
   292 
   271 // End of File
   293 // End of File