6#include <PhosphorServiceUPower/phosphorserviceupower_export.h>
10#include <QDBusObjectPath>
18class PHOSPHORSERVICEUPOWER_EXPORT
UPowerHost :
public QObject
31 UPowerHost(
const QDBusConnection& bus,
const QString& service, QObject* parent =
nullptr);
35 [[nodiscard]] QString
error()
const;
41 [[nodiscard]] QList<UPowerDevice*>
devices()
const;
53 void _q_onPropertiesChanged(
const QString& iface,
const QVariantMap& changed,
const QStringList& invalidated);
54 void _q_onDeviceAdded(
const QDBusObjectPath& path);
55 void _q_onDeviceRemoved(
const QDBusObjectPath& path);
59 std::unique_ptr<Private> d;
Definition UPowerDevice.h:18
void deviceCountChanged()
UPowerDevice * displayDevice() const
QList< UPowerDevice * > devices() const
void deviceAdded(PhosphorServiceUPower::UPowerDevice *device)
void deviceRemoved(PhosphorServiceUPower::UPowerDevice *device)
void availabilityChanged()
PhosphorServiceUPower::UPowerDevice * deviceAt(int index) const
UPowerHost(QObject *parent=nullptr)
void displayDeviceChanged()
UPowerHost(const QDBusConnection &bus, const QString &service, QObject *parent=nullptr)
Definition QmlRegistration.h:8