summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw/tdebatterydevice.cpp
Commit message (Collapse)AuthorAgeFilesLines
* tdehwlib: Adjusted parsing of battery informationSlávek Banko2020-01-081-1/+8
| | | | | | | | | | | | | | | | | | | | | | + Added initialization of all values Some batteries do not provide all values and, without initialization, values may contain dubious data. + Added reading of current battery capacity value in percent (capacity) Some batteries may provide the current capacity value in percent instead of the current energy value. + Added check whether the battery provides current energy value (charge_now or energy_now) The current energy is calculated if the value is not provided in the battery information. + Added reading of estimated time to empty battery (time_to_empty_now) The remaining time is calculated if the value is not provided in the battery information. If the battery does not provide charging current information, the estimated time to charge the battery cannot be calculated. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* complete tdehardwaredevices splitGolubev Alexander2013-07-271-0/+2
|
* tdehw: three more classes splitedGolubev Alexander2013-07-271-0/+149