BluezQt::Battery Class
Device battery. More...
- Header:
#include <BluezQt/Battery> - CMake:
find_package(KF6 REQUIRED COMPONENTS BluezQt)
target_link_libraries(mytarget PRIVATE KF6::BluezQt) - Inherits: QObject
List of all members, including inherited members
Properties
Public Functions
Signals
Detailed Description
This class represents a battery interface.
Property Documentation
[read-only] percentage : int
Access functions:
intpercentage() const
Notifier signal:
voidpercentageChanged(intpercentage)
Member Function Documentation
int Battery::percentage() const
Returns the battery percentage.
Note: Getter function for property percentage.
[signal] void Battery::percentageChanged(int percentage)
Indicates that battery's percentage has changed.
Note: Notifier signal for property percentage.
BluezQt::BatteryPtr Battery::toSharedPtr() const
Returns a shared pointer from this.