author | sandman <sandman> | 2002-09-06 19:31:52 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-09-06 19:31:52 (UTC) |
commit | c9f7e21a3897b4a02c6eb460286eacbfafbba06f (patch) (unidiff) | |
tree | 9fa814c402f35184f029cf4de3e0b69e5c58c958 | |
parent | 088a233d52f2b06b6f478e73776eb2b430b2a1a5 (diff) | |
download | opie-c9f7e21a3897b4a02c6eb460286eacbfafbba06f.zip opie-c9f7e21a3897b4a02c6eb460286eacbfafbba06f.tar.gz opie-c9f7e21a3897b4a02c6eb460286eacbfafbba06f.tar.bz2 |
Last part of the LCD control changes:
- Added the screen-saver part of libqpe to the DesktopApplication object
- Cleaned up the remaining mess
- reformated with astyle
-rw-r--r-- | core/launcher/desktop.cpp | 332 | ||||
-rw-r--r-- | core/launcher/desktop.h | 13 |
2 files changed, 287 insertions, 58 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp index dee5535..a19e4c6 100644 --- a/core/launcher/desktop.cpp +++ b/core/launcher/desktop.cpp | |||
@@ -39,2 +39,3 @@ | |||
39 | #include <qpe/qcopenvelope_qws.h> | 39 | #include <qpe/qcopenvelope_qws.h> |
40 | #include <qpe/network.h> | ||
40 | #include <qpe/global.h> | 41 | #include <qpe/global.h> |
@@ -57,2 +58,3 @@ | |||
57 | #include <unistd.h> | 58 | #include <unistd.h> |
59 | #include <fcntl.h> | ||
58 | 60 | ||
@@ -61,9 +63,20 @@ class QCopKeyRegister | |||
61 | public: | 63 | public: |
62 | QCopKeyRegister() : keyCode(0) { } | 64 | QCopKeyRegister() : keyCode( 0 ) |
65 | { } | ||
63 | QCopKeyRegister(int k, const QString &c, const QString &m) | 66 | QCopKeyRegister(int k, const QString &c, const QString &m) |
64 | : keyCode(k), channel(c), message(m) { } | 67 | : keyCode( k ), channel( c ), message( m ) |
68 | { } | ||
65 | 69 | ||
66 | int getKeyCode() const { return keyCode; } | 70 | int getKeyCode() const |
67 | QString getChannel() const { return channel; } | 71 | { |
68 | QString getMessage() const { return message; } | 72 | return keyCode; |
73 | } | ||
74 | QString getChannel() const | ||
75 | { | ||
76 | return channel; | ||
77 | } | ||
78 | QString getMessage() const | ||
79 | { | ||
80 | return message; | ||
81 | } | ||
69 | 82 | ||
@@ -140,2 +153,175 @@ void DesktopPowerAlerter::hideEvent( QHideEvent *e ) | |||
140 | 153 | ||
154 | class QPEScreenSaver : public QWSScreenSaver | ||
155 | { | ||
156 | private: | ||
157 | int LcdOn; | ||
158 | |||
159 | public: | ||
160 | QPEScreenSaver() | ||
161 | { | ||
162 | m_disable_suspend = 100; | ||
163 | m_enable_dim = false; | ||
164 | m_enable_lightoff = false; | ||
165 | m_enable_onlylcdoff = false; | ||
166 | |||
167 | m_lcd_status = true; | ||
168 | |||
169 | m_backlight_bright = -1; | ||
170 | m_backlight_forcedoff = false; | ||
171 | |||
172 | // Make sure the LCD is in fact on, (if opie was killed while the LCD is off it would still be off) | ||
173 | ODevice::inst ( ) -> setDisplayStatus ( true ); | ||
174 | } | ||
175 | void restore() | ||
176 | { | ||
177 | if ( !m_lcd_status ) // We must have turned it off | ||
178 | ODevice::inst ( ) -> setDisplayStatus ( true ); | ||
179 | |||
180 | setBacklight ( -1 ); | ||
181 | } | ||
182 | bool save( int level ) | ||
183 | { | ||
184 | switch ( level ) { | ||
185 | case 0: | ||
186 | if ( m_disable_suspend > 0 && m_enable_dim ) { | ||
187 | if ( backlight() > 1 ) | ||
188 | setBacklight( 1 ); // lowest non-off | ||
189 | } | ||
190 | return true; | ||
191 | break; | ||
192 | case 1: | ||
193 | if ( m_disable_suspend > 1 && m_enable_lightoff ) { | ||
194 | setBacklight( 0 ); // off | ||
195 | } | ||
196 | return true; | ||
197 | break; | ||
198 | case 2: | ||
199 | if ( m_enable_onlylcdoff ) { | ||
200 | ODevice::inst ( ) -> setDisplayStatus ( false ); | ||
201 | m_lcd_status = false; | ||
202 | return true; | ||
203 | } | ||
204 | else // We're going to suspend the whole machine | ||
205 | { | ||
206 | if ( ( m_disable_suspend > 2 ) && | ||
207 | ( PowerStatusManager::readStatus().acStatus() != PowerStatus::Online ) && | ||
208 | ( !Network::networkOnline ( ) ) ) { | ||
209 | QWSServer::sendKeyEvent( 0xffff, Qt::Key_F34, FALSE, TRUE, FALSE ); | ||
210 | return true; | ||
211 | } | ||
212 | } | ||
213 | break; | ||
214 | } | ||
215 | return false; | ||
216 | } | ||
217 | |||
218 | private: | ||
219 | static int ssi( int interval, Config & config, const QString & enable, const QString & value, int def ) | ||
220 | { | ||
221 | if ( !enable.isEmpty() && config.readNumEntry( enable, 0 ) == 0 ) | ||
222 | return 0; | ||
223 | |||
224 | if ( interval < 0 ) { | ||
225 | // Restore screen blanking and power saving state | ||
226 | interval = config.readNumEntry( value, def ); | ||
227 | } | ||
228 | return interval; | ||
229 | } | ||
230 | |||
231 | public: | ||
232 | void setIntervals( int i1, int i2, int i3 ) | ||
233 | { | ||
234 | Config config( "qpe" ); | ||
235 | config.setGroup( "Screensaver" ); | ||
236 | |||
237 | int v[ 4 ]; | ||
238 | i1 = ssi( i1, config, "Dim", "Interval_Dim", 30 ); | ||
239 | i2 = ssi( i2, config, "LightOff", "Interval_LightOff", 20 ); | ||
240 | i3 = ssi( i3, config, "", "Interval", 60 ); | ||
241 | |||
242 | //qDebug("screen saver intervals: %d %d %d", i1, i2, i3); | ||
243 | |||
244 | v [ 0 ] = QMAX( 1000 * i1, 100 ); | ||
245 | v [ 1 ] = QMAX( 1000 * i2, 100 ); | ||
246 | v [ 2 ] = QMAX( 1000 * i3, 100 ); | ||
247 | v [ 3 ] = 0; | ||
248 | m_enable_dim = ( ( i1 != 0 ) ? config. readNumEntry ( "Dim", 1 ) : false ); | ||
249 | m_enable_lightoff = ( ( i2 != 0 ) ? config. readNumEntry ( "LightOff", 1 ) : false ); | ||
250 | m_enable_onlylcdoff = config. readNumEntry ( "LcdOffOnly", 0 ); | ||
251 | |||
252 | if ( !i1 && !i2 && !i3 ) | ||
253 | QWSServer::setScreenSaverInterval( 0 ); | ||
254 | else | ||
255 | QWSServer::setScreenSaverIntervals( v ); | ||
256 | } | ||
257 | |||
258 | void setInterval ( int interval ) | ||
259 | { | ||
260 | setIntervals ( -1, -1, interval ); | ||
261 | } | ||
262 | |||
263 | void setMode ( int mode ) | ||
264 | { | ||
265 | if ( mode > m_disable_suspend ) | ||
266 | setInterval( -1 ); | ||
267 | m_disable_suspend = mode; | ||
268 | } | ||
269 | |||
270 | int backlight ( ) | ||
271 | { | ||
272 | if ( m_backlight_bright == -1 ) { | ||
273 | // Read from config | ||
274 | Config config ( "qpe" ); | ||
275 | config. setGroup ( "Screensaver" ); | ||
276 | m_backlight_bright = config. readNumEntry ( "Brightness", 255 ); | ||
277 | } | ||
278 | return m_backlight_bright; | ||
279 | } | ||
280 | |||
281 | void setBacklight ( int bright ) | ||
282 | { | ||
283 | if ( bright == -3 ) { | ||
284 | // Forced on | ||
285 | m_backlight_forcedoff = false; | ||
286 | bright = -1; | ||
287 | } | ||
288 | if ( m_backlight_forcedoff && bright != -2 ) | ||
289 | return ; | ||
290 | if ( bright == -2 ) { | ||
291 | // Toggle between off and on | ||
292 | bright = m_backlight_bright ? 0 : -1; | ||
293 | m_backlight_forcedoff = !bright; | ||
294 | } | ||
295 | |||
296 | m_backlight_bright = bright; | ||
297 | |||
298 | bright = backlight ( ); | ||
299 | ODevice::inst ( ) -> setDisplayBrightness ( bright ); | ||
300 | |||
301 | m_backlight_bright = bright; | ||
302 | } | ||
303 | |||
304 | private: | ||
305 | int m_disable_suspend; | ||
306 | bool m_enable_dim; | ||
307 | bool m_enable_lightoff; | ||
308 | bool m_enable_onlylcdoff; | ||
309 | |||
310 | bool m_lcd_status; | ||
311 | |||
312 | int m_backlight_bright; | ||
313 | bool m_backlight_forcedoff; | ||
314 | }; | ||
315 | |||
316 | |||
317 | void DesktopApplication::switchLCD ( bool on ) | ||
318 | { | ||
319 | if ( qApp ) { | ||
320 | DesktopApplication *dapp = (DesktopApplication *) qApp; | ||
321 | |||
322 | if ( dapp-> m_screensaver ) | ||
323 | dapp-> m_screensaver-> setBacklight ( on ? -3 : -1 ); | ||
324 | } | ||
325 | } | ||
326 | |||
141 | 327 | ||
@@ -153,3 +339,12 @@ DesktopApplication::DesktopApplication( int& argc, char **argv, Type appType ) | |||
153 | connect( channel, SIGNAL(received(const QCString&, const QByteArray&)), | 339 | connect( channel, SIGNAL(received(const QCString&, const QByteArray&)), |
154 | this, SLOT(receive(const QCString&, const QByteArray&)) ); | 340 | this, SLOT( desktopMessage( const QCString&, const QByteArray& ) ) ); |
341 | |||
342 | channel = new QCopChannel( "QPE/System", this ); | ||
343 | connect( channel, SIGNAL( received( const QCString&, const QByteArray& ) ), | ||
344 | this, SLOT( systemMessage( const QCString&, const QByteArray& ) ) ); | ||
345 | |||
346 | m_screensaver = new QPEScreenSaver; | ||
347 | |||
348 | m_screensaver-> setInterval ( -1 ); | ||
349 | QWSServer::setScreenSaver( m_screensaver ); | ||
155 | } | 350 | } |
@@ -163,7 +358,7 @@ DesktopApplication::~DesktopApplication() | |||
163 | 358 | ||
164 | void DesktopApplication::receive( const QCString &msg, const QByteArray &data ) | 359 | void DesktopApplication::desktopMessage( const QCString &msg, const QByteArray &data ) |
165 | { | 360 | { |
361 | #ifdef Q_WS_QWS | ||
166 | QDataStream stream( data, IO_ReadOnly ); | 362 | QDataStream stream( data, IO_ReadOnly ); |
167 | if (msg == "keyRegister(int key, QString channel, QString message)") | 363 | if ( msg == "keyRegister(int key, QString channel, QString message)" ) { |
168 | { | ||
169 | int k; | 364 | int k; |
@@ -180,3 +375,32 @@ void DesktopApplication::receive( const QCString &msg, const QByteArray &data ) | |||
180 | } | 375 | } |
376 | #endif | ||
377 | } | ||
378 | |||
181 | 379 | ||
380 | void DesktopApplication::systemMessage( const QCString & msg, const QByteArray & data ) | ||
381 | { | ||
382 | #ifdef Q_WS_QWS | ||
383 | QDataStream stream ( data, IO_ReadOnly ); | ||
384 | |||
385 | if ( msg == "setScreenSaverInterval(int)" ) { | ||
386 | int time; | ||
387 | stream >> time; | ||
388 | m_screensaver-> setInterval( time ); | ||
389 | } | ||
390 | else if ( msg == "setScreenSaverIntervals(int,int,int)" ) { | ||
391 | int t1, t2, t3; | ||
392 | stream >> t1 >> t2 >> t3; | ||
393 | m_screensaver-> setIntervals( t1, t2, t3 ); | ||
394 | } | ||
395 | else if ( msg == "setBacklight(int)" ) { | ||
396 | int bright; | ||
397 | stream >> bright; | ||
398 | m_screensaver-> setBacklight( bright ); | ||
399 | } | ||
400 | else if ( msg == "setScreenSaverMode(int)" ) { | ||
401 | int mode; | ||
402 | stream >> mode; | ||
403 | m_screensaver-> setMode ( mode ); | ||
404 | } | ||
405 | #endif | ||
182 | } | 406 | } |
@@ -207,3 +431,6 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e ) | |||
207 | if ((*it).getKeyCode() == ke->simpleData.keycode && !autoRepeat && !keyboardGrabbed() && press) { | 431 | if ((*it).getKeyCode() == ke->simpleData.keycode && !autoRepeat && !keyboardGrabbed() && press) { |
208 | if(press) qDebug("press"); else qDebug("release"); | 432 | if ( press ) |
433 | qDebug( "press" ); | ||
434 | else | ||
435 | qDebug( "release" ); | ||
209 | QCopEnvelope((*it).getChannel().utf8(), (*it).getMessage().utf8()); | 436 | QCopEnvelope((*it).getChannel().utf8(), (*it).getMessage().utf8()); |
@@ -215,3 +442,4 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e ) | |||
215 | if ( ke->simpleData.keycode == Key_F9 ) { | 442 | if ( ke->simpleData.keycode == Key_F9 ) { |
216 | if ( press ) emit datebook(); | 443 | if ( press ) |
444 | emit datebook(); | ||
217 | return TRUE; | 445 | return TRUE; |
@@ -222,3 +450,4 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e ) | |||
222 | delete cardSendTimer; | 450 | delete cardSendTimer; |
223 | } else if ( press ) { | 451 | } |
452 | else if ( press ) { | ||
224 | cardSendTimer = new QTimer(); | 453 | cardSendTimer = new QTimer(); |
@@ -238,3 +467,4 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e ) | |||
238 | activePopupWidget()->close(); | 467 | activePopupWidget()->close(); |
239 | if ( press ) emit launch(); | 468 | if ( press ) |
469 | emit launch(); | ||
240 | return TRUE; | 470 | return TRUE; |
@@ -242,3 +472,4 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e ) | |||
242 | if ( ke->simpleData.keycode == Key_F13 ) { | 472 | if ( ke->simpleData.keycode == Key_F13 ) { |
243 | if ( press ) emit email(); | 473 | if ( press ) |
474 | emit email(); | ||
244 | return TRUE; | 475 | return TRUE; |
@@ -248,3 +479,4 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e ) | |||
248 | if ( ke->simpleData.keycode == Key_F34 ) { | 479 | if ( ke->simpleData.keycode == Key_F34 ) { |
249 | if ( press ) emit power(); | 480 | if ( press ) |
481 | emit power(); | ||
250 | return TRUE; | 482 | return TRUE; |
@@ -259,3 +491,4 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e ) | |||
259 | if ( ke->simpleData.keycode == Key_F35 ) { | 491 | if ( ke->simpleData.keycode == Key_F35 ) { |
260 | if ( press ) emit backlight(); | 492 | if ( press ) |
493 | emit backlight(); | ||
261 | return TRUE; | 494 | return TRUE; |
@@ -263,3 +496,4 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e ) | |||
263 | if ( ke->simpleData.keycode == Key_F32 ) { | 496 | if ( ke->simpleData.keycode == Key_F32 ) { |
264 | if ( press ) QCopEnvelope e( "QPE/Desktop", "startSync()" ); | 497 | if ( press ) |
498 | QCopEnvelope e( "QPE/Desktop", "startSync()" ); | ||
265 | return TRUE; | 499 | return TRUE; |
@@ -267,3 +501,4 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e ) | |||
267 | if ( ke->simpleData.keycode == Key_F31 && !ke->simpleData.modifiers ) { | 501 | if ( ke->simpleData.keycode == Key_F31 && !ke->simpleData.modifiers ) { |
268 | if ( press ) emit symbol(); | 502 | if ( press ) |
503 | emit symbol(); | ||
269 | return TRUE; | 504 | return TRUE; |
@@ -271,6 +506,8 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e ) | |||
271 | if ( ke->simpleData.keycode == Key_NumLock ) { | 506 | if ( ke->simpleData.keycode == Key_NumLock ) { |
272 | if ( press ) emit numLockStateToggle(); | 507 | if ( press ) |
508 | emit numLockStateToggle(); | ||
273 | } | 509 | } |
274 | if ( ke->simpleData.keycode == Key_CapsLock ) { | 510 | if ( ke->simpleData.keycode == Key_CapsLock ) { |
275 | if ( press ) emit capsLockStateToggle(); | 511 | if ( press ) |
512 | emit capsLockStateToggle(); | ||
276 | } | 513 | } |
@@ -278,3 +515,4 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e ) | |||
278 | qpedesktop->keyClick(); | 515 | qpedesktop->keyClick(); |
279 | } else { | 516 | } |
517 | else { | ||
280 | if ( e->type == QWSEvent::Mouse ) { | 518 | if ( e->type == QWSEvent::Mouse ) { |
@@ -287,3 +525,4 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e ) | |||
287 | } | 525 | } |
288 | } else { | 526 | } |
527 | else { | ||
289 | up = TRUE; | 528 | up = TRUE; |
@@ -368,2 +607,3 @@ Desktop::Desktop() : | |||
368 | #if defined(QPE_HAVE_MEMALERTER) | 607 | #if defined(QPE_HAVE_MEMALERTER) |
608 | |||
369 | initMemalerter(); | 609 | initMemalerter(); |
@@ -475,3 +715,4 @@ void Desktop::raiseLauncher() | |||
475 | launcher->raise(); | 715 | launcher->raise(); |
476 | } else { | 716 | } |
717 | else { | ||
477 | QCopEnvelope e("QPE/System","execute(QString)"); | 718 | QCopEnvelope e("QPE/System","execute(QString)"); |
@@ -493,3 +734,4 @@ void Desktop::executeOrModify(const QString& appLnkFile) | |||
493 | QCopChannel::send("QPE/Application/" + app, "raise()"); | 734 | QCopChannel::send("QPE/Application/" + app, "raise()"); |
494 | } else { | 735 | } |
736 | else { | ||
495 | lnk.execute(); | 737 | lnk.execute(); |
@@ -534,3 +776,4 @@ void Desktop::raiseMenu() | |||
534 | tb->startMenu()->launch(); | 776 | tb->startMenu()->launch(); |
535 | } else { | 777 | } |
778 | else { | ||
536 | QCopEnvelope e("QPE/System","execute(QString)"); | 779 | QCopEnvelope e("QPE/System","execute(QString)"); |
@@ -583,21 +826,2 @@ void Desktop::execAutoStart() | |||
583 | 826 | ||
584 | static bool blanked=FALSE; | ||
585 | |||
586 | static void blankScreen() | ||
587 | { | ||
588 | if ( !qt_screen ) return; | ||
589 | /* Should use a big black window instead. | ||
590 | QGfx* g = qt_screen->screenGfx(); | ||
591 | g->fillRect(0,0,qt_screen->width(),qt_screen->height()); | ||
592 | delete g; | ||
593 | */ | ||
594 | blanked = TRUE; | ||
595 | } | ||
596 | |||
597 | static void darkScreen() | ||
598 | { | ||
599 | extern void qpe_setBacklight(int); | ||
600 | qpe_setBacklight(0); // force off | ||
601 | } | ||
602 | |||
603 | 827 | ||
@@ -605,4 +829,2 @@ void Desktop::togglePower() | |||
605 | { | 829 | { |
606 | extern void qpe_setBacklight ( int ); // We need to toggle the LCD fast - no time to send a QCop | ||
607 | |||
608 | static bool excllock = false; | 830 | static bool excllock = false; |
@@ -618,9 +840,2 @@ void Desktop::togglePower() | |||
618 | 840 | ||
619 | // qpe_setBacklight ( 0 ); // force LCD off (sandman: why ????) | ||
620 | |||
621 | if ( wasloggedin ) | ||
622 | blankScreen(); | ||
623 | |||
624 | qDebug ( "OPIE suspending\n" ); | ||
625 | |||
626 | ODevice::inst ( )-> suspend ( ); | 841 | ODevice::inst ( )-> suspend ( ); |
@@ -628,4 +843,3 @@ void Desktop::togglePower() | |||
628 | QWSServer::screenSaverActivate ( false ); | 843 | QWSServer::screenSaverActivate ( false ); |
629 | 844 | DesktopApplication::switchLCD ( true ); // force LCD on without slow qcop call | |
630 | qpe_setBacklight ( -3 ); // force LCD on | ||
631 | 845 | ||
@@ -716,2 +930,3 @@ void DesktopApplication::restart() | |||
716 | #ifdef Q_WS_QWS | 930 | #ifdef Q_WS_QWS |
931 | |||
717 | for ( int fd = 3; fd < 100; fd++ ) | 932 | for ( int fd = 3; fd < 100; fd++ ) |
@@ -719,8 +934,12 @@ void DesktopApplication::restart() | |||
719 | #if defined(QT_DEMO_SINGLE_FLOPPY) | 934 | #if defined(QT_DEMO_SINGLE_FLOPPY) |
935 | |||
720 | execl( "/sbin/init", "qpe", 0 ); | 936 | execl( "/sbin/init", "qpe", 0 ); |
721 | #elif defined(QT_QWS_CASSIOPEIA) | 937 | #elif defined(QT_QWS_CASSIOPEIA) |
938 | |||
722 | execl( "/bin/sh", "sh", 0 ); | 939 | execl( "/bin/sh", "sh", 0 ); |
723 | #else | 940 | #else |
941 | |||
724 | execl( (qpeDir()+"/bin/qpe").latin1(), "qpe", 0 ); | 942 | execl( (qpeDir()+"/bin/qpe").latin1(), "qpe", 0 ); |
725 | #endif | 943 | #endif |
944 | |||
726 | exit(1); | 945 | exit(1); |
@@ -806,3 +1025,4 @@ bool Desktop::eventFilter( QObject *, QEvent *ev ) | |||
806 | return true; | 1025 | return true; |
807 | } else { | 1026 | } |
1027 | else { | ||
808 | raiseMenu ( ); | 1028 | raiseMenu ( ); |
diff --git a/core/launcher/desktop.h b/core/launcher/desktop.h index 9bc4be9..b9ff39f 100644 --- a/core/launcher/desktop.h +++ b/core/launcher/desktop.h | |||
@@ -39,2 +39,3 @@ class DesktopPowerAlerter; | |||
39 | class PackageSlave; | 39 | class PackageSlave; |
40 | class QPEScreenSaver; | ||
40 | 41 | ||
@@ -46,2 +47,5 @@ public: | |||
46 | ~DesktopApplication(); | 47 | ~DesktopApplication(); |
48 | |||
49 | static void switchLCD ( bool on ); // only for togglePower in Desktop | ||
50 | |||
47 | signals: | 51 | signals: |
@@ -61,4 +65,6 @@ protected: | |||
61 | #ifdef Q_WS_QWS | 65 | #ifdef Q_WS_QWS |
66 | |||
62 | bool qwsEventFilter( QWSEvent * ); | 67 | bool qwsEventFilter( QWSEvent * ); |
63 | #endif | 68 | #endif |
69 | |||
64 | void shutdown(); | 70 | void shutdown(); |
@@ -67,3 +73,4 @@ protected: | |||
67 | public slots: | 73 | public slots: |
68 | void receive( const QCString &msg, const QByteArray &data ); | 74 | virtual void desktopMessage ( const QCString &msg, const QByteArray &data ); |
75 | virtual void systemMessage ( const QCString &msg, const QByteArray &data ); | ||
69 | 76 | ||
@@ -78,2 +85,3 @@ private: | |||
78 | QCopChannel *channel; | 85 | QCopChannel *channel; |
86 | QPEScreenSaver *m_screensaver; | ||
79 | }; | 87 | }; |
@@ -81,3 +89,4 @@ private: | |||
81 | 89 | ||
82 | class Desktop : public QWidget { | 90 | class Desktop : public QWidget |
91 | { | ||
83 | Q_OBJECT | 92 | Q_OBJECT |