ifw-fcf  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
actuator.h
Go to the documentation of this file.
1 
9 #ifndef ACTUATOR_WDG_H
10 #define ACTUATOR_WDG_H
11 
12 #include "fcf/gui/wdglib/device.h"
13 #include <QWidget>
14 #include <QObject>
15 #include <rad/mal/subscriber.hpp>
16 #include <rad/mal/utils.hpp>
17 
18 class QLabel;
19 class QCheckBox;
20 class QComboBox;
21 class QSpinBox;
22 class QPalette;
23 
24 namespace Ui {
25  class ActuatorWdg;
26 }
27 
28 class ActuatorWdg : public DeviceWdg
29 {
30  Q_OBJECT
31 
32 public:
33  explicit ActuatorWdg(QWidget *parent = 0, std::string name = "undefined", int cmd_timeout = 60000);
34  virtual ~ActuatorWdg();
35 
36  virtual void StartSubscription();
37  void GetMessage(std::shared_ptr<::elt::mal::Mal> mal,
38  std::vector<std::shared_ptr<::fcfif::FcsUnion>>& setup_buffer,
39  bool ignoreChecked = false);
40  virtual void GetSubordinatedDevices(QStringList& dev_list);
41  virtual void UpdateData(QList<QVariant>& data_list);
42  virtual std::vector<std::string> GetDbAttributes(std::string server_id);
43  virtual void SetEnable(bool flag);
44 
45 signals:
46 
47 public slots:
48  void UpdateSubstate(int substate);
49  void UpdateSpinner(int substate);
50 
51 private:
52 
53  Ui::ActuatorWdg* ui;
54  QList< QWidget* > m_widget_list;
55  QWidget* m_parent;
56  std::unique_ptr<rad::cii::Subscriber<fcfif::ActuatorTopicUnion>> m_subscriber;
57 
58 };
59 
60 #endif // ACTUATOR_WDG_H
Definition: device.h:112
ActuatorWdg(QWidget *parent=0, std::string name="undefined", int cmd_timeout=60000)
Definition: actuator.cpp:20
void GetMessage(std::shared_ptr<::elt::mal::Mal > mal, std::vector< std::shared_ptr<::fcfif::FcsUnion >> &setup_buffer, bool ignoreChecked=false)
Definition: actuator.cpp:57
Definition: actuator.h:28
virtual ~ActuatorWdg()
Definition: actuator.cpp:53
void UpdateSubstate(int substate)
Definition: actuator.cpp:94
virtual void GetSubordinatedDevices(QStringList &dev_list)
Definition: actuator.cpp:184
void UpdateSpinner(int substate)
Definition: actuator.cpp:137
virtual void StartSubscription()
Definition: actuator.cpp:189
virtual void SetEnable(bool flag)
Definition: actuator.cpp:165
WDGLIB DeviceWdg class declaration file.
virtual std::vector< std::string > GetDbAttributes(std::string server_id)
Definition: actuator.cpp:76
virtual void UpdateData(QList< QVariant > &data_list)
Definition: actuator.cpp:84