inc/screensaverengine.h
branchRCL_3
changeset 13 4784a3bc2236
parent 11 b3594157d381
child 17 d8eca2b0590d
equal deleted inserted replaced
12:1c806ee746e7 13:4784a3bc2236
    32 
    32 
    33 // Delay after screensaver is stopped and hided.
    33 // Delay after screensaver is stopped and hided.
    34 const TInt KDefaultScreenSaverTimeout = 2 * 60 * 1000000; // 2 mins
    34 const TInt KDefaultScreenSaverTimeout = 2 * 60 * 1000000; // 2 mins
    35 
    35 
    36 // FORWARD DECLARATIONS
    36 // FORWARD DECLARATIONS
    37 class CUserActivityManager;
    37 class CScreensaverActivityManager;
    38 class CScreensaverSharedDataI;
    38 class CScreensaverSharedDataI;
    39 class CScreensaverSharedDataMonitor;
    39 class CScreensaverSharedDataMonitor;
    40 class CScreensaverAppUi;
    40 class CScreensaverAppUi;
    41 class CScreensaverView;
    41 class CScreensaverView;
    42 class CPowerSaveDisplayMode;
    42 class CPowerSaveDisplayMode;
   144     * Informs the engine about changes in keyguard state
   144     * Informs the engine about changes in keyguard state
   145     * @param aEnabled whether the keyguard is now on or off 
   145     * @param aEnabled whether the keyguard is now on or off 
   146     */
   146     */
   147     void HandleKeyguardStateChanged( TBool aEnabled );
   147     void HandleKeyguardStateChanged( TBool aEnabled );
   148     
   148     
       
   149     /**
       
   150      * Informs the engine that a key event was received
       
   151      */
       
   152     void NotifyKeyEventReceived();
       
   153     
   149 private:
   154 private:
   150     
   155     
   151     /**
   156     /**
   152     * C++ default constructor
   157     * C++ default constructor
   153     * 
   158     * 
   178     void StartActivityMonitoringL();
   183     void StartActivityMonitoringL();
   179     
   184     
   180     /**
   185     /**
   181     * Stops monitoring the user activity
   186     * Stops monitoring the user activity
   182     */
   187     */
   183     void StopActivityMonitoring( CUserActivityManager*& aActivityManager );
   188     void StopActivityMonitoring( CScreensaverActivityManager*& aActivityManager );
   184 
   189 
   185     /**
   190     /**
   186     * Gets the color model from the resource
   191     * Gets the color model from the resource
   187     */
   192     */
   188     void SetupColorModelL();
   193     void SetupColorModelL();
   228     /**
   233     /**
   229     * Callback fuction. Called when the suspension tiemr time out
   234     * Callback fuction. Called when the suspension tiemr time out
   230     */
   235     */
   231     static TInt HandleSuspendTimerExpiry( TAny* aPtr );
   236     static TInt HandleSuspendTimerExpiry( TAny* aPtr );
   232 
   237 
       
   238     /**
       
   239     * Callback function. Called when activity is no longer ignored
       
   240     */
       
   241     static TInt ResetIgnoreFlagCb( TAny* aPtr );
   233     
   242     
   234     /**
   243     /**
   235     * Returns the CScreensaverView
   244     * Returns the CScreensaverView
   236     */
   245     */
   237     CScreensaverView* View() const;
   246     CScreensaverView* View() const;
   267     * The flag if the screensaver is previewing or not
   276     * The flag if the screensaver is previewing or not
   268     */
   277     */
   269     TBool iScreenSaverIsPreviewing;
   278     TBool iScreenSaverIsPreviewing;
   270     
   279     
   271     /**
   280     /**
       
   281     * 
       
   282     */
       
   283     TBool iIgnoreNextActivity;
       
   284     
       
   285     /**
   272     * The trigger for screensaver activation
   286     * The trigger for screensaver activation
   273     */
   287     */
   274     CUserActivityManager* iActivityManagerScreensaver;
   288     CScreensaverActivityManager* iActivityManagerScreensaver;
   275 
   289 
   276     
   290     
   277     /**
   291     /**
   278     * The pointer to CScreensaverSharedDataI
   292     * The pointer to CScreensaverSharedDataI
   279     * 
   293     * 
   294     CScreensaverIndicatorArray* iIndicatorArray;
   308     CScreensaverIndicatorArray* iIndicatorArray;
   295     
   309     
   296     /**
   310     /**
   297     * The trigger for screensaver activation, short timeout
   311     * The trigger for screensaver activation, short timeout
   298     */
   312     */
   299     CUserActivityManager* iActivityManagerScreensaverShort;
   313     CScreensaverActivityManager* iActivityManagerScreensaverShort;
   300     
   314     
   301     /**
   315     /**
   302     * moved from view class
   316     * moved from view class
   303     */
   317     */
   304     TScreensaverColorModel iColorModel;
   318     TScreensaverColorModel iColorModel;
   324     * expires.
   338     * expires.
   325     * 
   339     * 
   326     * Owned.
   340     * Owned.
   327     */
   341     */
   328     CPeriodic* iExpiryTimer;
   342     CPeriodic* iExpiryTimer;
       
   343     
       
   344     /**
       
   345      * Timer to ignore activity events after keylock activated.
       
   346      */
       
   347     CPeriodic* iIgnoreActivityResetTimer;
   329 
   348 
   330     };
   349     };
   331 
   350 
   332 
   351 
   333 
   352