From 430017b047c885ba4dfd9f4074f4e4ab130d5709 Mon Sep 17 00:00:00 2001 From: korovkin Date: Mon, 03 Apr 2006 04:12:19 +0000 Subject: Added dialog boxes for PAN and DUN connections. Added message boxes in order to confirm DUN and PAN disconnections. --- (limited to 'noncore/net/opietooth/manager/panpopup.cpp') 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,5 +1,9 @@ #include +#include #include +#include +#include +#include "pandialog.h" using namespace Opie::Core; #include @@ -45,14 +49,16 @@ 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); } 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")); } -- cgit v0.9.0.2