From 1af1f1d9f398d38a2bc666cd2edff5725da7a770 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Wed, 29 Oct 2003 18:18:19 +0000 Subject: mrege noncore/net/* --- (limited to 'noncore/net/opietooth/manager/bluebase.cpp') diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp index 54808fa..2e68984 100644 --- a/noncore/net/opietooth/manager/bluebase.cpp +++ b/noncore/net/opietooth/manager/bluebase.cpp @@ -20,6 +20,7 @@ #include "hciconfwrapper.h" #include "devicehandler.h" #include "btconnectionitem.h" +#include "rfcommassigndialogimpl.h" #include #include @@ -59,7 +60,9 @@ BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl ) connect( PushButton2, SIGNAL( clicked() ), this, SLOT(startScan() ) ); connect( configApplyButton, SIGNAL(clicked() ), this, SLOT(applyConfigChanges() ) ); - // not good since lib is async + + connect( rfcommBindButton, SIGNAL( clicked() ), this, SLOT( rfcommDialog() ) ); +// not good since lib is async // connect( ListView2, SIGNAL( expanded ( QListViewItem* ) ), // this, SLOT( addServicesToDevice( QListViewItem * ) ) ); connect( ListView2, SIGNAL( clicked( QListViewItem* )), @@ -222,7 +225,7 @@ void BlueBase::initGui() { QString BlueBase::status()const{ QString infoString = tr( "Device name : Ipaq" ); infoString += QString( "
" + tr( "MAC adress: " ) +" No idea" ); - infoString += QString( "
" + tr( "Class" ) + " PDA" ); + infoString += QString( "
" + tr( "Class" ) + " PDA" ); return (infoString); } @@ -245,6 +248,20 @@ void BlueBase::applyConfigChanges() { } /** + * Launch Rfcomm Bind dialog + * + */ +void BlueBase::rfcommDialog() { + RfcommAssignDialog rfcommAssign ( this, "RfcommAssignDialog", true, WStyle_ContextHelp ); + + rfcommAssign.showMaximized(); + + if ( rfcommAssign.exec() == QDialog::Accepted ) { + rfcommAssign.saveConfig(); + } +} + +/** * Add fresh found devices from scan dialog to the listing * */ -- cgit v0.9.0.2