12 #include <rad/smAdapter.hpp>
17 #include <QtWidgets/QLabel>
25 m_spinner(nullptr) {};
60 m_substate = substate;
115 explicit DeviceWdg(QWidget *parent, std::string name,
int cmd_timeout);
122 virtual void GetDbAttributes(std::string server_id, std::vector<std::string>& vector);
123 virtual void UpdateData(QList<QVariant>& data_list);
151 #endif // DEVICE_WDG_H
QLabel * GetName()
Definition: device.h:31
virtual void GetDbAttributes(std::string server_id, std::vector< std::string > &vector)
Definition: device.cpp:167
std::string m_name
Definition: device.h:144
QLabel * GetState()
Definition: device.h:55
void UpdateState(int state)
Definition: device.cpp:132
bool m_simulated
Definition: device.h:146
void SetEnable(QCheckBox *enable)
Definition: device.h:35
void SetSim(QLabel *sim)
Definition: device.h:67
virtual ~DeviceWdg()
Definition: device.cpp:30
int m_cmd_timeout
Definition: device.h:145
QCheckBox * GetEnable()
Definition: device.h:39
void SetLocal(QLabel *local)
Definition: device.h:75
CommonUi m_ui
Definition: device.h:147
bool IsSelected()
Definition: device.cpp:65
void TriggerSetup(QString)
QLabel * GetSim()
Definition: device.h:71
void Deselect()
Definition: device.cpp:61
virtual void UpdateData(QList< QVariant > &data_list)
Definition: device.cpp:195
DeviceWdg(QWidget *parent, std::string name, int cmd_timeout)
Definition: device.cpp:23
QTimer * m_spinner_timer
Definition: device.h:143
void HandleSetupButton()
Definition: device.cpp:162
QLabel * GetSubstate()
Definition: device.h:63
WDGLIB AbstractDevice class declaration file.
void SetError(QLabel *error)
Definition: device.h:83
bool IsSimulated()
Definition: device.cpp:284
void SetSpinner(Spinner *spinner)
Definition: device.h:43
QFrame * GetFrame()
Definition: device.h:95
void Select()
Definition: device.cpp:57
void UpdateErrorMsg(std::string msg)
Definition: device.cpp:147
bool UpdateSubstate(int substate)
Definition: device.cpp:75
Spinner * GetSpinner()
Definition: device.h:47
Definition: abstractDevice.h:21
QLabel * GetLocal()
Definition: device.h:79
void UpdateSpinner(int substate)
Definition: device.cpp:108
void SetupCommonUi()
Definition: device.cpp:34
void SetSubstate(QLabel *substate)
Definition: device.h:59
void SetState(QLabel *state)
Definition: device.h:51
QLabel * GetError()
Definition: device.h:87
void SetName(QLabel *name)
Definition: device.h:27
std::string GetName()
Definition: device.cpp:53
virtual void SetEnable(bool flag)
Definition: device.cpp:237
void SetActive(int index)
Definition: device.cpp:70
virtual void Stop()
Definition: device.cpp:157
CommonUi()
Definition: device.h:24
void SetFrame(QFrame *frame)
Definition: device.h:91