author | erik <erik> | 2007-04-20 21:27:48 (UTC) |
---|---|---|
committer | erik <erik> | 2007-04-20 21:27:48 (UTC) |
commit | 1edbb754d3c8cfccf1630e2ad1e531e907555cbd (patch) (unidiff) | |
tree | c8f3048a913d51534408f5ae75f6f8e7ff73d144 /libopie2/opiebluez/obluetooth.cpp | |
parent | d07beba6b9351c6b575235522781e3ce8495e578 (diff) | |
download | opie-1edbb754d3c8cfccf1630e2ad1e531e907555cbd.zip opie-1edbb754d3c8cfccf1630e2ad1e531e907555cbd.tar.gz opie-1edbb754d3c8cfccf1630e2ad1e531e907555cbd.tar.bz2 |
removed unused member function
Diffstat (limited to 'libopie2/opiebluez/obluetooth.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiebluez/obluetooth.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/libopie2/opiebluez/obluetooth.cpp b/libopie2/opiebluez/obluetooth.cpp index 80f4bfc..e8e6bb3 100644 --- a/libopie2/opiebluez/obluetooth.cpp +++ b/libopie2/opiebluez/obluetooth.cpp | |||
@@ -336,39 +336,26 @@ QString OBluetoothDevice::deviceClass() const | |||
336 | 336 | ||
337 | case 5: major = "Peripheral"; | 337 | case 5: major = "Peripheral"; |
338 | switch ( min ) | 338 | switch ( min ) |
339 | { | 339 | { |
340 | case 16: minor = "Keyboard"; break; | 340 | case 16: minor = "Keyboard"; break; |
341 | case 32: minor = "Pointing Device"; break; | 341 | case 32: minor = "Pointing Device"; break; |
342 | case 48: minor = "Keyboard and Pointing Device"; break; | 342 | case 48: minor = "Keyboard and Pointing Device"; break; |
343 | } | 343 | } |
344 | break; | 344 | break; |
345 | 345 | ||
346 | case 6: major = "Imaging"; | 346 | case 6: major = "Imaging"; |
347 | if (min & 4) minor = "Display"; | 347 | if (min & 4) minor = "Display"; |
348 | else if (min & 8) minor = "Camera"; | 348 | else if (min & 8) minor = "Camera"; |
349 | else if (min & 16) minor = "Scanner"; | 349 | else if (min & 16) minor = "Scanner"; |
350 | else if (min & 32) minor = "Printer"; | 350 | else if (min & 32) minor = "Printer"; |
351 | break; | 351 | break; |
352 | 352 | ||
353 | case 63: major = "Uncategorized"; | 353 | case 63: major = "Uncategorized"; |
354 | break; | 354 | break; |
355 | } | 355 | } |
356 | 356 | ||
357 | return QString( "%1:%2" ).arg( major ).arg( minor ); | 357 | return QString( "%1:%2" ).arg( major ).arg( minor ); |
358 | } | 358 | } |
359 | 359 | ||
360 | QString OBluetoothDevice::getName() | ||
361 | { | ||
362 | /* FIXME: Uahhh, this gets ugly. | ||
363 | The BlueZ kernel interface seems to be very badly (if at all) documented. | ||
364 | All people are assuming that you use libbluetooth to talk to that stack. | ||
365 | However since libbluetooth is GPL, we can't do that :/ | ||
366 | Guess, we are stuck here until someone finds time and/or motivation to look | ||
367 | into that and create some easy-to-understand examples for how to talk | ||
368 | directly to the BlueZ kernel interface. | ||
369 | */ | ||
370 | }; | ||
371 | |||
372 | |||
373 | } | 360 | } |
374 | } | 361 | } |