Diffstat (limited to 'noncore/net/opietooth/manager/panpopup.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/panpopup.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/noncore/net/opietooth/manager/panpopup.cpp b/noncore/net/opietooth/manager/panpopup.cpp index f02a58c..2fd9eaf 100644 --- a/noncore/net/opietooth/manager/panpopup.cpp +++ b/noncore/net/opietooth/manager/panpopup.cpp | |||
@@ -1,4 +1,8 @@ | |||
1 | #include <qpe/qcopenvelope_qws.h> | 1 | #include <qpe/qcopenvelope_qws.h> |
2 | #include <qmessagebox.h> | ||
2 | #include <opie2/odebug.h> | 3 | #include <opie2/odebug.h> |
4 | #include <opie2/oprocess.h> | ||
5 | #include <qpe/qpeapplication.h> | ||
6 | #include "pandialog.h" | ||
3 | using namespace Opie::Core; | 7 | using namespace Opie::Core; |
4 | 8 | ||
@@ -46,12 +50,14 @@ PanPopup::~PanPopup() { | |||
46 | 50 | ||
47 | void PanPopup::slotConnect() { | 51 | void PanPopup::slotConnect() { |
48 | 52 | odebug << "connect" << oendl; | |
49 | m_panconnection = new StartPanConnection( m_item->mac() ); | 53 | PanDialog pandlg(m_item->mac()); |
50 | m_panconnection->start(); | 54 | QPEApplication::execDialog(&pandlg); |
51 | } | 55 | } |
52 | 56 | ||
53 | void PanPopup::slotDisconnect() { | 57 | void PanPopup::slotDisconnect() { |
54 | if (!m_panconnection) m_panconnection = new StartPanConnection( m_item->mac() ); | 58 | if (!m_panconnection) |
59 | m_panconnection = new StartPanConnection( m_item->mac() ); | ||
55 | m_panconnection->stop(); | 60 | m_panconnection->stop(); |
61 | QMessageBox::information(this, tr("Pan Disconnect"), tr("PAN Disconnected")); | ||
56 | } | 62 | } |
57 | 63 | ||