-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 | |||
@@ -32,6 +32,10 @@ | |||
32 | #include <qpe/resource.h> | 32 | #include <qpe/resource.h> |
33 | #include <qpe/config.h> | 33 | #include <qpe/config.h> |
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; |
36 | 40 | ||
37 | /* QT */ | 41 | /* QT */ |
@@ -688,6 +692,14 @@ void BlueBase::setInfo() | |||
688 | BlueBase::~BlueBase() | 692 | BlueBase::~BlueBase() |
689 | { | 693 | { |
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; |
692 | } | 704 | } |
693 | 705 | ||
@@ -738,6 +750,10 @@ void BlueBase::doForward() | |||
738 | return; | 750 | return; |
739 | } | 751 | } |
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 | } |
742 | 758 | ||
743 | /** | 759 | /** |
@@ -745,6 +761,10 @@ void BlueBase::doForward() | |||
745 | */ | 761 | */ |
746 | void BlueBase::forwardExit(Opie::Core::OProcess* proc) | 762 | 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) |
749 | QMessageBox::critical(this, tr("Forwarder Error"), | 769 | QMessageBox::critical(this, tr("Forwarder Error"), |
750 | tr("Forwarder start error")); | 770 | tr("Forwarder start error")); |