2 * Copyright (C) 2014 Canonical, Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 * Author: Renato Araujo Oliveira Filho <renato.filho@canonical.com>
22#include <QtCore/QObject>
23#include <QtGui/QColor>
27class Lights: public QObject
30 Q_PROPERTY(State state READ state WRITE setState NOTIFY stateChanged)
31 Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged)
32 Q_PROPERTY(int onMillisec READ onMillisec WRITE setOnMillisec NOTIFY onMillisecChanged)
33 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;
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list