summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/bluebase.cpp19
-rw-r--r--noncore/net/opietooth/manager/bluebase.h2
-rw-r--r--noncore/net/opietooth/manager/scandialog.cpp10
-rw-r--r--noncore/net/opietooth/manager/scandialog.h4
4 files changed, 23 insertions, 12 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>& ) ));
diff --git a/noncore/net/opietooth/manager/bluebase.h b/noncore/net/opietooth/manager/bluebase.h
index 5364e51..c8ceed2 100644
--- a/noncore/net/opietooth/manager/bluebase.h
+++ b/noncore/net/opietooth/manager/bluebase.h
@@ -55,3 +55,3 @@ namespace OpieTooth {
private slots:
- void addSearchedDevices( QList<RemoteDevices> &newDevices );
+ void addSearchedDevices( QList<RemoteDevice> &newDevices );
void applyConfigChanges();
diff --git a/noncore/net/opietooth/manager/scandialog.cpp b/noncore/net/opietooth/manager/scandialog.cpp
index 8a7ea01..bd7d23c 100644
--- a/noncore/net/opietooth/manager/scandialog.cpp
+++ b/noncore/net/opietooth/manager/scandialog.cpp
@@ -126,3 +126,3 @@ namespace OpieTooth {
- void ScanDialog::fillList(const QString& device, RemoteDevices::ValueList deviceList) {
+ void ScanDialog::fillList(const QString& device, RemoteDevice::ValueList deviceList) {
@@ -130,3 +130,3 @@ namespace OpieTooth {
- RemoteDevices::ValueList::Iterator it;
+ RemoteDevice::ValueList::Iterator it;
for( it = deviceList.begin(); it != deviceList.end(); ++it ) {
@@ -148,3 +148,3 @@ namespace OpieTooth {
- QList<RemoteDevices> *deviceList = new QList<RemoteDevices>;
+ QList<RemoteDevice> *deviceList = new QList<RemoteDevice>;
@@ -153,4 +153,4 @@ namespace OpieTooth {
if ( ((QCheckListItem*)it.current())->isOn() ) {
- RemoteDevices* device = new RemoteDevices( it.current()->text(1), it.current()->text(0));
- deviceList->append( device );
+ RemoteDevice * device = new RemoteDevice( it.current()->text(1), it.current()->text(0));
+ deviceList->append( device );
}
diff --git a/noncore/net/opietooth/manager/scandialog.h b/noncore/net/opietooth/manager/scandialog.h
index 0ca302a..adc960c 100644
--- a/noncore/net/opietooth/manager/scandialog.h
+++ b/noncore/net/opietooth/manager/scandialog.h
@@ -62,3 +62,3 @@ class Device;
void progressTimer();
- void fillList(const QString& device, RemoteDevices::ValueList list);
+ void fillList(const QString& device, RemoteDevice::ValueList list);
@@ -70,3 +70,3 @@ class Device;
signals:
- void selectedDevices(QList<RemoteDevices>&);
+ void selectedDevices(QList<RemoteDevice>&);
};