phosphor-service-upower
Battery and power-device status via UPower.
Exposes the system-bus org.freedesktop.UPower surface as Qt and QML types: the aggregate display device, the per-device list, and the OnBattery flag. It is a read-only D-Bus client, since UPower has no writable surface for the facts it reports. A shell binds the host's displayDevice for a single-battery indicator or the device model for a per-device list.
Key types
UPowerHostonBattery, displayDevice (aggregate battery), add/remove signals.UPowerDevicepercentage, state, type, timeToEmpty, iconName, healthPercentage.UPowerDeviceModelQAbstractListModel over the host's devices for QML.Dependencies
QtCoreQtQmlQtDBus
See also
References
- Library overview → The library's design notes in the API reference.
- Namespace index → Every symbol under
PhosphorServiceUPower::. - API reference → Classes, namespaces and D-Bus interfaces across every library.