diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-11-26 13:09:21 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-11-26 13:09:21 -0600 |
commit | 1351acec11a5f985ef664119c54aba254195f8b2 (patch) | |
tree | c2fc19cd9fc5f97ff68bddd8c4531b729f41c6ae /tdecore/tdehardwaredevices.cpp | |
parent | 08df31ba2c9f242e74a4e61743db1a808a80a356 (diff) | |
download | tdelibs-1351acec11a5f985ef664119c54aba254195f8b2.tar.gz tdelibs-1351acec11a5f985ef664119c54aba254195f8b2.zip |
Fix network-manager backend
Add Bluetooth device detection
Diffstat (limited to 'tdecore/tdehardwaredevices.cpp')
-rw-r--r-- | tdecore/tdehardwaredevices.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tdecore/tdehardwaredevices.cpp b/tdecore/tdehardwaredevices.cpp index bb979f79a..d4a10c340 100644 --- a/tdecore/tdehardwaredevices.cpp +++ b/tdecore/tdehardwaredevices.cpp @@ -2724,6 +2724,9 @@ TDEGenericDeviceType::TDEGenericDeviceType readGenericDeviceTypeFromString(TQStr else if (query == "ThermalControl") { ret = TDEGenericDeviceType::ThermalControl; } + else if (query == "BlueTooth") { + ret = TDEGenericDeviceType::BlueTooth; + } else if (query == "Bridge") { ret = TDEGenericDeviceType::Bridge; } @@ -3262,6 +3265,9 @@ TDEGenericDevice* TDEHardwareDevices::classifyUnknownDevice(udev_device* dev, TD if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::TextIO); } } + else if (devicesubsystem == "bluetooth") { + if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::BlueTooth); + } else if (devicesubsystem == "usb-serial") { if (!device) device = new TDEGenericDevice(TDEGenericDeviceType::Serial); } @@ -5281,6 +5287,9 @@ TQString TDEHardwareDevices::getFriendlyDeviceTypeStringFromType(TDEGenericDevic else if (query == TDEGenericDeviceType::ThermalControl) { ret = i18n("Thermal Control"); } + else if (query == TDEGenericDeviceType::BlueTooth) { + ret = i18n("BlueTooth"); + } else if (query == TDEGenericDeviceType::Bridge) { ret = i18n("Bridge"); } @@ -5433,6 +5442,9 @@ TQPixmap TDEHardwareDevices::getDeviceTypeIconFromType(TDEGenericDeviceType::TDE else if (query == TDEGenericDeviceType::ThermalControl) { ret = DesktopIcon("kcmdevices", size); // FIXME } + else if (query == TDEGenericDeviceType::BlueTooth) { + ret = DesktopIcon("kcmpci", size); // FIXME + } else if (query == TDEGenericDeviceType::Bridge) { ret = DesktopIcon("kcmpci", size); } |