phoneapp/phoneuicontrol/inc/cphonesystemeventhandler.h
changeset 74 d1c62c765e48
parent 65 2a5d4ab426d3
equal deleted inserted replaced
65:2a5d4ab426d3 74:d1c62c765e48
    22 
    22 
    23 //  INCLUDES
    23 //  INCLUDES
    24 #include <e32base.h>
    24 #include <e32base.h>
    25 #include "mphonesystemeventhandler.h"
    25 #include "mphonesystemeventhandler.h"
    26 #include "mphonepubsubobserver.h"
    26 #include "mphonepubsubobserver.h"
    27 #include "mphonecenrepobserver.h"
       
    28 
    27 
    29 // FORWARD DECLARATIONS
    28 // FORWARD DECLARATIONS
    30 class MPhoneStateMachine;
    29 class MPhoneStateMachine;
    31 
    30 
    32 /**
    31 /**
    33 * Transforms system events to be sent to the states
    32 * Transforms system events to be sent to the states
    34 */
    33 */
    35 class CPhoneSystemEventHandler : 
    34 class CPhoneSystemEventHandler : 
    36     public CBase, 
    35     public CBase, 
    37     public MPhoneSystemEventHandler,
    36     public MPhoneSystemEventHandler,
    38     public MPhonePubSubObserver,
    37     public MPhonePubSubObserver
    39     public MPhoneCenRepObserver
       
    40     {
    38     {
    41     public:
    39     public:
    42 
    40 
    43         /**
    41         /**
    44         * Two-phased constructor.
    42         * Two-phased constructor.
    51         */
    49         */
    52         virtual ~CPhoneSystemEventHandler();
    50         virtual ~CPhoneSystemEventHandler();
    53 
    51 
    54     public: // From MPhoneSystemEvents
    52     public: // From MPhoneSystemEvents
    55 
    53 
    56         void HandleSystemEventL( const TWsEvent& aEvent );
       
    57 
       
    58         void HandleForegroundEventL( TBool aForeground );
       
    59 
       
    60         void HandlePhoneForegroundEventL();
       
    61 
       
    62         void HandleIdleForegroundEventL();
       
    63 
       
    64         void HandlePhoneStartupL();
    54         void HandlePhoneStartupL();
    65         
       
    66         void HandlePhoneFocusLostEventL();
       
    67 
       
    68         void HandleKeyLockEnabled( TBool aKeylockEnabled );
       
    69         
    55         
    70     public: // From MPhonePubSubObserver
    56     public: // From MPhonePubSubObserver
    71 
    57 
    72         /**
    58         /**
    73         * This function is called when there is property value change.
    59         * This function is called when there is property value change.
    77         */
    63         */
    78         virtual void HandlePropertyChangedL( 
    64         virtual void HandlePropertyChangedL( 
    79             const TUid& aCategory,
    65             const TUid& aCategory,
    80             const TUint aKey,
    66             const TUint aKey,
    81             const TInt aValue );
    67             const TInt aValue );
    82 
       
    83     public: // From MPhoneCenRepObserver
       
    84 
       
    85         /**
       
    86         * Handle the change of the setting from Central Repository
       
    87         * @param aUid identifing the central repository UID.
       
    88         * @param aId central repository ID.
       
    89         */
       
    90         virtual void HandleCenRepChangeL( 
       
    91             const TUid& aUid,
       
    92             const TUint aId );
       
    93 
       
    94     private:
    68     private:
    95 
    69 
    96         /**
    70         /**
    97         * By default EPOC constructor is private.
    71         * By default EPOC constructor is private.
    98         */
    72         */