service/upower: add power-profiles support

This commit is contained in:
outfoxxed 2025-01-02 21:54:36 -08:00
parent 66b9917e70
commit 47bcf8ee61
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E
6 changed files with 462 additions and 2 deletions

View file

@ -54,6 +54,14 @@ private:
DBusUPowerService* service = nullptr;
};
///! Provides access to the UPower service.
/// An interface to the [UPower daemon], which can be used to
/// view battery and power statistics for your computer and
/// connected devices.
///
/// > [!NOTE] The UPower daemon must be installed to use this service.
///
/// [UPower daemon]: https://upower.freedesktop.org
class UPowerQml: public QObject {
Q_OBJECT;
QML_NAMED_ELEMENT(UPower);