Commit 2907d7f5 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

Support Bluetooth batteries

Differential Revision: https://phabricator.kde.org/D17346
parent 93bd4cdb
......@@ -129,6 +129,8 @@ Item {
return "battery-ups";
case "GamingInput":
return "input-gaming-battery";
case "Bluetooth":
return "preferences-system-bluetooth-battery";
default:
return "";
}
......
......@@ -360,6 +360,9 @@ QString PowermanagementEngine::batteryType(const Solid::Battery* battery) const
case Solid::Battery::GamingInputBattery:
return QStringLiteral("GamingInput");
break;
case Solid::Battery::BluetoothBattery:
return QStringLiteral("Bluetooth");
break;
default:
return QStringLiteral("Unknown");
}
......
......@@ -404,7 +404,7 @@ bool SolidDeviceEngine::populateDeviceData(const QString &name)
batterytype << I18N_NOOP("Unknown Battery") << I18N_NOOP("PDA Battery") << I18N_NOOP("UPS Battery")
<< I18N_NOOP("Primary Battery") << I18N_NOOP("Mouse Battery") << I18N_NOOP("Keyboard Battery")
<< I18N_NOOP("Keyboard Mouse Battery") << I18N_NOOP("Camera Battery") << I18N_NOOP("Phone Battery")
<< I18N_NOOP("Monitor Battery") << I18N_NOOP("Gaming Input Battery");
<< I18N_NOOP("Monitor Battery") << I18N_NOOP("Gaming Input Battery") << I18N_NOOP("Bluetooth Battery");
QStringList chargestate;
chargestate << I18N_NOOP("Not Charging") << I18N_NOOP("Charging") << I18N_NOOP("Discharging") << I18N_NOOP("Fully Charged");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment