-rw-r--r-- | noncore/net/opietooth/manager/bluebase.cpp | 35 |
1 files changed, 26 insertions, 9 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp index 598ce16..d2854a1 100644 --- a/noncore/net/opietooth/manager/bluebase.cpp +++ b/noncore/net/opietooth/manager/bluebase.cpp | |||
@@ -144,4 +144,7 @@ void BlueBase::writeConfig() { | |||
144 | } | 144 | } |
145 | 145 | ||
146 | /** | ||
147 | * Modify the hcid.conf file to our needs | ||
148 | */ | ||
146 | void BlueBase::writeToHciConfig() { | 149 | void BlueBase::writeToHciConfig() { |
147 | qWarning("writeToHciConfig"); | 150 | qWarning("writeToHciConfig"); |
@@ -149,8 +152,4 @@ void BlueBase::writeToHciConfig() { | |||
149 | hciconf.load(); | 152 | hciconf.load(); |
150 | hciconf.setPinHelper( "/bin/QtPalmtop/bin/blue-pin" ); | 153 | hciconf.setPinHelper( "/bin/QtPalmtop/bin/blue-pin" ); |
151 | |||
152 | |||
153 | // hciconf->setPinHelper( "/bin/QtPalmtop/bin/blue-pin" ); | ||
154 | |||
155 | hciconf.setName( m_deviceName ); | 154 | hciconf.setName( m_deviceName ); |
156 | hciconf.setEncrypt( m_useEncryption ); | 155 | hciconf.setEncrypt( m_useEncryption ); |
@@ -175,4 +174,5 @@ void BlueBase::readSavedDevices() { | |||
175 | } | 174 | } |
176 | 175 | ||
176 | |||
177 | /** | 177 | /** |
178 | * Write the list of allready known devices | 178 | * Write the list of allready known devices |
@@ -278,4 +278,5 @@ void BlueBase::startServiceActionClicked( QListViewItem */*item*/ ) { | |||
278 | } | 278 | } |
279 | 279 | ||
280 | |||
280 | /** | 281 | /** |
281 | * Action that are toggled on hold (mostly QPopups i guess) | 282 | * Action that are toggled on hold (mostly QPopups i guess) |
@@ -314,5 +315,6 @@ void BlueBase::startServiceActionHold( QListViewItem * item, const QPoint & poin | |||
314 | 315 | ||
315 | } | 316 | } |
316 | /** | 317 | |
318 | /* | ||
317 | * We got service sensitive PopupMenus in our factory | 319 | * We got service sensitive PopupMenus in our factory |
318 | * We will create one through the factory and will insert | 320 | * We will create one through the factory and will insert |
@@ -364,8 +366,9 @@ void BlueBase::startServiceActionHold( QListViewItem * item, const QPoint & poin | |||
364 | } | 366 | } |
365 | 367 | ||
366 | /** | 368 | |
367 | * Search and display avail. services for a device (on expand from device listing) | 369 | /** |
368 | * | 370 | * Search and display avail. services for a device (on expand from device listing) |
369 | */ | 371 | * @param item the service item returned |
372 | */ | ||
370 | void BlueBase::addServicesToDevice( BTDeviceItem * item ) { | 373 | void BlueBase::addServicesToDevice( BTDeviceItem * item ) { |
371 | qDebug("addServicesToDevice"); | 374 | qDebug("addServicesToDevice"); |
@@ -431,5 +434,13 @@ void BlueBase::addConnectedDevices() { | |||
431 | 434 | ||
432 | 435 | ||
436 | /** | ||
437 | * This adds the found connections to the connection tab. | ||
438 | * @param connectionList the ValueList with all current connections | ||
439 | */ | ||
433 | void BlueBase::addConnectedDevices( ConnectionState::ValueList connectionList ) { | 440 | void BlueBase::addConnectedDevices( ConnectionState::ValueList connectionList ) { |
441 | |||
442 | // clear the ListView first | ||
443 | ListView4->clear(); | ||
444 | |||
434 | QValueList<OpieTooth::ConnectionState>::Iterator it; | 445 | QValueList<OpieTooth::ConnectionState>::Iterator it; |
435 | BTConnectionItem * connectionItem; | 446 | BTConnectionItem * connectionItem; |
@@ -450,6 +461,8 @@ void BlueBase::addConnectedDevices( ConnectionState::ValueList connectionList ) | |||
450 | } | 461 | } |
451 | 462 | ||
463 | |||
452 | /** | 464 | /** |
453 | * Find out if a device can currently be reached | 465 | * Find out if a device can currently be reached |
466 | * @param device | ||
454 | */ | 467 | */ |
455 | void BlueBase::deviceActive( const RemoteDevice &device ) { | 468 | void BlueBase::deviceActive( const RemoteDevice &device ) { |
@@ -459,4 +472,5 @@ void BlueBase::deviceActive( const RemoteDevice &device ) { | |||
459 | } | 472 | } |
460 | 473 | ||
474 | |||
461 | /** | 475 | /** |
462 | * The signal catcher. Set the avail. status on device. | 476 | * The signal catcher. Set the avail. status on device. |
@@ -484,4 +498,5 @@ void BlueBase::deviceActive( const QString& device, bool connected ) { | |||
484 | } | 498 | } |
485 | 499 | ||
500 | |||
486 | /** | 501 | /** |
487 | * Open the "scan for devices" dialog | 502 | * Open the "scan for devices" dialog |
@@ -504,4 +519,5 @@ void BlueBase::setInfo() { | |||
504 | } | 519 | } |
505 | 520 | ||
521 | |||
506 | /** | 522 | /** |
507 | * Decontructor | 523 | * Decontructor |
@@ -512,4 +528,5 @@ BlueBase::~BlueBase() { | |||
512 | } | 528 | } |
513 | 529 | ||
530 | |||
514 | /** | 531 | /** |
515 | * find searches the ListView for a BTDeviceItem containig | 532 | * find searches the ListView for a BTDeviceItem containig |