summaryrefslogtreecommitdiffstats
path: root/src/hardware_battery.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2014-02-08 18:21:28 +0100
committerSlávek Banko <slavek.banko@axis.cz>2014-02-08 18:21:28 +0100
commitc68a1bac04c5cfdb0cdcbd91dc54995bfa05e292 (patch)
tree5a6bc1d0a5eba85862a2008df71bc6d273a13397 /src/hardware_battery.cpp
parent5c45c1a222eb91ea429f8c5245e32e43e7505582 (diff)
downloadtdepowersave-c68a1bac04c5cfdb0cdcbd91dc54995bfa05e292.tar.gz
tdepowersave-c68a1bac04c5cfdb0cdcbd91dc54995bfa05e292.zip
Switch from dbus-tqt do dbus-1-tqt
Add systemd session and inhibit support Cleanup unused methods This partially resolves Bug 1597
Diffstat (limited to 'src/hardware_battery.cpp')
-rw-r--r--src/hardware_battery.cpp29
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