coreapplicationuis/SysAp/Inc/sysapdefaultkeyhandler.h
branchRCL_3
changeset 63 c2c61fdca848
parent 62 924385140d98
equal deleted inserted replaced
62:924385140d98 63:c2c61fdca848
    19 #ifndef SYSAPDEFAULTKEYHANDLER_H
    19 #ifndef SYSAPDEFAULTKEYHANDLER_H
    20 #define SYSAPDEFAULTKEYHANDLER_H
    20 #define SYSAPDEFAULTKEYHANDLER_H
    21 
    21 
    22 #include <e32base.h>
    22 #include <e32base.h>
    23 #include <coedef.h>
    23 #include <coedef.h>
    24 //#include <AknCapServerClient.h>
    24 #include <AknCapServerClient.h>
    25 
    25 #include <e32property.h>
    26 class RWindowGroup;
    26 
    27 class MSysapCallback;
    27 class MSysapCallback;
    28 
    28 class RAknKeylock2;
    29 //class RAknKeylock2;
    29 class CRepository;
    30 //class CSysApAppUi;
    30 class CKeyLockPolicyApi;
    31 
    31 
    32 
    32 
    33 /**
    33 /**
    34  *  Default key handling of System Application.
    34  *  Default key handling of System Application.
    35  *
    35  *
    50         * 
    50         * 
    51         * @since S60 3.2
    51         * @since S60 3.2
    52         * @param aCallback reference to System Application callback interface.
    52         * @param aCallback reference to System Application callback interface.
    53         * @return pointer to a new instance of CSysApDefaultKeyHandler.
    53         * @return pointer to a new instance of CSysApDefaultKeyHandler.
    54         */
    54         */
    55         static CSysApDefaultKeyHandler* NewL(MSysapCallback& callback);
    55         static CSysApDefaultKeyHandler* NewL( MSysapCallback& callback );
    56 
    56 
    57         /**
    57         /**
    58         * Destructor.
    58         * Destructor.
    59         */
    59         */
    60         virtual ~CSysApDefaultKeyHandler();
    60         virtual ~CSysApDefaultKeyHandler();
    86         /**
    86         /**
    87         * Constructor.
    87         * Constructor.
    88         *
    88         *
    89         * @param aCallback reference to System Application callback interface.
    89         * @param aCallback reference to System Application callback interface.
    90         */
    90         */
    91         CSysApDefaultKeyHandler(MSysapCallback& callback );
    91         CSysApDefaultKeyHandler( MSysapCallback& callback );
    92 
    92 
    93     private:
    93     private:
    94     
    94     
    95         /**
    95         /**
    96         * C++ default constructor.
    96         * C++ default constructor.
   163         * @return TBool ETrue if keys are locked and note was shown
   163         * @return TBool ETrue if keys are locked and note was shown
   164         */
   164         */
   165         TBool DoShowKeysLockedNote();
   165         TBool DoShowKeysLockedNote();
   166         
   166         
   167     private: // data
   167     private: // data
   168         
   168 
   169         // Our window group from SysappUi
       
   170  //       RWindowGroup& iRootWindowGroup;
       
   171         
       
   172         /**
   169         /**
   173         * Reference to callback object.
   170         * Reference to callback object.
   174         */
   171         */
   175         MSysapCallback& iCallback;
   172         MSysapCallback& iCallback;
   176         
   173         
   186         
   183         
   187         /**
   184         /**
   188         * Pointer to sysap-owned RAknKeylock2*
   185         * Pointer to sysap-owned RAknKeylock2*
   189         * Not own.
   186         * Not own.
   190         */
   187         */
   191 //        RAknKeylock2* iKeylock;
   188         RAknKeylock2* iKeylock;
       
   189         
       
   190         /**
       
   191          * Owned. Used to enable/disable keylock activation when slide is close/open
       
   192          */
       
   193         CKeyLockPolicyApi* iKeylockPolicy;
   192         
   194         
   193         /**
   195         /**
   194         * Handle of the captured camera key event.
   196         * Handle of the captured camera key event.
   195         */
   197         */
   196         TInt iCapturedEKeyCamera;
   198         TInt iCapturedEKeyCamera;
   226         TBool iAknUiServerConnected;
   228         TBool iAknUiServerConnected;
   227         
   229         
   228         /**
   230         /**
   229         * Avkon UI Server
   231         * Avkon UI Server
   230         */
   232         */
   231 //        RAknUiServer iAknUiServer;
   233         RAknUiServer iAknUiServer;
   232         
   234         
       
   235         /**
       
   236          * Keypad slide handling CR
       
   237          */
       
   238         CRepository* iSlideRepository;
       
   239         TBool iKeypadWasLocked;
       
   240 
       
   241         /**
       
   242           * Call status P&S for slide handling
       
   243           */
       
   244         RProperty iCallStateProperty;
   233     };
   245     };
   234 
   246 
   235 #endif // SYSAPDEFAULTKEYHANDLER_H
   247 #endif // SYSAPDEFAULTKEYHANDLER_H