19 #ifndef UNITY_LIGHTS_H
20 #define UNITY_LIGHTS_H
22 #include <QtCore/QObject>
23 #include <QtGui/QColor>
25 struct light_device_t;
27 class Lights:
public QObject
31 Q_PROPERTY(State state READ state WRITE setState NOTIFY stateChanged)
32 Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged)
33 Q_PROPERTY(
int onMillisec READ onMillisec WRITE setOnMillisec NOTIFY onMillisecChanged)
34 Q_PROPERTY(
int offMillisec READ offMillisec WRITE setOffMillisec NOTIFY offMillisecChanged)
42 explicit Lights(QObject *parent = 0);
45 void setState(State newState);
48 void setColor(
const QColor &color);
51 int onMillisec()
const;
52 void setOnMillisec(
int onMs);
54 int offMillisec()
const;
55 void setOffMillisec(
int offMs);
58 void stateChanged(State newState);
59 void colorChanged(
const QColor &color);
60 void onMillisecChanged(
int onMs);
61 void offMillisecChanged(
int offMs);
64 light_device_t* m_lightDevice;