idlehomescreen/xmluirendering/uiengine/inc/xnfocuscontrol.h
branchRCL_3
changeset 11 ff572dfe6d86
parent 0 f72a12da539e
equal deleted inserted replaced
9:f966699dea19 11:ff572dfe6d86
    20 #define _XNFOCUSCONTROL_H
    20 #define _XNFOCUSCONTROL_H
    21 
    21 
    22 // System includes
    22 // System includes
    23 #include <e32base.h>
    23 #include <e32base.h>
    24 
    24 
    25 // User includes
       
    26 #include "xninactivitymonitor.h"
       
    27 
       
    28 // Forward declarations
    25 // Forward declarations
    29 class CXnAppUiAdapter;
    26 class CXnAppUiAdapter;
    30 class CWindowGc;
    27 class CWindowGc;
    31 
    28 
    32 /**
    29 /**
    34  * 
    31  * 
    35  * @ingroup group_xnlayoutengine
    32  * @ingroup group_xnlayoutengine
    36  * @lib xn3layoutengine.lib
    33  * @lib xn3layoutengine.lib
    37  * @since S60 5.0
    34  * @since S60 5.0
    38  */
    35  */
    39 NONSHARABLE_CLASS( CXnFocusControl ) : public CBase,
    36 NONSHARABLE_CLASS( CXnFocusControl ) : public CBase
    40     public MXnInactivityObserver
       
    41     {
    37     {
    42 public:    
    38 public:    
    43     // Constructors and destructor
    39     // Constructors and destructor
    44     
    40     
    45     /**
    41     /**
    68     /**
    64     /**
    69      * C++ default constructor
    65      * C++ default constructor
    70      */
    66      */
    71     CXnFocusControl( CXnAppUiAdapter& aAppUiAdapter );
    67     CXnFocusControl( CXnAppUiAdapter& aAppUiAdapter );
    72     
    68     
    73 private:
       
    74     // from MXnInactivityObserver
       
    75     
       
    76     /**
       
    77      * @see MXnInactivityObserver
       
    78      */
       
    79     void InactivityTimerExpired();
       
    80 
       
    81 public: 
    69 public: 
    82     // new functions
    70     // new functions
    83     
    71     
    84     /**
    72     /**
    85      * Makes focus viisble
    73      * Makes focus viisble
   114 private:
   102 private:
   115     // data
   103     // data
   116     
   104     
   117     /** AppUiAdapter, Not owned */
   105     /** AppUiAdapter, Not owned */
   118     CXnAppUiAdapter& iAppUiAdapter;
   106     CXnAppUiAdapter& iAppUiAdapter;
   119     /** Inactivity monitor, Owned */
       
   120     CXnInactivityMonitor* iMonitor;
       
   121     /** Flag to indicate whether it is allowed to show focus */
   107     /** Flag to indicate whether it is allowed to show focus */
   122     TBool iVisible;
   108     TBool iVisible;
   123     /** Flag to indicate refusal */
   109     /** Flag to indicate refusal */
   124     TBool iRefused;
   110     TBool iRefused;
   125     };
   111     };