Pages
API Documentation
On this page

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:

Notifier signal:

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.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.