Changeset View
Changeset View
Standalone View
Standalone View
dataengines/soliddevice/soliddeviceengine.cpp
Show First 20 Lines • Show All 398 Lines • ▼ Show 20 Line(s) | 395 | if (device.is<Solid::Battery>()) { | |||
---|---|---|---|---|---|
399 | } | 399 | } | ||
400 | 400 | | |||
401 | devicetypes << I18N_NOOP("Battery"); | 401 | devicetypes << I18N_NOOP("Battery"); | ||
402 | 402 | | |||
403 | QStringList batterytype; | 403 | QStringList batterytype; | ||
404 | batterytype << I18N_NOOP("Unknown Battery") << I18N_NOOP("PDA Battery") << I18N_NOOP("UPS Battery") | 404 | batterytype << I18N_NOOP("Unknown Battery") << I18N_NOOP("PDA Battery") << I18N_NOOP("UPS Battery") | ||
405 | << I18N_NOOP("Primary Battery") << I18N_NOOP("Mouse Battery") << I18N_NOOP("Keyboard Battery") | 405 | << I18N_NOOP("Primary Battery") << I18N_NOOP("Mouse Battery") << I18N_NOOP("Keyboard Battery") | ||
406 | << I18N_NOOP("Keyboard Mouse Battery") << I18N_NOOP("Camera Battery") << I18N_NOOP("Phone Battery") | 406 | << I18N_NOOP("Keyboard Mouse Battery") << I18N_NOOP("Camera Battery") << I18N_NOOP("Phone Battery") | ||
407 | << I18N_NOOP("Monitor Battery") << I18N_NOOP("Gaming Input Battery"); | 407 | << I18N_NOOP("Monitor Battery") << I18N_NOOP("Gaming Input Battery") << I18N_NOOP("Bluetooth Battery"); | ||
408 | 408 | | |||
409 | QStringList chargestate; | 409 | QStringList chargestate; | ||
410 | chargestate << I18N_NOOP("Not Charging") << I18N_NOOP("Charging") << I18N_NOOP("Discharging") << I18N_NOOP("Fully Charged"); | 410 | chargestate << I18N_NOOP("Not Charging") << I18N_NOOP("Charging") << I18N_NOOP("Discharging") << I18N_NOOP("Fully Charged"); | ||
411 | 411 | | |||
412 | setData(name, I18N_NOOP("Plugged In"), battery->isPresent()); // FIXME Rename when interested parties are adjusted | 412 | setData(name, I18N_NOOP("Plugged In"), battery->isPresent()); // FIXME Rename when interested parties are adjusted | ||
413 | setData(name, I18N_NOOP("Type"), batterytype.value((int)battery->type())); | 413 | setData(name, I18N_NOOP("Type"), batterytype.value((int)battery->type())); | ||
414 | setData(name, I18N_NOOP("Charge Percent"), battery->chargePercent()); | 414 | setData(name, I18N_NOOP("Charge Percent"), battery->chargePercent()); | ||
415 | setData(name, I18N_NOOP("Rechargeable"), battery->isRechargeable()); | 415 | setData(name, I18N_NOOP("Rechargeable"), battery->isRechargeable()); | ||
▲ Show 20 Lines • Show All 296 Lines • Show Last 20 Lines |