equal
deleted
inserted
replaced
28 #include "screensaverplugin.h" |
28 #include "screensaverplugin.h" |
29 |
29 |
30 //delay before wserv timer is turned off |
30 //delay before wserv timer is turned off |
31 #define KWSERVHEARTBEATTIMEOUT 15 |
31 #define KWSERVHEARTBEATTIMEOUT 15 |
32 |
32 |
|
33 // Delay after screensaver is stopped and hided. |
|
34 const TInt KDefaultScreenSaverTimeout = 2 * 60 * 1000000; // 2 mins |
|
35 |
33 // FORWARD DECLARATIONS |
36 // FORWARD DECLARATIONS |
34 class CUserActivityManager; |
37 class CUserActivityManager; |
35 class CScreensaverSharedDataI; |
38 class CScreensaverSharedDataI; |
36 class CScreensaverSharedDataMonitor; |
39 class CScreensaverSharedDataMonitor; |
37 class CScreensaverAppUi; |
40 class CScreensaverAppUi; |
124 |
127 |
125 /** |
128 /** |
126 * Updates the indicator attributes. |
129 * Updates the indicator attributes. |
127 */ |
130 */ |
128 void UpdateIndicatorAttributes( ); |
131 void UpdateIndicatorAttributes( ); |
|
132 |
|
133 /* |
|
134 * Start screensaver expiry timer. When the timer expires the screensaver |
|
135 * will be stopped and hided. |
|
136 * |
|
137 * @param aTimeout Timeout after the screensaver stops and hides itself in |
|
138 * microseconds. 0 or negative value will disable the timer. |
|
139 */ |
|
140 void SetExpiryTimerTimeout( TInt aTimeout ); |
|
141 |
|
142 |
|
143 /** |
|
144 * Informs the engine about changes in keyguard state |
|
145 * @param aEnabled whether the keyguard is now on or off |
|
146 */ |
|
147 void HandleKeyguardStateChanged( TBool aEnabled ); |
129 |
148 |
130 private: |
149 private: |
131 |
150 |
132 /** |
151 /** |
133 * C++ default constructor |
152 * C++ default constructor |
225 /** |
244 /** |
226 * Returns the display flag. |
245 * Returns the display flag. |
227 */ |
246 */ |
228 TInt DisplayFlag(); |
247 TInt DisplayFlag(); |
229 |
248 |
|
249 /** |
|
250 * Callback fuction. Called when the screensaver expiry timer time out. |
|
251 */ |
|
252 static TInt HandleExpiryTimerExpiry( TAny* aPtr ); |
230 |
253 |
231 private: |
254 private: |
232 |
255 |
233 /** |
256 /** |
234 * The flag if append alert type indicator |
257 * The flag if append alert type indicator |
293 |
316 |
294 /** |
317 /** |
295 * used to intercept and capture application key event. |
318 * used to intercept and capture application key event. |
296 */ |
319 */ |
297 RAknUiServer iAknUiServer; |
320 RAknUiServer iAknUiServer; |
|
321 |
|
322 /** |
|
323 * The screensaver expiry timer. Screensaver will be stoped when this timer |
|
324 * expires. |
|
325 * |
|
326 * Owned. |
|
327 */ |
|
328 CPeriodic* iExpiryTimer; |
|
329 |
298 }; |
330 }; |
299 |
331 |
300 |
332 |
301 |
333 |
302 #endif // C_SCREENSAVERENGINE_H |
334 #endif // C_SCREENSAVERENGINE_H |