summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/bluebase.cpp
Unidiff
Diffstat (limited to 'noncore/net/opietooth/manager/bluebase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/bluebase.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp
index c29eb1a..85c6717 100644
--- a/noncore/net/opietooth/manager/bluebase.cpp
+++ b/noncore/net/opietooth/manager/bluebase.cpp
@@ -235,25 +235,25 @@ using namespace OpieTooth;
235 m_enablePagescan = pagescanCheckBox->isChecked(); 235 m_enablePagescan = pagescanCheckBox->isChecked();
236 m_enableInquiryscan = inquiryscanCheckBox->isChecked(); 236 m_enableInquiryscan = inquiryscanCheckBox->isChecked();
237 237
238 writeConfig(); 238 writeConfig();
239 239
240 QMessageBox::information( this, tr("Test") , tr("Changes were applied.") ); 240 QMessageBox::information( this, tr("Test") , tr("Changes were applied.") );
241 } 241 }
242 242
243 /** 243 /**
244 * Add fresh found devices from scan dialog to the listing 244 * Add fresh found devices from scan dialog to the listing
245 * 245 *
246 */ 246 */
247 void BlueBase::addSearchedDevices( QValueList<RemoteDevice> &newDevices ) { 247 void BlueBase::addSearchedDevices( const QValueList<RemoteDevice> &newDevices ) {
248 BTListItem * deviceItem; 248 BTListItem * deviceItem;
249 QValueList<RemoteDevice>::ConstIterator it; 249 QValueList<RemoteDevice>::ConstIterator it;
250 250
251 for( it = newDevices.begin(); it != newDevices.end() ; ++it ) { 251 for( it = newDevices.begin(); it != newDevices.end() ; ++it ) {
252 deviceItem = new BTListItem( ListView2 , (*it).name(), (*it).mac(), "device" ); 252 deviceItem = new BTListItem( ListView2 , (*it).name(), (*it).mac(), "device" );
253 deviceItem->setExpandable ( true ); 253 deviceItem->setExpandable ( true );
254 254
255 // look if device is avail. atm, async 255 // look if device is avail. atm, async
256 deviceActive( (*it) ); 256 deviceActive( (*it) );
257 257
258 // ggf auch hier? 258 // ggf auch hier?
259 addServicesToDevice( deviceItem ); 259 addServicesToDevice( deviceItem );
@@ -425,26 +425,26 @@ void BlueBase::startServiceActionHold( QListViewItem * item, const QPoint & poin
425 deviceItem->setPixmap( 1, m_onPix ); 425 deviceItem->setPixmap( 1, m_onPix );
426 } else { 426 } else {
427 deviceItem->setPixmap( 1, m_offPix ); 427 deviceItem->setPixmap( 1, m_offPix );
428 } 428 }
429 } 429 }
430 430
431 /** 431 /**
432 * Open the "scan for devices" dialog 432 * Open the "scan for devices" dialog
433 */ 433 */
434 void BlueBase::startScan() { 434 void BlueBase::startScan() {
435 ScanDialog *scan = new ScanDialog( this, "ScanDialog", 435 ScanDialog *scan = new ScanDialog( this, "ScanDialog",
436 true, WDestructiveClose ); 436 true, WDestructiveClose );
437 QObject::connect( scan, SIGNAL( selectedDevices( QValueList<RemoteDevice>& ) ), 437 QObject::connect( scan, SIGNAL( selectedDevices( const QValueList<RemoteDevice>& ) ),
438 this, SLOT( addSearchedDevices( QValueList<RemoteDevice>& ) ) ); 438 this, SLOT( addSearchedDevices( const QValueList<RemoteDevice>& ) ) );
439 439
440 scan->showMaximized(); 440 scan->showMaximized();
441 } 441 }
442 442
443 443
444 /** 444 /**
445 * Set the informations about the local device in information Tab 445 * Set the informations about the local device in information Tab
446 */ 446 */
447 void BlueBase::setInfo() { 447 void BlueBase::setInfo() {
448 StatusLabel->setText( status() ); 448 StatusLabel->setText( status() );
449 } 449 }
450 450