6#include <PhosphorServiceBrightness/phosphorservicebrightness_export.h>
54 BrightnessHost(QString sysfsRoot, QDBusConnection connection, QString service, QString sessionPath,
55 QObject* parent =
nullptr);
59 [[nodiscard]] QList<BrightnessDevice*>
devices()
const;
78 std::unique_ptr<Private> d;
One brightness-controllable backlight: a display panel (under /sys/class/backlight) or a keyboard bac...
Definition BrightnessDevice.h:33
BrightnessHost(QString sysfsRoot, QDBusConnection connection, QString service, QString sessionPath, QObject *parent=nullptr)
Injectable wiring for tests / advanced consumers.
PhosphorServiceBrightness::BrightnessDevice * deviceAt(int index) const
~BrightnessHost() override
void deviceRemoved(PhosphorServiceBrightness::BrightnessDevice *device)
The counterpart to deviceAdded, for dynamic sources that can drop a device at runtime.
void deviceCountChanged()
BrightnessHost(QObject *parent=nullptr)
Production wiring: the real sysfs root (/sys), the system bus, and the logind session resolved from t...
void deviceAdded(PhosphorServiceBrightness::BrightnessDevice *device)
Sysfs devices are added synchronously at construction; external displays (DDC/CI) arrive asynchronous...
QList< BrightnessDevice * > devices() const
Definition BrightnessDevice.h:16