20 #include <QtCore/QDebug> 23 #include "android-hardware.h" 27 Lights::Lights(QObject* parent)
37 void Lights::setState(Lights::State newState)
40 qWarning() <<
"No lights device";
44 if (m_state != newState) {
45 if (newState == Lights::On) {
52 Q_EMIT stateChanged(m_state);
56 Lights::State Lights::state()
const 61 void Lights::setColor(
const QColor &color)
63 if (m_color != color) {
65 Q_EMIT colorChanged(m_color);
70 QColor Lights::color()
const 75 int Lights::onMillisec()
const 80 void Lights::setOnMillisec(
int onMs)
84 Q_EMIT onMillisecChanged(m_onMs);
89 int Lights::offMillisec()
const 94 void Lights::setOffMillisec(
int offMs)
96 if (m_offMs != offMs) {
98 Q_EMIT offMillisecChanged(m_offMs);