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
@@ -36,2 +36,3 @@
#include <qlineedit.h>
+#include <qlistview.h>
@@ -43,3 +44,4 @@ namespace OpieTooth {
- class RemoteDevices;
+
+ #include <remotedevice.h>
@@ -155,6 +157,15 @@ 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() );
+ }
}
@@ -167,4 +178,4 @@ namespace OpieTooth {
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>& ) ));