author | sandman <sandman> | 2002-10-13 16:12:08 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-10-13 16:12:08 (UTC) |
commit | 467451d6d19a2cf5245afa2d219b7d2b1cd008f5 (patch) (unidiff) | |
tree | 8c59b58615a817377c0ae1db10a4093387fdaa77 | |
parent | 92aabc976e4a8e58d7db0bba42cb8d0f3ebe8982 (diff) | |
download | opie-467451d6d19a2cf5245afa2d219b7d2b1cd008f5.zip opie-467451d6d19a2cf5245afa2d219b7d2b1cd008f5.tar.gz opie-467451d6d19a2cf5245afa2d219b7d2b1cd008f5.tar.bz2 |
- added qcop "QPE/System" "setDisplayState(int)" to toggle the LCD on/off
- removed qcop "QPE/Desktop" "home()" -- this is now handled via
qcop "QPE/Application/qpe" "raise()"
- renamed qcop "QPE/Desktop" "suspend()" to qcop "QPE/System" "suspend()"
-rw-r--r-- | core/launcher/desktop.cpp | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp index 6ee7132..0e60839 100644 --- a/core/launcher/desktop.cpp +++ b/core/launcher/desktop.cpp | |||
@@ -178,4 +178,6 @@ public: | |||
178 | { | 178 | { |
179 | if ( !m_lcd_status ) // We must have turned it off | 179 | if ( !m_lcd_status ) { // We must have turned it off |
180 | ODevice::inst ( ) -> setDisplayStatus ( true ); | 180 | ODevice::inst ( ) -> setDisplayStatus ( true ); |
181 | m_lcd_status = true; | ||
182 | } | ||
181 | 183 | ||
@@ -305,2 +307,10 @@ public: | |||
305 | 307 | ||
308 | void setDisplayState ( bool on ) | ||
309 | { | ||
310 | if ( m_lcd_status != on ) { | ||
311 | ODevice::inst ( ) -> setDisplayStatus ( on ); | ||
312 | m_lcd_status = on; | ||
313 | } | ||
314 | } | ||
315 | |||
306 | private: | 316 | private: |
@@ -379,8 +389,2 @@ void DesktopApplication::desktopMessage( const QCString &msg, const QByteArray & | |||
379 | } | 389 | } |
380 | else if ( msg == "suspend()" ) { | ||
381 | emit power(); | ||
382 | } | ||
383 | else if ( msg == "home()" ) { | ||
384 | qpedesktop-> home ( ); | ||
385 | } | ||
386 | #endif | 390 | #endif |
@@ -414,2 +418,10 @@ void DesktopApplication::systemMessage( const QCString & msg, const QByteArray & | |||
414 | } | 418 | } |
419 | else if ( msg == "setDisplayState(int)" ) { | ||
420 | int state; | ||
421 | stream >> state; | ||
422 | m_screensaver-> setDisplayState ( state != 0 ); | ||
423 | } | ||
424 | else if ( msg == "suspend()" ) { | ||
425 | emit power(); | ||
426 | } | ||
415 | #endif | 427 | #endif |
@@ -630,2 +642,4 @@ Desktop::Desktop() : | |||
630 | qApp->installEventFilter( this ); | 642 | qApp->installEventFilter( this ); |
643 | |||
644 | qApp-> setMainWidget ( launcher ); | ||
631 | } | 645 | } |