6#include <PhosphorServiceUPower/phosphorserviceupower_export.h>
93 QObject* parent =
nullptr);
107 [[nodiscard]] QString
model() const;
133 void _q_onPropertiesChanged(const QString& iface, const QVariantMap& changed, const QStringList& invalidated);
137 std::unique_ptr<Private> d;
QString nativePath() const
DeviceType
Definition UPowerDevice.h:58
@ Toy
Definition UPowerDevice.h:86
@ Speakers
Definition UPowerDevice.h:77
@ Monitor
Definition UPowerDevice.h:63
@ GamingInput
Definition UPowerDevice.h:71
@ Mouse
Definition UPowerDevice.h:64
@ Camera
Definition UPowerDevice.h:84
@ LinePower
Definition UPowerDevice.h:60
@ UnknownType
Definition UPowerDevice.h:59
@ Printer
Definition UPowerDevice.h:82
@ Headset
Definition UPowerDevice.h:76
@ Tablet
Definition UPowerDevice.h:69
@ MediaPlayer
Definition UPowerDevice.h:68
@ Pen
Definition UPowerDevice.h:72
@ Scanner
Definition UPowerDevice.h:83
@ Network
Definition UPowerDevice.h:75
@ OtherAudio
Definition UPowerDevice.h:80
@ Pda
Definition UPowerDevice.h:66
@ Ups
Definition UPowerDevice.h:62
@ Keyboard
Definition UPowerDevice.h:65
@ Battery
Definition UPowerDevice.h:61
@ Touchpad
Definition UPowerDevice.h:73
@ Wearable
Definition UPowerDevice.h:85
@ RemoteControl
Definition UPowerDevice.h:81
@ Video
Definition UPowerDevice.h:79
@ BluetoothGeneric
Definition UPowerDevice.h:87
@ Headphones
Definition UPowerDevice.h:78
@ Computer
Definition UPowerDevice.h:70
@ Modem
Definition UPowerDevice.h:74
@ Phone
Definition UPowerDevice.h:67
qreal timeToEmpty() const
void energyCapacityChanged()
void isLaptopBatteryChanged()
bool isLaptopBattery() const
DeviceState state() const
DeviceState
Definition UPowerDevice.h:40
@ Empty
Definition UPowerDevice.h:44
@ FullyCharged
Definition UPowerDevice.h:45
@ Discharging
Definition UPowerDevice.h:43
@ PendingCharge
Definition UPowerDevice.h:46
@ UnknownState
Definition UPowerDevice.h:41
@ Charging
Definition UPowerDevice.h:42
@ PendingDischarge
Definition UPowerDevice.h:47
void energyFullDesignChanged()
void timeToEmptyChanged()
UPowerDevice(const QString &dbusPath, QObject *parent=nullptr)
qreal healthPercentage() const
qreal energyFullDesign() const
void powerSupplyChanged()
qreal energyCapacity() const
void healthPercentageChanged()
Definition QmlRegistration.h:8