-rw-r--r-- | core/launcher/screensaver.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/core/launcher/screensaver.h b/core/launcher/screensaver.h new file mode 100644 index 0000000..9126f33 --- a/dev/null +++ b/core/launcher/screensaver.h | |||
@@ -0,0 +1,61 @@ | |||
1 | #ifndef __LAUNCHER_SCREENSAVER_H__ | ||
2 | #define __LAUNCHER_SCREENSAVER_H__ | ||
3 | |||
4 | #include <qwindowsystem_qws.h> | ||
5 | #include <qobject.h> | ||
6 | |||
7 | #include <qpe/power.h> | ||
8 | |||
9 | class OpieScreenSaver : public QObject, public QWSScreenSaver | ||
10 | { | ||
11 | public: | ||
12 | OpieScreenSaver ( ); | ||
13 | |||
14 | void restore ( ); | ||
15 | bool save ( int level ); | ||
16 | |||
17 | void setIntervals( int i1, int i2, int i3 ); | ||
18 | void setIntervalsAC( int i1, int i2, int i3 ); | ||
19 | |||
20 | void setInterval ( int interval ); | ||
21 | |||
22 | void setMode ( int mode ); | ||
23 | |||
24 | void setBacklight ( int bright ); | ||
25 | void setDisplayState ( bool on ); | ||
26 | |||
27 | void powerStatusChanged ( PowerStatus ps ); | ||
28 | |||
29 | private: | ||
30 | void setBacklightInternal ( int bright ); | ||
31 | |||
32 | protected: | ||
33 | virtual void timerEvent ( QTimerEvent * ); | ||
34 | |||
35 | private: | ||
36 | int m_disable_suspend; | ||
37 | bool m_enable_dim; | ||
38 | bool m_enable_lightoff; | ||
39 | bool m_enable_suspend; | ||
40 | bool m_onlylcdoff; | ||
41 | |||
42 | bool m_enable_dim_ac; | ||
43 | bool m_enable_lightoff_ac; | ||
44 | bool m_enable_suspend_ac; | ||
45 | bool m_onlylcdoff_ac; | ||
46 | |||
47 | bool m_use_light_sensor; | ||
48 | int m_backlight_sensor; | ||
49 | |||
50 | bool m_lcd_status; | ||
51 | |||
52 | int m_backlight_normal; | ||
53 | int m_backlight_current; | ||
54 | bool m_backlight_forcedoff; | ||
55 | |||
56 | bool m_on_ac; | ||
57 | |||
58 | int m_level; | ||
59 | }; | ||
60 | |||
61 | #endif | ||