summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/bluebase.cpp
authorharlekin <harlekin>2002-06-16 20:44:48 (UTC)
committer harlekin <harlekin>2002-06-16 20:44:48 (UTC)
commit56788c49b68bae137a51b089b911f7ec4977c33f (patch) (side-by-side diff)
treecea3983dbb842348d1881d7f7d8ef2679d571d14 /noncore/net/opietooth/manager/bluebase.cpp
parent5c098847f0fd716c4fe697e5eb314111a4ae5df1 (diff)
downloadopie-56788c49b68bae137a51b089b911f7ec4977c33f.zip
opie-56788c49b68bae137a51b089b911f7ec4977c33f.tar.gz
opie-56788c49b68bae137a51b089b911f7ec4977c33f.tar.bz2
remoteDevice part II
Diffstat (limited to 'noncore/net/opietooth/manager/bluebase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/bluebase.cpp19
1 files changed, 15 insertions, 4 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp
index 71da82e..c993c7c 100644
--- a/noncore/net/opietooth/manager/bluebase.cpp
+++ b/noncore/net/opietooth/manager/bluebase.cpp
@@ -34,6 +34,7 @@
#include <qapplication.h>
#include <qcheckbox.h>
#include <qlineedit.h>
+#include <qlistview.h>
#include <qpe/resource.h>
#include <qpe/config.h>
@@ -41,7 +42,8 @@
namespace OpieTooth {
- class RemoteDevices;
+
+ #include <remotedevice.h>
BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl )
: BluetoothBase( parent, name, fl ) {
@@ -153,10 +155,19 @@ namespace OpieTooth {
}
- void BlueBase::addSearchedDevices( QList<RemoteDevices> &newDevices ) {
+ void BlueBase::addSearchedDevices( QList<RemoteDevice> &newDevices ) {
+
+ QListViewItem * deviceItem;
+
+ QListIterator<RemoteDevice> it(newDevices);
+ for( ; it.current(); ++it ) {
+ RemoteDevice *dev = it.current();
+ deviceItem = new QListViewItem( ListView4, dev->name() );
+ deviceItem->setText(1, dev->mac() );
+ }
}
@@ -165,8 +176,8 @@ namespace OpieTooth {
*/
void BlueBase::startScan() {
ScanDialog *scan = new ScanDialog( this, "", true);
- QObject::connect((QObject*)scan, SIGNAL( selectedDevices(QList<RemoteDevices>&) ),
- this, SLOT( addSearchedDevices(QList<RemoteDevices>& ) ));
+ QObject::connect((QObject*)scan, SIGNAL( selectedDevices(QList<RemoteDevice>&) ),
+ this, SLOT( addSearchedDevices(QList<RemoteDevice>& ) ));
scan->showMaximized();
}