ifw-fcf 6.0.0
Loading...
Searching...
No Matches
iodev.h
Go to the documentation of this file.
1
9#ifndef IODEV_WDG_H
10#define IODEV_WDG_H
11
14
15#include <QWidget>
16#include <QObject>
17#include <QTableWidgetItem>
18#include <rad/mal/subscriber.hpp>
19#include <rad/mal/utils.hpp>
20
21
22class QLabel;
23class QCheckBox;
24class QComboBox;
25class QSpinBox;
26class QPalette;
27
28
29namespace Ui {
30 class IODevWdg;
31}
32
33class IODevWdg : public DeviceWdg
34{
35 Q_OBJECT
36
37public:
38 explicit IODevWdg(QWidget *parent,
39 std::unique_ptr<utils::bat::DbInterface>& dbinterface,
40 const std::string& name,
42 const int& cmd_timeout = 60000);
43 virtual ~IODevWdg();
44
45 virtual void StartSubscription();
46 void GetMessage(std::shared_ptr<::elt::mal::Mal> mal,
47 std::vector<std::shared_ptr<::fcfif::SetupElem>>& setup_buffer,
48 bool ignoreChecked = false);
49
50 virtual void UpdateData();
51 virtual void GetDbAttributes();
52 virtual void SetEnable(bool flag);
53
54signals:
55
56
57public slots:
58 void UpdateSubstate(int substate);
59 void UpdateInputChannel(int index, QString channel, QString value);
60 void UpdateOutputChannel(int index, QString channel, QString value);
61 void SetActive(int row, int col);
62
63protected:
64 bool is_sensor{false};
65
66private:
67 Ui::IODevWdg *ui;
69 std::vector<std::string> m_channel_list;
70 std::vector<std::pair<std::string, std::string>> m_output_list;
71
72};
73
74#endif // IODEV_WDG_H
Definition: device.h:127
Definition: iodev.h:34
void UpdateOutputChannel(int index, QString channel, QString value)
Definition: iodev.cpp:260
void UpdateSubstate(int substate)
Definition: iodev.cpp:238
void UpdateInputChannel(int index, QString channel, QString value)
Definition: iodev.cpp:252
virtual void SetEnable(bool flag)
Definition: iodev.cpp:301
virtual void UpdateData()
Definition: iodev.cpp:190
virtual void StartSubscription()
Definition: iodev.cpp:317
bool is_sensor
Definition: iodev.h:64
virtual ~IODevWdg()
Definition: iodev.cpp:123
void GetMessage(std::shared_ptr<::elt::mal::Mal > mal, std::vector< std::shared_ptr<::fcfif::SetupElem > > &setup_buffer, bool ignoreChecked=false)
Definition: iodev.cpp:127
void SetActive(int row, int col)
Definition: iodev.cpp:310
virtual void GetDbAttributes()
Definition: iodev.cpp:270
sensor Configuration class
Definition: iodevConfig.hpp:143
WDGLIB DeviceWdg class declaration file.
IODevConfig class header file.
Definition: mainwindow.hpp:7