author | korovkin <korovkin> | 2006-04-03 04:12:19 (UTC) |
---|---|---|
committer | korovkin <korovkin> | 2006-04-03 04:12:19 (UTC) |
commit | 430017b047c885ba4dfd9f4074f4e4ab130d5709 (patch) (side-by-side diff) | |
tree | ed883831f88038163285800ee2d8cc2fbb4faf86 /noncore/net/opietooth/manager/panpopup.cpp | |
parent | 812083469c80a0a07ad1ba41d6795e05f950710b (diff) | |
download | opie-430017b047c885ba4dfd9f4074f4e4ab130d5709.zip opie-430017b047c885ba4dfd9f4074f4e4ab130d5709.tar.gz opie-430017b047c885ba4dfd9f4074f4e4ab130d5709.tar.bz2 |
Added dialog boxes for PAN and DUN connections.
Added message boxes in order to confirm DUN and PAN disconnections.
Diffstat (limited to 'noncore/net/opietooth/manager/panpopup.cpp') (more/less context) (show 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,3 +1,7 @@ #include <qpe/qcopenvelope_qws.h> +#include <qmessagebox.h> #include <opie2/odebug.h> +#include <opie2/oprocess.h> +#include <qpe/qpeapplication.h> +#include "pandialog.h" using namespace Opie::Core; @@ -47,5 +51,5 @@ PanPopup::~PanPopup() { void PanPopup::slotConnect() { - - m_panconnection = new StartPanConnection( m_item->mac() ); - m_panconnection->start(); + odebug << "connect" << oendl; + PanDialog pandlg(m_item->mac()); + QPEApplication::execDialog(&pandlg); } @@ -53,4 +57,6 @@ void PanPopup::slotConnect() { void PanPopup::slotDisconnect() { - if (!m_panconnection) m_panconnection = new StartPanConnection( m_item->mac() ); + if (!m_panconnection) + m_panconnection = new StartPanConnection( m_item->mac() ); m_panconnection->stop(); + QMessageBox::information(this, tr("Pan Disconnect"), tr("PAN Disconnected")); } |