summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/bluebase.cpp
Unidiff
Diffstat (limited to 'noncore/net/opietooth/manager/bluebase.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/bluebase.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp
index e3b9e53..71da82e 100644
--- a/noncore/net/opietooth/manager/bluebase.cpp
+++ b/noncore/net/opietooth/manager/bluebase.cpp
@@ -38,20 +38,24 @@
38#include <qpe/resource.h> 38#include <qpe/resource.h>
39#include <qpe/config.h> 39#include <qpe/config.h>
40 40
41 41
42namespace OpieTooth { 42namespace OpieTooth {
43 43
44 class RemoteDevices;
44 45
45 BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl ) 46 BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl )
46 : BluetoothBase( parent, name, fl ) { 47 : BluetoothBase( parent, name, fl ) {
47 48
48 49
49 QObject::connect( (QObject*) PushButton2, SIGNAL( clicked() ), this, SLOT(startScan())); 50 QObject::connect( (QObject*) PushButton2, SIGNAL( clicked() ), this, SLOT(startScan()));
50 QObject::connect((QObject*)configApplyButton, SIGNAL(clicked() ), this, SLOT(applyConfigChanges())); 51 QObject::connect((QObject*)configApplyButton, SIGNAL(clicked() ), this, SLOT(applyConfigChanges()));
51 52
53
54
55
52 QPalette pal = this->palette(); 56 QPalette pal = this->palette();
53 QColor col = pal.color(QPalette::Active, QColorGroup::Background); 57 QColor col = pal.color(QPalette::Active, QColorGroup::Background);
54 pal.setColor(QPalette::Active, QColorGroup::Button, col); 58 pal.setColor(QPalette::Active, QColorGroup::Button, col);
55 pal.setColor(QPalette::Inactive, QColorGroup::Button, col); 59 pal.setColor(QPalette::Inactive, QColorGroup::Button, col);
56 pal.setColor(QPalette::Normal, QColorGroup::Button, col); 60 pal.setColor(QPalette::Normal, QColorGroup::Button, col);
57 pal.setColor(QPalette::Disabled, QColorGroup::Button, col); 61 pal.setColor(QPalette::Disabled, QColorGroup::Button, col);
@@ -146,17 +150,27 @@ namespace OpieTooth {
146 box->show(); 150 box->show();
147 151
148 // falls nötig hcid killhupen - die funktionalität adden 152 // falls nötig hcid killhupen - die funktionalität adden
149} 153}
150 154
151 155
156 void BlueBase::addSearchedDevices( QList<RemoteDevices> &newDevices ) {
157
158
159
160 }
161
162
152/** 163/**
153 * Open the "scan for devices" dialog 164 * Open the "scan for devices" dialog
154 */ 165 */
155 void BlueBase::startScan() { 166 void BlueBase::startScan() {
156 ScanDialog *scan = new ScanDialog( this, "", true); 167 ScanDialog *scan = new ScanDialog( this, "", true);
168 QObject::connect((QObject*)scan, SIGNAL( selectedDevices(QList<RemoteDevices>&) ),
169 this, SLOT( addSearchedDevices(QList<RemoteDevices>& ) ));
170
157 scan->showMaximized(); 171 scan->showMaximized();
158 } 172 }
159 173
160/** 174/**
161 * Decontructor 175 * Decontructor
162 */ 176 */