Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef LEDS_H
00029 #define LEDS_H
00030
00031 #include <QtCore>
00032
00033 #include "QGpCoreToolsDLLExport.h"
00034
00035 namespace QGpCoreTools {
00036
00037 class QGPCORETOOLS_EXPORT Leds : public QObject
00038 {
00039 Q_OBJECT
00040 public:
00041 Leds(QObject * parent=0);
00042 ~Leds() {_self=0;}
00043
00044 static void timer(int index, int msecOn, int msecOff);
00045 static void power(int index, bool on);
00046 static void flash(int index, int msec, bool on);
00047 private slots:
00048 void execTimer0();
00049 void execTimer1();
00050 void execTimer2();
00051 private:
00052 bool test(int index);
00053 void setTrigger(int index, const char * type);
00054 void powerInternal(int index, bool on);
00055 void setDelayOn(int index, int msec);
00056 void setDelayOff(int index, int msec);
00057
00058 static Leds * _self;
00059 QTimer _timer[3];
00060 bool _defaultOn[3];
00061 };
00062
00063 }
00064
00065 #endif // LEDS_H