summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2003-09-26 10:59:31 (UTC)
committer mickeyl <mickeyl>2003-09-26 10:59:31 (UTC)
commita88328daa117bdb3bd72cef6ca6e5e2b9d619a13 (patch) (unidiff)
tree1886fdd9685afd6b5828c78df3255eb3b999142f
parent0009e5f8bfb3050a7906bf03ce7b9870275496e6 (diff)
downloadopie-a88328daa117bdb3bd72cef6ca6e5e2b9d619a13.zip
opie-a88328daa117bdb3bd72cef6ca6e5e2b9d619a13.tar.gz
opie-a88328daa117bdb3bd72cef6ca6e5e2b9d619a13.tar.bz2
disable screensaver if checked in config
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiter.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp
index 5dc2e79..14f251a 100644
--- a/noncore/net/wellenreiter/gui/wellenreiter.cpp
+++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp
@@ -349,2 +349,11 @@ void Wellenreiter::stopClicked()
349 349
350 #ifdef QWS
351 if ( WellenreiterConfigWindow::instance()->disablePM->isChecked() )
352 {
353 QCopEnvelope( "QPE/System", "setScreenSaverMode(int)" ) << QPEApplication::Enable;
354 }
355 #else
356 #warning FIXME: setScreenSaverMode is not operational on the X11 build
357 #endif
358
350 // print out statistics 359 // print out statistics
@@ -476,2 +485,12 @@ void Wellenreiter::startClicked()
476 sniffing = true; 485 sniffing = true;
486
487 #ifdef QWS
488 if ( WellenreiterConfigWindow::instance()->disablePM->isChecked() )
489 {
490 QCopEnvelope( "QPE/System", "setScreenSaverMode(int)" ) << QPEApplication::Disable;
491 }
492 #else
493 #warning FIXME: setScreenSaverMode is not operational on the X11 build
494 #endif
495
477 emit( startedSniffing() ); 496 emit( startedSniffing() );