-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiter.cpp | 19 |
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 | |||
@@ -347,6 +347,15 @@ void Wellenreiter::stopClicked() | |||
347 | sniffing = false; | 347 | sniffing = false; |
348 | emit( stoppedSniffing() ); | 348 | emit( stoppedSniffing() ); |
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 |
351 | for( QMap<QString,int>::ConstIterator it = pcap->statistics().begin(); it != pcap->statistics().end(); ++it ) | 360 | for( QMap<QString,int>::ConstIterator it = pcap->statistics().begin(); it != pcap->statistics().end(); ++it ) |
352 | statwindow->updateCounter( it.key(), it.data() ); | 361 | statwindow->updateCounter( it.key(), it.data() ); |
@@ -474,6 +483,16 @@ void Wellenreiter::startClicked() | |||
474 | 483 | ||
475 | logwindow->log( "(i) Started Scanning." ); | 484 | logwindow->log( "(i) Started Scanning." ); |
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() ); |
478 | if ( cardtype != DEVTYPE_FILE ) channelHopped( 6 ); // set title | 497 | if ( cardtype != DEVTYPE_FILE ) channelHopped( 6 ); // set title |
479 | else | 498 | else |