-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 @@ -342,16 +342,25 @@ void Wellenreiter::stopClicked() // message the user QMessageBox::information( this, "Wellenreiter II", tr( "Your wireless card\nshould now be usable again." ) ); sniffing = false; emit( stoppedSniffing() ); + #ifdef QWS + if ( WellenreiterConfigWindow::instance()->disablePM->isChecked() ) + { + QCopEnvelope( "QPE/System", "setScreenSaverMode(int)" ) << QPEApplication::Enable; + } + #else + #warning FIXME: setScreenSaverMode is not operational on the X11 build + #endif + // print out statistics for( QMap<QString,int>::ConstIterator it = pcap->statistics().begin(); it != pcap->statistics().end(); ++it ) statwindow->updateCounter( it.key(), it.data() ); } void Wellenreiter::startClicked() { @@ -469,16 +478,26 @@ void Wellenreiter::startClicked() else { // start timer for reading packets startTimer( 100 ); } logwindow->log( "(i) Started Scanning." ); sniffing = true; + + #ifdef QWS + if ( WellenreiterConfigWindow::instance()->disablePM->isChecked() ) + { + QCopEnvelope( "QPE/System", "setScreenSaverMode(int)" ) << QPEApplication::Disable; + } + #else + #warning FIXME: setScreenSaverMode is not operational on the X11 build + #endif + emit( startedSniffing() ); if ( cardtype != DEVTYPE_FILE ) channelHopped( 6 ); // set title else { assert( parent() ); ( (QMainWindow*) parent() )->setCaption( tr( "Wellenreiter II - replaying capture file..." ) ); } } |