CFEL - ASG Software Suite  2.5.0
CASS
status_led.h
Go to the documentation of this file.
1 // Copyright (C) 2013 Lutz Foucar
2 
3 /**
4  * @file status_led.h contains the status led class
5  *
6  * @author Lutz Foucar
7  */
8 
9 #ifndef _STATUS_LED_H_
10 #define _STATUS_LED_H_
11 
12 #include "led.h"
13 
14 namespace jocassview
15 {
16 
17 /** a LED that should display the status
18  *
19  * @author unknown
20  * @author Lutz Foucar
21  */
22 class StatusLED : public LED
23 {
24  Q_OBJECT
25 
26 public:
27  /** enum describing the possible states of the LED */
28  enum{fail,ok,off,busy};
29 
30  /** constructor
31  *
32  * @param parent the parent of this widget
33  */
34  StatusLED(QWidget *parent=0);
35 
36 public slots:
37  /** set the status
38  *
39  * @param status the status that should be reflected by this
40  */
41  void setStatus(int status);
42 
43 private slots:
44  /** turn the led of */
45  void turnOff();
46 
47 private:
48  /** the turn off timer */
50 };
51 
52 }//end namespace jocassview
53 
54 #endif
a LED that should display the status
Definition: status_led.h:22
QTimer _offTimer
the turn off timer
Definition: status_led.h:49
StatusLED(QWidget *parent=0)
constructor
Definition: status_led.cpp:32
Definition: led.h:15
void turnOff()
turn the led of
Definition: status_led.cpp:74
void setStatus(int status)
set the status
Definition: status_led.cpp:41
an led in qt
and the shutter status[Processor]