diff options
Diffstat (limited to 'src/hardware_battery.cpp')
-rw-r--r-- | src/hardware_battery.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/hardware_battery.cpp b/src/hardware_battery.cpp index 1018254..2ade257 100644 --- a/src/hardware_battery.cpp +++ b/src/hardware_battery.cpp @@ -279,35 +279,6 @@ bool Battery::checkBatteryType () { // For now just report any batteries as primary... type = BAT_PRIMARY; return true; - -#if 0 - if (dbus_HAL->halGetPropertyString(udi,"battery.type", &tmp_qstring)) { - if (tmp_qstring.compare("primary") == 0) { - type = BAT_PRIMARY; - } else if (tmp_qstring.compare("mouse") == 0) { - type = BAT_MOUSE; - } else if (tmp_qstring.compare("keyboard") == 0) { - type = BAT_KEYBOARD; - } else if (tmp_qstring.compare("keyboard_mouse") == 0) { - type = BAT_KEY_MOUSE; - } else if (tmp_qstring.compare("camera") == 0) { - type = BAT_CAMERA; - } else if (tmp_qstring.compare("ups") == 0) { - type = BAT_UPS; - } else { - //anything else will currently be "UNKNOWN" - type = BAT_UNKNOWN; - } - kdDebugFuncOut(trace); - return true; - } else { - //query was not successfull - kdWarning() << "Query of battery.type of " << udi << " was not successfull." << endl; - type = BAT_UNKNOWN; - kdDebugFuncOut(trace); - return false; - } -#endif } //! to check battery.technology |