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.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp
index 3d446f0..c905ea3 100644
--- a/noncore/net/opietooth/manager/bluebase.cpp
+++ b/noncore/net/opietooth/manager/bluebase.cpp
@@ -35,12 +35,16 @@
35#include <qcheckbox.h> 35#include <qcheckbox.h>
36#include <qlineedit.h> 36#include <qlineedit.h>
37 37
38#include <qpe/resource.h> 38#include <qpe/resource.h>
39#include <qpe/config.h> 39#include <qpe/config.h>
40 40
41
42namespace OpieTooth {
43
44
41BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl ) 45BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl )
42 : BluetoothBase( parent, name, fl ) { 46 : BluetoothBase( parent, name, fl ) {
43 47
44 48
45 QObject::connect( (QObject*) PushButton2, SIGNAL( clicked() ), this, SLOT(startScan())); 49 QObject::connect( (QObject*) PushButton2, SIGNAL( clicked() ), this, SLOT(startScan()));
46 QObject::connect((QObject*)configApplyButton, SIGNAL(clicked() ), this, SLOT(applyConfigChanges())); 50 QObject::connect((QObject*)configApplyButton, SIGNAL(clicked() ), this, SLOT(applyConfigChanges()));
@@ -88,14 +92,12 @@ void BlueBase::writeConfig() {
88 cfg.writeEntry("name", deviceName); 92 cfg.writeEntry("name", deviceName);
89 cfg.writeEntryCrypt("passkey", defaultPasskey); 93 cfg.writeEntryCrypt("passkey", defaultPasskey);
90 cfg.writeEntry("useEncryption", useEncryption); 94 cfg.writeEntry("useEncryption", useEncryption);
91 cfg.writeEntry("enableAuthentification", enableAuthentification); 95 cfg.writeEntry("enableAuthentification", enableAuthentification);
92 cfg.writeEntry("enablePagescan",enablePagescan); 96 cfg.writeEntry("enablePagescan",enablePagescan);
93 cfg.writeEntry("enableInquiryscan", enableInquiryscan); 97 cfg.writeEntry("enableInquiryscan", enableInquiryscan);
94
95
96} 98}
97 99
98 100
99/** 101/**
100 * Set up the gui 102 * Set up the gui
101 */ 103 */
@@ -106,13 +108,12 @@ void BlueBase::initGui() {
106 cryptCheckBox->setChecked(useEncryption); 108 cryptCheckBox->setChecked(useEncryption);
107 authCheckBox->setChecked(enableAuthentification); 109 authCheckBox->setChecked(enableAuthentification);
108 pagescanCheckBox->setChecked(enablePagescan); 110 pagescanCheckBox->setChecked(enablePagescan);
109 inquiryscanCheckBox->setChecked(enableInquiryscan); 111 inquiryscanCheckBox->setChecked(enableInquiryscan);
110 deviceNameLine->setText(deviceName); 112 deviceNameLine->setText(deviceName);
111 passkeyLine->setText(defaultPasskey); 113 passkeyLine->setText(defaultPasskey);
112
113} 114}
114 115
115 116
116/** 117/**
117 * Get the status informations and returns it 118 * Get the status informations and returns it
118 * @return QString the status informations gathered 119 * @return QString the status informations gathered
@@ -140,14 +141,12 @@ void BlueBase::applyConfigChanges() {
140 141
141 QMessageBox* box = new QMessageBox(this, "Test"); 142 QMessageBox* box = new QMessageBox(this, "Test");
142 box->setText(tr("Changes applied")); 143 box->setText(tr("Changes applied"));
143 box->show(); 144 box->show();
144 145
145 // falls nötig hcid killhupen - die funktionalität adden 146 // falls nötig hcid killhupen - die funktionalität adden
146
147
148} 147}
149 148
150 149
151/** 150/**
152 * Open the "scan for devices" dialog 151 * Open the "scan for devices" dialog
153 */ 152 */
@@ -159,7 +158,8 @@ void BlueBase::startScan() {
159/** 158/**
160 * Decontructor 159 * Decontructor
161 */ 160 */
162BlueBase::~BlueBase(){ 161BlueBase::~BlueBase(){
163} 162}
164 163
164}
165 165