|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Defines screensaver utility tools. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_SCREENSAVERUTILITY_H |
|
21 #define C_SCREENSAVERUTILITY_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * The uitility class of screensaver |
|
30 */ |
|
31 class ScreensaverUtility |
|
32 { |
|
33 public: |
|
34 |
|
35 /** |
|
36 * Panic |
|
37 */ |
|
38 static void Panic( TInt aPanic ); |
|
39 |
|
40 /** |
|
41 * Flushes the draw buffer (before activating power save) |
|
42 */ |
|
43 static void FlushDrawBuffer(); |
|
44 |
|
45 /** |
|
46 * Checks whether screen has been rotated |
|
47 */ |
|
48 static TBool ScreenRotated(); |
|
49 |
|
50 /** |
|
51 * Query whether 12-hour clock is displayed |
|
52 */ |
|
53 static TBool Query12HourClock(); |
|
54 |
|
55 /** |
|
56 * Brings the application to foreground |
|
57 */ |
|
58 static void BringToForeground(); |
|
59 |
|
60 /** |
|
61 * Sends the application to background |
|
62 */ |
|
63 static void SendToBackground(); |
|
64 |
|
65 /** |
|
66 * Drive info helpers |
|
67 */ |
|
68 static TBool IsDrivePresent(TInt aDrive); |
|
69 |
|
70 /** |
|
71 * Loads the bitmap |
|
72 */ |
|
73 static CGulIcon* LoadBitmapL(); |
|
74 |
|
75 /** |
|
76 * Stop the server heartbeat |
|
77 */ |
|
78 static void StopWServHeartBeat(); |
|
79 }; |
|
80 |
|
81 #endif // C_SCREENSAVERUTILITY_H |