257 #define DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(value) \
258 if (majorClass == QBluetoothDeviceInfo::value) \
259 return QLatin1String(#value)
260 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(MiscellaneousDevice);
261 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(ComputerDevice);
262 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(PhoneDevice);
263 #if (QT_VERSION < QT_VERSION_CHECK(5, 13, 0))
264 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(LANAccessDevice);
266 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(NetworkDevice);
268 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(AudioVideoDevice);
269 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(PeripheralDevice);
270 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(ImagingDevice);
271 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(WearableDevice);
272 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(ToyDevice);
273 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(HealthDevice);
274 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(UncategorizedDevice);
275 #undef DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN
276 qCDebug(lc).noquote() <<
tr(
"Unknown major class %1.").
arg(majorClass);
289 #define DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(value) \
290 if (minorClass == QBluetoothDeviceInfo::value) \
291 return QLatin1String(#value)
292 switch (majorClass) {
294 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(UncategorizedMiscellaneous);
297 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(UncategorizedComputer);
298 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(DesktopComputer);
299 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(ServerComputer);
300 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(LaptopComputer);
301 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(HandheldClamShellComputer);
302 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(HandheldComputer);
303 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(WearableComputer);
306 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(UncategorizedPhone);
307 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(CellularPhone);
308 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(CordlessPhone);
309 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(SmartPhone);
310 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(WiredModemOrVoiceGatewayPhone);
311 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(CommonIsdnAccessPhone);
313 #if (QT_VERSION < QT_VERSION_CHECK(5, 13, 0))
318 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(NetworkFullService);
319 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(NetworkLoadFactorOne);
320 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(NetworkLoadFactorTwo);
321 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(NetworkLoadFactorThree);
322 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(NetworkLoadFactorFour);
323 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(NetworkLoadFactorFive);
324 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(NetworkLoadFactorSix);
325 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(NetworkNoService);
328 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(UncategorizedAudioVideoDevice);
329 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(WearableHeadsetDevice);
330 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(HandsFreeDevice);
331 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(Microphone);
332 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(Loudspeaker);
333 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(Headphones);
334 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(PortableAudioDevice);
335 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(CarAudio);
336 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(SetTopBox);
337 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(HiFiAudioDevice);
338 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(Vcr);
339 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(VideoCamera);
340 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(Camcorder);
341 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(VideoMonitor);
342 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(VideoDisplayAndLoudspeaker);
343 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(VideoConferencing);
344 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(GamingDevice);
347 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(UncategorizedPeripheral);
348 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(KeyboardPeripheral);
349 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(PointingDevicePeripheral);
350 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(KeyboardWithPointingDevicePeripheral);
351 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(JoystickPeripheral);
352 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(GamepadPeripheral);
353 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(RemoteControlPeripheral);
354 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(SensingDevicePeripheral);
355 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(DigitizerTabletPeripheral);
356 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(CardReaderPeripheral);
359 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(UncategorizedImagingDevice);
360 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(ImageDisplay);
361 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(ImageCamera);
362 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(ImageScanner);
363 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(ImagePrinter);
366 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(UncategorizedWearableDevice);
367 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(WearableWristWatch);
368 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(WearablePager);
369 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(WearableJacket);
370 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(WearableHelmet);
371 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(WearableGlasses);
374 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(UncategorizedToy);
375 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(ToyRobot);
376 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(ToyVehicle);
377 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(ToyDoll);
378 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(ToyController);
379 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(ToyGame);
382 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(UncategorizedHealthDevice);
383 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(HealthBloodPressureMonitor);
384 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(HealthThermometer);
385 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(HealthWeightScale);
386 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(HealthGlucoseMeter);
387 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(HealthPulseOximeter);
388 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(HealthDataDisplay);
389 DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN(HealthStepCounter);
395 #undef DOKIT_INTERNAL_IF_EQUAL_THEN_RETURN
396 qCDebug(lc).noquote() <<
tr(
"Unknown minor class %1 for major class %2.")
397 .
arg(minorClass).
arg(majorClass);