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 | |||
@@ -312,63 +312,50 @@ QString OBluetoothDevice::deviceClass() const | |||
312 | case 4: major = "Audio/Video"; | 312 | case 4: major = "Audio/Video"; |
313 | switch ( min ) | 313 | switch ( min ) |
314 | { | 314 | { |
315 | case 0: minor = "Uncategorized"; break; | 315 | case 0: minor = "Uncategorized"; break; |
316 | case 1: minor = "Device conforms to the Headset profile"; break; | 316 | case 1: minor = "Device conforms to the Headset profile"; break; |
317 | case 2: minor = "Hands-free"; break; | 317 | case 2: minor = "Hands-free"; break; |
318 | case 3: minor = "Reserved(3)"; break; | 318 | case 3: minor = "Reserved(3)"; break; |
319 | case 4: minor = "Microphone"; break; | 319 | case 4: minor = "Microphone"; break; |
320 | case 5: minor = "Loudspeaker"; break; | 320 | case 5: minor = "Loudspeaker"; break; |
321 | case 6: minor = "Headphones"; break; | 321 | case 6: minor = "Headphones"; break; |
322 | case 7: minor = "Portable Audio"; break; | 322 | case 7: minor = "Portable Audio"; break; |
323 | case 8: minor = "Car Audio"; break; | 323 | case 8: minor = "Car Audio"; break; |
324 | case 9: minor = "Set-top box"; break; | 324 | case 9: minor = "Set-top box"; break; |
325 | case 10: minor = "HiFi Audio Device"; break; | 325 | case 10: minor = "HiFi Audio Device"; break; |
326 | case 11: minor = "VCR"; break; | 326 | case 11: minor = "VCR"; break; |
327 | case 12: minor = "Video Camera"; break; | 327 | case 12: minor = "Video Camera"; break; |
328 | case 13: minor = "Camcorder"; break; | 328 | case 13: minor = "Camcorder"; break; |
329 | case 14: minor = "Video Monitor"; break; | 329 | case 14: minor = "Video Monitor"; break; |
330 | case 15: minor = "Video Display and Loudspeaker"; break; | 330 | case 15: minor = "Video Display and Loudspeaker"; break; |
331 | case 16: minor = "Video Conferencing"; break; | 331 | case 16: minor = "Video Conferencing"; break; |
332 | case 17: minor = "Reserved(17)"; break; | 332 | case 17: minor = "Reserved(17)"; break; |
333 | case 18: minor = "Gaming/Toy"; break; | 333 | case 18: minor = "Gaming/Toy"; break; |
334 | } | 334 | } |
335 | break; | 335 | break; |
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 | } |