Diffstat (limited to 'noncore/net/opietooth/manager/bluebase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/bluebase.cpp | 19 |
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 | ||
42 | namespace OpieTooth { | 43 | namespace 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 | } |