phoneapp/phoneuicontrol/inc/cphoneuicontroller.h
branchRCL_3
changeset 61 41a7f70b3818
parent 25 91c2fb4b78df
child 62 5266b1f337bd
equal deleted inserted replaced
58:40a3f856b14d 61:41a7f70b3818
    36 class MPhoneViewCommandHandle;
    36 class MPhoneViewCommandHandle;
    37 class MPhoneStateMachine;
    37 class MPhoneStateMachine;
    38 class CPhoneStateHandle;
    38 class CPhoneStateHandle;
    39 class CPEPhoneModel;
    39 class CPEPhoneModel;
    40 class CPhoneRemoteControlHandler;
    40 class CPhoneRemoteControlHandler;
    41 class CPhoneKeyEventForwarder;
    41 
    42 class CPhoneSecurityModeObserver;
       
    43 class CPhoneViewController;
       
    44 
    42 
    45 class CPhoneUIController : 
    43 class CPhoneUIController : 
    46     public CBase, 
    44     public CBase, 
    47     public MEngineMonitor,
    45     public MEngineMonitor,
    48     public MPhoneKeyEventHandler,
    46     public MPhoneKeyEventHandler,
    52     public:
    50     public:
    53 
    51 
    54         /**
    52         /**
    55         * Two-phased constructor.
    53         * Two-phased constructor.
    56         */
    54         */
    57         IMPORT_C static CPhoneUIController* NewL( CPhoneViewController& aViewCommandHandle );
    55         IMPORT_C static CPhoneUIController* NewL( 
       
    56             MPhoneViewCommandHandle* aViewCommandHandle );
    58         
    57         
    59         /**
    58         /**
    60         * Destructor.
    59         * Destructor.
    61         */
    60         */
    62         IMPORT_C virtual ~CPhoneUIController();
    61         IMPORT_C virtual ~CPhoneUIController();
    83         IMPORT_C TKeyResponse HandleKeyEventL(
    82         IMPORT_C TKeyResponse HandleKeyEventL(
    84             const TKeyEvent& aKeyEvent,
    83             const TKeyEvent& aKeyEvent,
    85             TEventCode aEventCode );
    84             TEventCode aEventCode );
    86 
    85 
    87         /**
    86         /**
    88         * From CAknAppUi, initialise a menupane (dynamic).
       
    89         *
       
    90         * @param aResourceId It is the resource id for the pane.
       
    91         * @param aMenuPane It is the menu pane corresponding to the resource.
       
    92         */
       
    93         IMPORT_C void DynInitMenuPaneL( 
       
    94             TInt aResourceId, 
       
    95             CEikMenuPane* aMenuPane );
       
    96 
       
    97         /**
       
    98         * From CAknAppUi, initialise a menubar (dynamic).
       
    99         *
       
   100         * @param aResourceId It is the resource id for the bar.
       
   101         * @param aMenuBar It is the menu bar corresponding to the resource.
       
   102         */
       
   103         IMPORT_C void DynInitMenuBarL( 
       
   104             TInt aResourceId, 
       
   105             CEikMenuBar* aMenuBar );
       
   106 
       
   107         /**
       
   108         * From CEikAppUi. For Idle indicator
    87         * From CEikAppUi. For Idle indicator
   109         */
    88         */
   110         IMPORT_C void HandleSystemEventL(
    89         IMPORT_C void HandleSystemEventL(
   111             const TWsEvent& aEvent );
    90             const TWsEvent& aEvent );
   112 
    91 
   157         * @returns boolean value was the command handled by the state 
   136         * @returns boolean value was the command handled by the state 
   158         *          (ETrue) or not (EFalse)
   137         *          (ETrue) or not (EFalse)
   159         */
   138         */
   160         IMPORT_C TBool ProcessCommandL( TInt aCommand );
   139         IMPORT_C TBool ProcessCommandL( TInt aCommand );
   161 
   140 
       
   141         /**
       
   142         * Handles keylock events
       
   143         * @param aCommand It is the code of the command to be handled.
       
   144         */
       
   145         IMPORT_C void HandleKeyLockEnabled( TBool aKeylockEnabled );
       
   146         
   162     private:
   147     private:
   163         
   148         
   164         /**
   149         /**
   165         * C++ default constructor.
   150         * C++ default constructor.
   166         */
   151         */
   167         CPhoneUIController();
   152         CPhoneUIController();
   168 
   153 
   169         /**
   154         /**
   170         * By default EPOC constructor is private.
   155         * By default EPOC constructor is private.
   171         */
   156         */
   172         void ConstructL( CPhoneViewController& aController );
   157         void ConstructL( MPhoneViewCommandHandle* aViewCommandHandle );
   173         
   158         
   174         /**
   159         /**
   175         * Creates correct protocol DLL depending of the variation.
   160         * Creates correct protocol DLL depending of the variation.
   176         */
   161         */
   177         void CreateProtocolDllL( CPhoneViewController& aController );
   162         void CreateProtocolDllL( MPhoneViewCommandHandle* aViewCommandHandle );
   178         /**
   163         /**
   179         * CallBack for Phone Number Editor
   164         * CallBack for Phone Number Editor
   180         */
   165         */
   181         static TInt HandlePhoneNumberEditorCallBack( TAny* aAny );
   166         static TInt HandlePhoneNumberEditorCallBack( TAny* aAny );
   182         
   167         
   183         /**
   168         /**
   184         * Handles the CallBack for Phone Number Editor
   169         * Handles the CallBack for Phone Number Editor
   185         */
   170         */
   186         void DoHandlePhoneNumberEditorCallBack();
   171         void DoHandlePhoneNumberEditorCallBack();
   187         
   172         
   188 		/**
       
   189         * Handles the construction of Remote Controller Handler.
       
   190         */
       
   191         void ConstructRemoteControlHandlerL();
       
   192         
       
   193     private:    // Data
   173     private:    // Data
   194 
   174 
   195         /**
   175         /**
   196         * CPEPhoneModel
   176         * CPEPhoneModel
   197         */
   177         */
   230         /**
   210         /**
   231         * MPhoneStateMachine
   211         * MPhoneStateMachine
   232         */
   212         */
   233         MPhoneStateMachine* iStateMachine;  // NOT OWNED
   213         MPhoneStateMachine* iStateMachine;  // NOT OWNED
   234         
   214         
   235         /**
       
   236         * iKeyEventForwarder
       
   237         */
       
   238         CPhoneKeyEventForwarder* iKeyEventForwarder;
       
   239 
       
   240 		/**
       
   241 		 * Security mode observer.
       
   242 		 * Own.
       
   243 		 */
       
   244 		CPhoneSecurityModeObserver* iSecurityModeObserver;
       
   245 		
       
   246     };
   215     };
   247 
   216 
   248 #endif      // CPHONEUICONTROLLER_H   
   217 #endif      // CPHONEUICONTROLLER_H   
   249             
   218             
   250 // End of File
   219 // End of File