-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 @@ #include <opie2/odebug.h> +#ifdef Q_WS_QWS +#include <qpe/qcopenvelope_qws.h> +#endif + using namespace Opie::Core; @@ -690,2 +694,10 @@ BlueBase::~BlueBase() writeSavedDevices(); + if (forwarder) { +#if defined(Q_WS_QWS) && !defined(QT_NO_COP) + QCopEnvelope("QPE/System", "setScreenSaverMode(int)" ) + << QPEApplication::Enable; +#endif + delete forwarder; + forwarder = NULL; + } delete m_iconLoader; @@ -740,2 +752,6 @@ void BlueBase::doForward() runButton->setText("stop gateway"); +#if defined(Q_WS_QWS) && !defined(QT_NO_COP) + QCopEnvelope("QPE/System", "setScreenSaverMode(int)") + << QPEApplication::DisableSuspend; +#endif } @@ -747,2 +763,6 @@ void BlueBase::forwardExit(Opie::Core::OProcess* proc) { +#if defined(Q_WS_QWS) && !defined(QT_NO_COP) + QCopEnvelope("QPE/System", "setScreenSaverMode(int)" ) + << QPEApplication::Enable; +#endif if (proc->exitStatus() != 0) |