6#include <PhosphorServices/phosphorservices_export.h>
10#include <QDBusObjectPath>
19 Q_PROPERTY(
bool onBattery READ onBattery NOTIFY onBatteryChanged)
21 Q_PROPERTY(
int deviceCount READ deviceCount NOTIFY deviceCountChanged)
30 [[nodiscard]] QList<UPowerDevice*>
devices()
const;
41 void _q_onPropertiesChanged(
const QString& iface,
const QVariantMap& changed,
const QStringList& invalidated);
42 void _q_onDeviceAdded(
const QDBusObjectPath& path);
43 void _q_onDeviceRemoved(
const QDBusObjectPath& path);
47 std::unique_ptr<Private> d;
Definition UPowerDevice.h:16
Definition UPowerHost.h:17
void displayDeviceChanged()
void deviceRemoved(PhosphorServices::UPowerDevice *device)
void deviceCountChanged()
UPowerHost(QObject *parent=nullptr)
void deviceAdded(PhosphorServices::UPowerDevice *device)
QList< UPowerDevice * > devices() const
UPowerDevice * displayDevice() const
PhosphorServices::UPowerDevice * deviceAt(int index) const
Definition DBusMenuModel.h:15