author | korovkin <korovkin> | 2006-04-29 16:53:24 (UTC) |
---|---|---|
committer | korovkin <korovkin> | 2006-04-29 16:53:24 (UTC) |
commit | b91d3399fbd3178085e9d0fc5faeefbe31c674b7 (patch) (unidiff) | |
tree | 979c7b2c1af8bd31230d3c75b0d40e013a1ea75f /noncore/net | |
parent | 17191b7ae7929568b9ed87a427e2eaeb28377a00 (diff) | |
download | opie-b91d3399fbd3178085e9d0fc5faeefbe31c674b7.zip opie-b91d3399fbd3178085e9d0fc5faeefbe31c674b7.tar.gz opie-b91d3399fbd3178085e9d0fc5faeefbe31c674b7.tar.bz2 |
Disable screensaver when running BT gateway.
-rw-r--r-- | noncore/net/opietooth/manager/bluebase.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp index 13954c5..58f97fa 100644 --- a/noncore/net/opietooth/manager/bluebase.cpp +++ b/noncore/net/opietooth/manager/bluebase.cpp | |||
@@ -34,2 +34,6 @@ | |||
34 | #include <opie2/odebug.h> | 34 | #include <opie2/odebug.h> |
35 | #ifdef Q_WS_QWS | ||
36 | #include <qpe/qcopenvelope_qws.h> | ||
37 | #endif | ||
38 | |||
35 | using namespace Opie::Core; | 39 | using namespace Opie::Core; |
@@ -690,2 +694,10 @@ BlueBase::~BlueBase() | |||
690 | writeSavedDevices(); | 694 | writeSavedDevices(); |
695 | if (forwarder) { | ||
696 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) | ||
697 | QCopEnvelope("QPE/System", "setScreenSaverMode(int)" ) | ||
698 | << QPEApplication::Enable; | ||
699 | #endif | ||
700 | delete forwarder; | ||
701 | forwarder = NULL; | ||
702 | } | ||
691 | delete m_iconLoader; | 703 | delete m_iconLoader; |
@@ -740,2 +752,6 @@ void BlueBase::doForward() | |||
740 | runButton->setText("stop gateway"); | 752 | runButton->setText("stop gateway"); |
753 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) | ||
754 | QCopEnvelope("QPE/System", "setScreenSaverMode(int)") | ||
755 | << QPEApplication::DisableSuspend; | ||
756 | #endif | ||
741 | } | 757 | } |
@@ -747,2 +763,6 @@ void BlueBase::forwardExit(Opie::Core::OProcess* proc) | |||
747 | { | 763 | { |
764 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) | ||
765 | QCopEnvelope("QPE/System", "setScreenSaverMode(int)" ) | ||
766 | << QPEApplication::Enable; | ||
767 | #endif | ||
748 | if (proc->exitStatus() != 0) | 768 | if (proc->exitStatus() != 0) |