-rw-r--r-- | noncore/net/opietooth/manager/bluebase.cpp | 39 | ||||
-rw-r--r-- | noncore/net/opietooth/manager/bluebase.h | 3 |
2 files changed, 23 insertions, 19 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 @@ -81,19 +81,12 @@ namespace OpieTooth { //TESTING - ListView2->setRootIsDecorated(true); - QListViewItem *topLV = new QListViewItem( ListView2, "Harlekins Dongle" , "yes"); - topLV->setPixmap( 1, offPix ); - // (void) new QListViewItem( topLV, "on" ); - //(void) new QListViewItem( topLV, "off" ); - QListViewItem *topLV2 = new QListViewItem( ListView2, "Siemens S45" , "no" ); topLV2->setPixmap( 1, onPix ); - (void) new QListViewItem( topLV2, "on" ); - (void) new QListViewItem( topLV2, "off" ); - + (void) new QListViewItem( topLV2, "Serial" ); + (void) new QListViewItem( topLV2, "BlueNiC" ); } @@ -133,7 +126,7 @@ namespace OpieTooth { } - /* + /** * Read the list of allready known devices * */ @@ -150,7 +143,7 @@ namespace OpieTooth { addSearchedDevices( *loadedDevices ); } - /* + /** * Write the list of allready known devices * */ @@ -224,7 +217,7 @@ namespace OpieTooth { } - /* + /** * Add fresh found devices from scan dialog to the listing * */ @@ -254,7 +247,7 @@ namespace OpieTooth { } - /* + /** * Action that is toggled on entrys on click */ void BlueBase::startServiceActionClicked( QListViewItem *item ) { @@ -262,7 +255,7 @@ namespace OpieTooth { } - /* + /** * Action that are toggled on hold (mostly QPopups i guess) */ void BlueBase::startServiceActionHold( QListViewItem * item, const QPoint & point, int column ) { @@ -270,7 +263,7 @@ namespace OpieTooth { } - /* + /** * Search and display avail. services for a device (on expand from device listing) * */ @@ -316,14 +309,21 @@ namespace OpieTooth { QListViewItem * serviceItem; for( it2 = servicesList.begin(); it2 != servicesList.end(); ++it2 ) { -// it2.serviceName() serviceItem = new QListViewItem( deviceItem , (*it2).serviceName() ); } - } - /* + /** + * Add the existing connections (pairs) to the connections tab. + * + */ + void BlueBase::addConnectedDevices() { + + + } + + /** * Find out if a device can currently be reached */ bool BlueBase::deviceActive( RemoteDevice *device ) { @@ -344,6 +344,9 @@ namespace OpieTooth { } + /** + * Set the informations about the local device in information Tab + */ void BlueBase::setInfo() { StatusLabel->setText( getStatus() ); } 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 @@ -65,10 +65,11 @@ namespace OpieTooth { QPixmap offPix; QPixmap onPix; - public slots: + private slots: void addSearchedDevices( QList<RemoteDevice> &newDevices ); void addServicesToDevice( QListViewItem *item ); void addServicesToDevice( const QString& device, Services::ValueList ); + void addConnectedDevices(); void startServiceActionClicked( QListViewItem *item ); void startServiceActionHold( QListViewItem *item, const QPoint &point, int column); void applyConfigChanges(); |