summaryrefslogtreecommitdiff
Side-by-side diff
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
@@ -346,8 +346,17 @@ void Wellenreiter::stopClicked()
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() );
}
@@ -473,8 +482,18 @@ void Wellenreiter::startClicked()
}
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
{