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