author | harlekin <harlekin> | 2002-10-22 21:41:42 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-22 21:41:42 (UTC) |
commit | e4297ff151693e07313ea036de91ad3c788c5e26 (patch) (unidiff) | |
tree | 564bf451b6e6319944e3e793631f93d879031c74 /core/launcher/desktop.h | |
parent | 4381aaf653750f4a51a816ff419be70059b2857d (diff) | |
download | opie-e4297ff151693e07313ea036de91ad3c788c5e26.zip opie-e4297ff151693e07313ea036de91ad3c788c5e26.tar.gz opie-e4297ff151693e07313ea036de91ad3c788c5e26.tar.bz2 |
launcher side of the support for new light and power settings
-rw-r--r-- | core/launcher/desktop.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/core/launcher/desktop.h b/core/launcher/desktop.h index 04c2f61..15d8ef7 100644 --- a/core/launcher/desktop.h +++ b/core/launcher/desktop.h | |||
@@ -71,29 +71,34 @@ protected: | |||
71 | void shutdown(); | 71 | void shutdown(); |
72 | void restart(); | 72 | void restart(); |
73 | 73 | ||
74 | public slots: | 74 | public slots: |
75 | virtual void desktopMessage ( const QCString &msg, const QByteArray &data ); | 75 | virtual void desktopMessage ( const QCString &msg, const QByteArray &data ); |
76 | virtual void systemMessage ( const QCString &msg, const QByteArray &data ); | 76 | virtual void systemMessage ( const QCString &msg, const QByteArray &data ); |
77 | 77 | ||
78 | protected slots: | 78 | protected slots: |
79 | void shutdown( ShutdownImpl::Type ); | 79 | void shutdown( ShutdownImpl::Type ); |
80 | void psTimeout(); | 80 | void psTimeout(); |
81 | void sendCard(); | 81 | void sendCard(); |
82 | private: | 82 | private: |
83 | DesktopPowerAlerter *pa; | 83 | void reloadPowerWarnSettings(); |
84 | PowerStatus *ps; | 84 | DesktopPowerAlerter *pa; |
85 | QTimer *cardSendTimer; | 85 | PowerStatus *ps; |
86 | QCopChannel *channel; | 86 | QTimer *cardSendTimer; |
87 | QPEScreenSaver *m_screensaver; | 87 | QCopChannel *channel; |
88 | QPEScreenSaver *m_screensaver; | ||
89 | QTimer * m_timer; | ||
90 | int m_powerVeryLow; | ||
91 | int m_powerCritical; | ||
92 | |||
88 | }; | 93 | }; |
89 | 94 | ||
90 | 95 | ||
91 | class Desktop : public QWidget | 96 | class Desktop : public QWidget |
92 | { | 97 | { |
93 | Q_OBJECT | 98 | Q_OBJECT |
94 | public: | 99 | public: |
95 | Desktop(); | 100 | Desktop(); |
96 | ~Desktop(); | 101 | ~Desktop(); |
97 | 102 | ||
98 | static bool screenLocked(); | 103 | static bool screenLocked(); |
99 | 104 | ||