Diffstat (limited to 'noncore/net/opietooth/manager/bluebase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/bluebase.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp index 90e44cb..7954cc3 100644 --- a/noncore/net/opietooth/manager/bluebase.cpp +++ b/noncore/net/opietooth/manager/bluebase.cpp | |||
@@ -67,11 +67,11 @@ BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl ) | |||
67 | 67 | ||
68 | connect( rfcommBindButton, SIGNAL( clicked() ), this, SLOT( rfcommDialog() ) ); | 68 | connect( rfcommBindButton, SIGNAL( clicked() ), this, SLOT( rfcommDialog() ) ); |
69 | // not good since lib is async | 69 | // not good since lib is async |
70 | // connect( ListView2, SIGNAL( expanded(QListViewItem*) ), | 70 | // connect( devicesView, SIGNAL( expanded(QListViewItem*) ), |
71 | // this, SLOT( addServicesToDevice(QListViewItem*) ) ); | 71 | // this, SLOT( addServicesToDevice(QListViewItem*) ) ); |
72 | connect( ListView2, SIGNAL( clicked(QListViewItem*)), | 72 | connect( devicesView, SIGNAL( clicked(QListViewItem*)), |
73 | this, SLOT( startServiceActionClicked(QListViewItem*) ) ); | 73 | this, SLOT( startServiceActionClicked(QListViewItem*) ) ); |
74 | connect( ListView2, SIGNAL( rightButtonClicked(QListViewItem*,const QPoint&,int) ), | 74 | connect( devicesView, SIGNAL( rightButtonClicked(QListViewItem*,const QPoint&,int) ), |
75 | this, SLOT(startServiceActionHold(QListViewItem*,const QPoint&,int) ) ); | 75 | this, SLOT(startServiceActionHold(QListViewItem*,const QPoint&,int) ) ); |
76 | connect( m_localDevice , SIGNAL( foundServices(const QString&,Services::ValueList) ), | 76 | connect( m_localDevice , SIGNAL( foundServices(const QString&,Services::ValueList) ), |
77 | this, SLOT( addServicesToDevice(const QString&,Services::ValueList) ) ); | 77 | this, SLOT( addServicesToDevice(const QString&,Services::ValueList) ) ); |
@@ -84,8 +84,8 @@ BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl ) | |||
84 | 84 | ||
85 | 85 | ||
86 | // let hold be rightButtonClicked() | 86 | // let hold be rightButtonClicked() |
87 | QPEApplication::setStylusOperation( ListView2->viewport(), QPEApplication::RightOnHold); | 87 | QPEApplication::setStylusOperation( devicesView->viewport(), QPEApplication::RightOnHold); |
88 | QPEApplication::setStylusOperation( ListView4->viewport(), QPEApplication::RightOnHold); | 88 | QPEApplication::setStylusOperation( connectionsView->viewport(), QPEApplication::RightOnHold); |
89 | 89 | ||
90 | //Load all icons needed | 90 | //Load all icons needed |
91 | m_offPix = Resource::loadPixmap( "opietooth/notconnected" ); | 91 | m_offPix = Resource::loadPixmap( "opietooth/notconnected" ); |
@@ -105,7 +105,7 @@ BlueBase::BlueBase( QWidget* parent, const char* name, WFlags fl ) | |||
105 | readConfig(); | 105 | readConfig(); |
106 | initGui(); | 106 | initGui(); |
107 | 107 | ||
108 | ListView2->setRootIsDecorated(true); | 108 | devicesView->setRootIsDecorated(true); |
109 | 109 | ||
110 | 110 | ||
111 | writeToHciConfig(); | 111 | writeToHciConfig(); |
@@ -189,7 +189,7 @@ void BlueBase::readSavedDevices() | |||
189 | */ | 189 | */ |
190 | void BlueBase::writeSavedDevices() | 190 | void BlueBase::writeSavedDevices() |
191 | { | 191 | { |
192 | QListViewItemIterator it( ListView2 ); | 192 | QListViewItemIterator it( devicesView ); |
193 | BTListItem* item; | 193 | BTListItem* item; |
194 | BTDeviceItem* device; | 194 | BTDeviceItem* device; |
195 | RemoteDevice::ValueList list; | 195 | RemoteDevice::ValueList list; |
@@ -289,7 +289,7 @@ void BlueBase::addSearchedDevices( const QValueList<RemoteDevice> &newDevices ) | |||
289 | if (find( (*it) )) // is already inserted | 289 | if (find( (*it) )) // is already inserted |
290 | continue; | 290 | continue; |
291 | 291 | ||
292 | deviceItem = new BTDeviceItem( ListView2 , (*it) ); | 292 | deviceItem = new BTDeviceItem( devicesView , (*it) ); |
293 | deviceItem->setPixmap( 1, m_findPix ); | 293 | deviceItem->setPixmap( 1, m_findPix ); |
294 | deviceItem->setExpandable ( true ); | 294 | deviceItem->setExpandable ( true ); |
295 | 295 | ||
@@ -487,7 +487,7 @@ void BlueBase::addServicesToDevice( const QString& device, Services::ValueList s | |||
487 | void BlueBase::addSignalStrength() | 487 | void BlueBase::addSignalStrength() |
488 | { | 488 | { |
489 | 489 | ||
490 | QListViewItemIterator it( ListView4 ); | 490 | QListViewItemIterator it( connectionsView ); |
491 | for ( ; it.current(); ++it ) | 491 | for ( ; it.current(); ++it ) |
492 | { | 492 | { |
493 | m_localDevice->signalStrength( ((BTConnectionItem*)it.current() )->connection().mac() ); | 493 | m_localDevice->signalStrength( ((BTConnectionItem*)it.current() )->connection().mac() ); |
@@ -499,7 +499,7 @@ void BlueBase::addSignalStrength() | |||
499 | void BlueBase::addSignalStrength( const QString& mac, const QString& strength ) | 499 | void BlueBase::addSignalStrength( const QString& mac, const QString& strength ) |
500 | { | 500 | { |
501 | 501 | ||
502 | QListViewItemIterator it( ListView4 ); | 502 | QListViewItemIterator it( connectionsView ); |
503 | for ( ; it.current(); ++it ) | 503 | for ( ; it.current(); ++it ) |
504 | { | 504 | { |
505 | if( ((BTConnectionItem*)it.current())->connection().mac() == mac ) | 505 | if( ((BTConnectionItem*)it.current())->connection().mac() == mac ) |
@@ -534,7 +534,7 @@ void BlueBase::addConnectedDevices( ConnectionState::ValueList connectionList ) | |||
534 | for (it = connectionList.begin(); it != connectionList.end(); ++it) | 534 | for (it = connectionList.begin(); it != connectionList.end(); ++it) |
535 | { | 535 | { |
536 | 536 | ||
537 | QListViewItemIterator it2( ListView4 ); | 537 | QListViewItemIterator it2( connectionsView ); |
538 | bool found = false; | 538 | bool found = false; |
539 | for ( ; it2.current(); ++it2 ) | 539 | for ( ; it2.current(); ++it2 ) |
540 | { | 540 | { |
@@ -546,7 +546,7 @@ void BlueBase::addConnectedDevices( ConnectionState::ValueList connectionList ) | |||
546 | 546 | ||
547 | if ( found == false ) | 547 | if ( found == false ) |
548 | { | 548 | { |
549 | connectionItem = new BTConnectionItem( ListView4, (*it) ); | 549 | connectionItem = new BTConnectionItem( connectionsView, (*it) ); |
550 | 550 | ||
551 | if( m_deviceList.find((*it).mac()).data() ) | 551 | if( m_deviceList.find((*it).mac()).data() ) |
552 | { | 552 | { |
@@ -556,7 +556,7 @@ void BlueBase::addConnectedDevices( ConnectionState::ValueList connectionList ) | |||
556 | 556 | ||
557 | } | 557 | } |
558 | 558 | ||
559 | QListViewItemIterator it2( ListView4 ); | 559 | QListViewItemIterator it2( connectionsView ); |
560 | for ( ; it2.current(); ++it2 ) | 560 | for ( ; it2.current(); ++it2 ) |
561 | { | 561 | { |
562 | bool found = false; | 562 | bool found = false; |
@@ -579,10 +579,10 @@ void BlueBase::addConnectedDevices( ConnectionState::ValueList connectionList ) | |||
579 | } | 579 | } |
580 | else | 580 | else |
581 | { | 581 | { |
582 | ListView4->clear(); | 582 | connectionsView->clear(); |
583 | ConnectionState con; | 583 | ConnectionState con; |
584 | con.setMac( tr("No connections found") ); | 584 | con.setMac( tr("No connections found") ); |
585 | connectionItem = new BTConnectionItem( ListView4 , con ); | 585 | connectionItem = new BTConnectionItem( connectionsView , con ); |
586 | } | 586 | } |
587 | 587 | ||
588 | // recall connection search after some time | 588 | // recall connection search after some time |
@@ -673,7 +673,7 @@ BlueBase::~BlueBase() | |||
673 | */ | 673 | */ |
674 | bool BlueBase::find( const RemoteDevice& rem ) | 674 | bool BlueBase::find( const RemoteDevice& rem ) |
675 | { | 675 | { |
676 | QListViewItemIterator it( ListView2 ); | 676 | QListViewItemIterator it( devicesView ); |
677 | BTListItem* item; | 677 | BTListItem* item; |
678 | BTDeviceItem* device; | 678 | BTDeviceItem* device; |
679 | for (; it.current(); ++it ) | 679 | for (; it.current(); ++it ) |