33#include <NDEVR/Device.h>
Device(const Model &model, LogPtr log, QObject *parent=nullptr)
Constructs a Device from a Model with the given log and optional Qt parent.
fltp08 brightness() const
Returns the current brightness level of the light.
void lightActivatedSignal(bool activated)
Emitted when the light activation state changes.
virtual bool activated() const
Returns whether the light is currently activated.
Light(const Model &model, LogPtr log, QObject *parent=nullptr)
Constructs a Light device.
virtual void setBrightness(fltp08 brightness)
Sets the brightness level of the light.
virtual void setActivated(bool activated)
Activates or deactivates the light.
A light-weight wrapper that will be a no-op if there is not a valid log reference,...
Serves as the primary program interface for processes to report issues and allows any number of LogSt...
A core class that represents a node on model hierarchy.
The primary namespace for the NDEVR SDK.
double fltp08
Defines an alias representing an 8 byte floating-point number.