equal
deleted
inserted
replaced
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 CScreensaverActivityManager; |
37 class CUserActivityManager; |
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; |
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 /** |
149 /** |
150 * Informs the engine that a key event was received |
150 * Informs the engine that a start/stop request was emitted through P&S |
|
151 * @param aStart True if screensaver should be started, false if stopped |
151 */ |
152 */ |
152 void NotifyKeyEventReceived(); |
153 void HandleActivateSSChanged( TBool aStart ); |
153 |
154 |
154 private: |
155 private: |
155 |
156 |
156 /** |
157 /** |
157 * C++ default constructor |
158 * C++ default constructor |
183 void StartActivityMonitoringL(); |
184 void StartActivityMonitoringL(); |
184 |
185 |
185 /** |
186 /** |
186 * Stops monitoring the user activity |
187 * Stops monitoring the user activity |
187 */ |
188 */ |
188 void StopActivityMonitoring( CScreensaverActivityManager*& aActivityManager ); |
189 void StopActivityMonitoring( CUserActivityManager*& aActivityManager ); |
189 |
190 |
190 /** |
191 /** |
191 * Gets the color model from the resource |
192 * Gets the color model from the resource |
192 */ |
193 */ |
193 void SetupColorModelL(); |
194 void SetupColorModelL(); |
234 * Callback fuction. Called when the suspension tiemr time out |
235 * Callback fuction. Called when the suspension tiemr time out |
235 */ |
236 */ |
236 static TInt HandleSuspendTimerExpiry( TAny* aPtr ); |
237 static TInt HandleSuspendTimerExpiry( TAny* aPtr ); |
237 |
238 |
238 /** |
239 /** |
239 * Callback function. Called when activity is no longer ignored |
|
240 */ |
|
241 static TInt ResetIgnoreFlagCb( TAny* aPtr ); |
|
242 |
|
243 /** |
|
244 * Returns the CScreensaverView |
240 * Returns the CScreensaverView |
245 */ |
241 */ |
246 CScreensaverView* View() const; |
242 CScreensaverView* View() const; |
247 |
243 |
248 /** |
244 /** |
276 * The flag if the screensaver is previewing or not |
272 * The flag if the screensaver is previewing or not |
277 */ |
273 */ |
278 TBool iScreenSaverIsPreviewing; |
274 TBool iScreenSaverIsPreviewing; |
279 |
275 |
280 /** |
276 /** |
281 * |
|
282 */ |
|
283 TBool iIgnoreNextActivity; |
|
284 |
|
285 /** |
|
286 * The trigger for screensaver activation |
277 * The trigger for screensaver activation |
287 */ |
278 */ |
288 CScreensaverActivityManager* iActivityManagerScreensaver; |
279 CUserActivityManager* iActivityManagerScreensaver; |
289 |
280 |
290 |
281 |
291 /** |
282 /** |
292 * The pointer to CScreensaverSharedDataI |
283 * The pointer to CScreensaverSharedDataI |
293 * |
284 * |
308 CScreensaverIndicatorArray* iIndicatorArray; |
299 CScreensaverIndicatorArray* iIndicatorArray; |
309 |
300 |
310 /** |
301 /** |
311 * The trigger for screensaver activation, short timeout |
302 * The trigger for screensaver activation, short timeout |
312 */ |
303 */ |
313 CScreensaverActivityManager* iActivityManagerScreensaverShort; |
304 CUserActivityManager* iActivityManagerScreensaverShort; |
314 |
305 |
315 /** |
306 /** |
316 * moved from view class |
307 * moved from view class |
317 */ |
308 */ |
318 TScreensaverColorModel iColorModel; |
309 TScreensaverColorModel iColorModel; |
339 * |
330 * |
340 * Owned. |
331 * Owned. |
341 */ |
332 */ |
342 CPeriodic* iExpiryTimer; |
333 CPeriodic* iExpiryTimer; |
343 |
334 |
344 /** |
|
345 * Timer to ignore activity events after keylock activated. |
|
346 */ |
|
347 CPeriodic* iIgnoreActivityResetTimer; |
|
348 |
|
349 }; |
335 }; |
350 |
336 |
351 |
337 |
352 |
338 |
353 #endif // C_SCREENSAVERENGINE_H |
339 #endif // C_SCREENSAVERENGINE_H |