author | harlekin <harlekin> | 2002-06-20 15:44:36 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-06-20 15:44:36 (UTC) |
commit | e0eec50bf3992d95d7060af74fa98e9630abfa4e (patch) (unidiff) | |
tree | 5e4dd3d7900a93c71a1519eda8953cb9df871e3e | |
parent | 5a5356882fe8dc4b1c1f9986b425d673ac8875ad (diff) | |
download | opie-e0eec50bf3992d95d7060af74fa98e9630abfa4e.zip opie-e0eec50bf3992d95d7060af74fa98e9630abfa4e.tar.gz opie-e0eec50bf3992d95d7060af74fa98e9630abfa4e.tar.bz2 |
up
-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 { | |||
81 | 81 | ||
82 | 82 | ||
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 | } |
98 | 91 | ||
99 | 92 | ||
@@ -133,7 +126,7 @@ namespace OpieTooth { | |||
133 | } | 126 | } |
134 | 127 | ||
135 | 128 | ||
136 | /* | 129 | /** |
137 | * Read the list of allready known devices | 130 | * Read the list of allready known devices |
138 | * | 131 | * |
139 | */ | 132 | */ |
@@ -150,7 +143,7 @@ namespace OpieTooth { | |||
150 | addSearchedDevices( *loadedDevices ); | 143 | addSearchedDevices( *loadedDevices ); |
151 | } | 144 | } |
152 | 145 | ||
153 | /* | 146 | /** |
154 | * Write the list of allready known devices | 147 | * Write the list of allready known devices |
155 | * | 148 | * |
156 | */ | 149 | */ |
@@ -224,7 +217,7 @@ namespace OpieTooth { | |||
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 |
229 | * | 222 | * |
230 | */ | 223 | */ |
@@ -254,7 +247,7 @@ namespace OpieTooth { | |||
254 | } | 247 | } |
255 | 248 | ||
256 | 249 | ||
257 | /* | 250 | /** |
258 | * Action that is toggled on entrys on click | 251 | * Action that is toggled on entrys on click |
259 | */ | 252 | */ |
260 | void BlueBase::startServiceActionClicked( QListViewItem *item ) { | 253 | void BlueBase::startServiceActionClicked( QListViewItem *item ) { |
@@ -262,7 +255,7 @@ namespace OpieTooth { | |||
262 | 255 | ||
263 | } | 256 | } |
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) |
267 | */ | 260 | */ |
268 | void BlueBase::startServiceActionHold( QListViewItem * item, const QPoint & point, int column ) { | 261 | void BlueBase::startServiceActionHold( QListViewItem * item, const QPoint & point, int column ) { |
@@ -270,7 +263,7 @@ namespace OpieTooth { | |||
270 | 263 | ||
271 | } | 264 | } |
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) |
275 | * | 268 | * |
276 | */ | 269 | */ |
@@ -316,14 +309,21 @@ namespace OpieTooth { | |||
316 | QListViewItem * serviceItem; | 309 | QListViewItem * serviceItem; |
317 | 310 | ||
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 | } |
324 | 315 | ||
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 |
328 | */ | 328 | */ |
329 | bool BlueBase::deviceActive( RemoteDevice *device ) { | 329 | bool BlueBase::deviceActive( RemoteDevice *device ) { |
@@ -344,6 +344,9 @@ namespace OpieTooth { | |||
344 | } | 344 | } |
345 | 345 | ||
346 | 346 | ||
347 | /** | ||
348 | * Set the informations about the local device in information Tab | ||
349 | */ | ||
347 | void BlueBase::setInfo() { | 350 | void BlueBase::setInfo() { |
348 | StatusLabel->setText( getStatus() ); | 351 | StatusLabel->setText( getStatus() ); |
349 | } | 352 | } |
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 { | |||
65 | QPixmap offPix; | 65 | QPixmap offPix; |
66 | QPixmap onPix; | 66 | QPixmap onPix; |
67 | 67 | ||
68 | public slots: | 68 | private slots: |
69 | void addSearchedDevices( QList<RemoteDevice> &newDevices ); | 69 | void addSearchedDevices( QList<RemoteDevice> &newDevices ); |
70 | void addServicesToDevice( QListViewItem *item ); | 70 | void addServicesToDevice( QListViewItem *item ); |
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 ); |
73 | void startServiceActionHold( QListViewItem *item, const QPoint &point, int column); | 74 | void startServiceActionHold( QListViewItem *item, const QPoint &point, int column); |
74 | void applyConfigChanges(); | 75 | void applyConfigChanges(); |