phoneapp/phoneuicontrol/inc/cphonekeyeventforwarder.h
branchRCL_3
changeset 39 b8d67d6176f5
parent 31 ba54057fe027
child 44 3c221667e687
equal deleted inserted replaced
34:b68fcd923911 39:b8d67d6176f5
    20 #define CPHONEKEYEVENTFORWARDER_H
    20 #define CPHONEKEYEVENTFORWARDER_H
    21 
    21 
    22 // INCLUDES
    22 // INCLUDES
    23 #include    <bldvariant.hrh> //Feature flags
    23 #include    <bldvariant.hrh> //Feature flags
    24 #include    <coecntrl.h>
    24 #include    <coecntrl.h>
       
    25 #include    <peninputsrveventhandler.h>
       
    26 #include    <peninputclient.h>
    25  
    27  
    26 // FORWARD DECLARATIONS
    28 // FORWARD DECLARATIONS
    27 class MPhoneStateMachine;
    29 class MPhoneStateMachine;
    28 class MPhoneKeyEventHandler;
    30 class MPhoneKeyEventHandler;
    29 class MPhoneViewCommandHandle;
    31 class MPhoneViewCommandHandle;
    36 /**
    38 /**
    37 *  It is keyevent forwarder.
    39 *  It is keyevent forwarder.
    38 *
    40 *
    39 */
    41 */
    40 class CPhoneKeyEventForwarder 
    42 class CPhoneKeyEventForwarder 
    41     : public CCoeControl 
    43     : public CCoeControl,
       
    44     public MPenUiActivationHandler
    42     {
    45     {
    43     public:  // Constructors and destructor      
    46     public:  // Constructors and destructor      
    44         
    47         
    45         /**
    48         /**
    46         * Two-phased constructor.
    49         * Two-phased constructor.
   113         */
   116         */
   114         TKeyResponse OfferKeyEventAfterControlStackL( 
   117         TKeyResponse OfferKeyEventAfterControlStackL( 
   115                 const TKeyEvent& aKeyEvent,
   118                 const TKeyEvent& aKeyEvent,
   116                 TEventCode aType );
   119                 TEventCode aType );
   117 
   120 
       
   121         /**
       
   122          * @see MPenUiActivationHandler
       
   123          */
       
   124         void OnPeninputUiDeactivated();
       
   125 
       
   126         /**
       
   127          * @see MPenUiActivationHandler
       
   128          */        
       
   129         void OnPeninputUiActivated();
       
   130         
       
   131 
   118     private:
   132     private:
   119 
   133 
   120         /**
   134         /**
   121         * C++ default constructor.
   135         * C++ default constructor.
   122         */
   136         */
   269         /**
   283         /**
   270          * True if there has been a key event but not a closing key up event.
   284          * True if there has been a key event but not a closing key up event.
   271          * Needed to detect situations where key up event is handled before key event.
   285          * Needed to detect situations where key up event is handled before key event.
   272          */
   286          */
   273         TBool iExpectKeyUpEvent;
   287         TBool iExpectKeyUpEvent;
       
   288         
       
   289         /**
       
   290          * Server that sends events via callback when the virtual keyboard is opened/closed.
       
   291          */     
       
   292         RPeninputServer iPeninputServer;
       
   293         
       
   294         /**
       
   295          * Status of virtual keyboard.
       
   296          */     
       
   297         TBool iVirtualKeyBoardOpen;
   274     };
   298     };
   275 
   299 
   276 #endif      // CPHONEKEYEVENTFORWARDER_H
   300 #endif      // CPHONEKEYEVENTFORWARDER_H
   277             
   301             
   278 // End of File
   302 // End of File