BluezQt::Battery Class

class BluezQt::Battery

Device battery. More...

Header: #include <BluezQt/Battery>
CMake: find_package(KF6 REQUIRED COMPONENTS BluezQt)
target_link_libraries(mytarget PRIVATE KF6::BluezQt)
Inherits: QObject

Properties

Public Functions

int percentage() const
BluezQt::BatteryPtr toSharedPtr() const

Signals

void percentageChanged(int percentage)

Detailed Description

This class represents a battery interface.

Property Documentation

[read-only] percentage : const int

Access functions:

int percentage() const

Notifier signal:

void percentageChanged(int percentage)

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.