Solid
battery.cpp
Go to the documentation of this file.
int chargePercent() const
Retrieves the current charge level of the battery normalised to percent.
int capacity() const
Retrieves the battery capacity normalised to percent, meaning how much energy can it hold compared to...
#define return_SOLID_CALL(Type, Object, Default, Method)
Definition: soliddefs_p.h:26
bool isPowerSupply() const
Indicates if this battery is powering the machine or from an attached deviced.
Definition: battery.cpp:57
BatteryType
This enum type defines the type of the device holding the battery.
Definition: battery.h:65
ChargeState chargeState() const
Retrieves the current charge state of the battery.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.