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) (unidiff)
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 @@
34#include <qapplication.h> 34#include <qapplication.h>
35#include <qcheckbox.h> 35#include <qcheckbox.h>
36#include <qlineedit.h> 36#include <qlineedit.h>
37#include <qlistview.h>
37 38
38#include <qpe/resource.h> 39#include <qpe/resource.h>
39#include <qpe/config.h> 40#include <qpe/config.h>
@@ -41,7 +42,8 @@
41 42
42namespace OpieTooth { 43namespace OpieTooth {
43 44
44 class RemoteDevices; 45
46 #include <remotedevice.h>
45 47
46 BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl ) 48 BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl )
47 : BluetoothBase( parent, name, fl ) { 49 : BluetoothBase( parent, name, fl ) {
@@ -153,10 +155,19 @@ namespace OpieTooth {
153} 155}
154 156
155 157
156 void BlueBase::addSearchedDevices( QList<RemoteDevices> &newDevices ) { 158 void BlueBase::addSearchedDevices( QList<RemoteDevice> &newDevices ) {
159
160 QListViewItem * deviceItem;
161
162 QListIterator<RemoteDevice> it(newDevices);
157 163
164 for( ; it.current(); ++it ) {
158 165
159 166
167 RemoteDevice *dev = it.current();
168 deviceItem = new QListViewItem( ListView4, dev->name() );
169 deviceItem->setText(1, dev->mac() );
170 }
160 } 171 }
161 172
162 173
@@ -165,8 +176,8 @@ namespace OpieTooth {
165 */ 176 */
166 void BlueBase::startScan() { 177 void BlueBase::startScan() {
167 ScanDialog *scan = new ScanDialog( this, "", true); 178 ScanDialog *scan = new ScanDialog( this, "", true);
168 QObject::connect((QObject*)scan, SIGNAL( selectedDevices(QList<RemoteDevices>&) ), 179 QObject::connect((QObject*)scan, SIGNAL( selectedDevices(QList<RemoteDevice>&) ),
169 this, SLOT( addSearchedDevices(QList<RemoteDevices>& ) )); 180 this, SLOT( addSearchedDevices(QList<RemoteDevice>& ) ));
170 181
171 scan->showMaximized(); 182 scan->showMaximized();
172 } 183 }