summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-06-20 15:44:36 (UTC)
committer harlekin <harlekin>2002-06-20 15:44:36 (UTC)
commite0eec50bf3992d95d7060af74fa98e9630abfa4e (patch) (unidiff)
tree5e4dd3d7900a93c71a1519eda8953cb9df871e3e
parent5a5356882fe8dc4b1c1f9986b425d673ac8875ad (diff)
downloadopie-e0eec50bf3992d95d7060af74fa98e9630abfa4e.zip
opie-e0eec50bf3992d95d7060af74fa98e9630abfa4e.tar.gz
opie-e0eec50bf3992d95d7060af74fa98e9630abfa4e.tar.bz2
up
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/bluebase.cpp83
-rw-r--r--noncore/net/opietooth/manager/bluebase.h3
2 files changed, 45 insertions, 41 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp
index 7a92dc3..6caca70 100644
--- a/noncore/net/opietooth/manager/bluebase.cpp
+++ b/noncore/net/opietooth/manager/bluebase.cpp
@@ -69,8 +69,8 @@ namespace OpieTooth {
69 QPalette pal = this->palette(); 69 QPalette pal = this->palette();
70 QColor col = pal.color(QPalette::Active, QColorGroup::Background); 70 QColor col = pal.color( QPalette::Active, QColorGroup::Background );
71 pal.setColor(QPalette::Active, QColorGroup::Button, col); 71 pal.setColor( QPalette::Active, QColorGroup::Button, col );
72 pal.setColor(QPalette::Inactive, QColorGroup::Button, col); 72 pal.setColor( QPalette::Inactive, QColorGroup::Button, col );
73 pal.setColor(QPalette::Normal, QColorGroup::Button, col); 73 pal.setColor( QPalette::Normal, QColorGroup::Button, col );
74 pal.setColor(QPalette::Disabled, QColorGroup::Button, col); 74 pal.setColor( QPalette::Disabled, QColorGroup::Button, col );
75 this->setPalette(pal); 75 this->setPalette( pal );
76 76
@@ -83,15 +83,8 @@ namespace OpieTooth {
83 //TESTING 83 //TESTING
84
85 ListView2->setRootIsDecorated(true); 84 ListView2->setRootIsDecorated(true);
86 85
87 QListViewItem *topLV = new QListViewItem( ListView2, "Harlekins Dongle" , "yes");
88 topLV->setPixmap( 1, offPix );
89 // (void) new QListViewItem( topLV, "on" );
90 //(void) new QListViewItem( topLV, "off" );
91
92 QListViewItem *topLV2 = new QListViewItem( ListView2, "Siemens S45" , "no" ); 86 QListViewItem *topLV2 = new QListViewItem( ListView2, "Siemens S45" , "no" );
93 topLV2->setPixmap( 1, onPix ); 87 topLV2->setPixmap( 1, onPix );
94 (void) new QListViewItem( topLV2, "on" ); 88 (void) new QListViewItem( topLV2, "Serial" );
95 (void) new QListViewItem( topLV2, "off" ); 89 (void) new QListViewItem( topLV2, "BlueNiC" );
96
97 } 90 }
@@ -135,3 +128,3 @@ namespace OpieTooth {
135 128
136 /* 129 /**
137 * Read the list of allready known devices 130 * Read the list of allready known devices
@@ -152,3 +145,3 @@ namespace OpieTooth {
152 145
153 /* 146 /**
154 * Write the list of allready known devices 147 * Write the list of allready known devices
@@ -176,10 +169,10 @@ namespace OpieTooth {
176 169
177 StatusLabel->setText(getStatus()); // maybe move it to getStatus() 170 StatusLabel->setText( getStatus() ); // maybe move it to getStatus()
178 171
179 cryptCheckBox->setChecked(useEncryption); 172 cryptCheckBox->setChecked( useEncryption );
180 authCheckBox->setChecked(enableAuthentification); 173 authCheckBox->setChecked( enableAuthentification );
181 pagescanCheckBox->setChecked(enablePagescan); 174 pagescanCheckBox->setChecked( enablePagescan );
182 inquiryscanCheckBox->setChecked(enableInquiryscan); 175 inquiryscanCheckBox->setChecked( enableInquiryscan );
183 deviceNameLine->setText(deviceName); 176 deviceNameLine->setText( deviceName );
184 passkeyLine->setText(defaultPasskey); 177 passkeyLine->setText( defaultPasskey );
185 // set info tab 178 // set info tab
@@ -195,5 +188,5 @@ namespace OpieTooth {
195 188
196 QString infoString = tr("<b>Device name : </b> Ipaq" ); 189 QString infoString = tr( "<b>Device name : </b> Ipaq" );
197 infoString += QString("<br><b>" + tr("MAC adress: ") +"</b> No idea"); 190 infoString += QString( "<br><b>" + tr( "MAC adress: " ) +"</b> No idea" );
198 infoString += QString("<br><b>" + tr("Class") + "</b> PDA"); 191 infoString += QString( "<br><b>" + tr( "Class" ) + "</b> PDA" );
199 192
@@ -223,6 +216,6 @@ namespace OpieTooth {
223 // falls nötig hcid killhupen - die funktionalität adden 216 // falls nötig hcid killhupen - die funktionalität adden
224} 217 }
225 218
226 219
227 /* 220 /**
228 * Add fresh found devices from scan dialog to the listing 221 * Add fresh found devices from scan dialog to the listing
@@ -256,3 +249,3 @@ namespace OpieTooth {
256 249
257 /* 250 /**
258 * Action that is toggled on entrys on click 251 * Action that is toggled on entrys on click
@@ -264,3 +257,3 @@ namespace OpieTooth {
264 257
265 /* 258 /**
266 * Action that are toggled on hold (mostly QPopups i guess) 259 * Action that are toggled on hold (mostly QPopups i guess)
@@ -272,3 +265,3 @@ namespace OpieTooth {
272 265
273 /* 266 /**
274 * Search and display avail. services for a device (on expand from device listing) 267 * Search and display avail. services for a device (on expand from device listing)
@@ -280,3 +273,3 @@ namespace OpieTooth {
280 // row of mac adress 273 // row of mac adress
281 RemoteDevice *device = new RemoteDevice(item->text(3), item->text(0)); 274 RemoteDevice *device = new RemoteDevice( item->text(3), item->text(0) );
282 275
@@ -284,3 +277,3 @@ namespace OpieTooth {
284 277
285// and some time later I get a signal foundServices( const QString& device, Services::ValueList ); back 278 // and some time later I get a signal foundServices( const QString& device, Services::ValueList ); back
286 localDevice->searchServices( *device ); 279 localDevice->searchServices( *device );
@@ -306,3 +299,3 @@ namespace OpieTooth {
306 for( it = deviceList.begin(); it != deviceList.end(); ++it ) { 299 for( it = deviceList.begin(); it != deviceList.end(); ++it ) {
307 if (it.key() == device ) { 300 if ( it.key() == device ) {
308 deviceItem = it.data(); 301 deviceItem = it.data();
@@ -318,6 +311,4 @@ namespace OpieTooth {
318 for( it2 = servicesList.begin(); it2 != servicesList.end(); ++it2 ) { 311 for( it2 = servicesList.begin(); it2 != servicesList.end(); ++it2 ) {
319// it2.serviceName()
320 serviceItem = new QListViewItem( deviceItem , (*it2).serviceName() ); 312 serviceItem = new QListViewItem( deviceItem , (*it2).serviceName() );
321 } 313 }
322
323 } 314 }
@@ -325,3 +316,12 @@ namespace OpieTooth {
325 316
326 /* 317 /**
318 * Add the existing connections (pairs) to the connections tab.
319 *
320 */
321 void BlueBase::addConnectedDevices() {
322
323
324 }
325
326 /**
327 * Find out if a device can currently be reached 327 * Find out if a device can currently be reached
@@ -339,4 +339,4 @@ namespace OpieTooth {
339 ScanDialog *scan = new ScanDialog( this, "", true); 339 ScanDialog *scan = new ScanDialog( this, "", true);
340 QObject::connect( scan, SIGNAL( selectedDevices(QList<RemoteDevice>&) ), 340 QObject::connect( scan, SIGNAL( selectedDevices( QList<RemoteDevice>& ) ),
341 this, SLOT( addSearchedDevices(QList<RemoteDevice>& ) )); 341 this, SLOT( addSearchedDevices( QList<RemoteDevice>& ) ) );
342 342
@@ -346,2 +346,5 @@ namespace OpieTooth {
346 346
347 /**
348 * Set the informations about the local device in information Tab
349 */
347 void BlueBase::setInfo() { 350 void BlueBase::setInfo() {
diff --git a/noncore/net/opietooth/manager/bluebase.h b/noncore/net/opietooth/manager/bluebase.h
index d20d05c..99d2fa6 100644
--- a/noncore/net/opietooth/manager/bluebase.h
+++ b/noncore/net/opietooth/manager/bluebase.h
@@ -67,3 +67,3 @@ namespace OpieTooth {
67 67
68 public slots: 68 private slots:
69 void addSearchedDevices( QList<RemoteDevice> &newDevices ); 69 void addSearchedDevices( QList<RemoteDevice> &newDevices );
@@ -71,2 +71,3 @@ namespace OpieTooth {
71 void addServicesToDevice( const QString& device, Services::ValueList ); 71 void addServicesToDevice( const QString& device, Services::ValueList );
72 void addConnectedDevices();
72 void startServiceActionClicked( QListViewItem *item ); 73 void startServiceActionClicked( QListViewItem *item );