ifw-fcf 6.0.0
Loading...
Searching...
No Matches
Public Slots | Public Member Functions | Protected Attributes | List of all members
IODevWdg Class Reference

#include <iodev.h>

Inheritance diagram for IODevWdg:
DeviceWdg AbstractDevice

Public Slots

void UpdateSubstate (int substate)
 
void UpdateInputChannel (int index, QString channel, QString value)
 
void UpdateOutputChannel (int index, QString channel, QString value)
 
void SetActive (int row, int col)
 
- Public Slots inherited from DeviceWdg
void SetActive (int index)
 
void UpdateState (int state)
 
bool UpdateSubstate (int substate)
 
void UpdateSpinner (int substate)
 
void UpdateErrorMsg (std::string msg)
 
void HandleSetupButton ()
 

Public Member Functions

 IODevWdg (QWidget *parent, std::unique_ptr< utils::bat::DbInterface > &dbinterface, const std::string &name, fcf::devmgr::iodev::IODevConfig &config, const int &cmd_timeout=60000)
 
virtual ~IODevWdg ()
 
virtual void StartSubscription ()
 
void GetMessage (std::shared_ptr<::elt::mal::Mal > mal, std::vector< std::shared_ptr<::fcfif::SetupElem > > &setup_buffer, bool ignoreChecked=false)
 
virtual void UpdateData ()
 
virtual void GetDbAttributes ()
 
virtual void SetEnable (bool flag)
 
- Public Member Functions inherited from DeviceWdg
 DeviceWdg (QWidget *parent, std::unique_ptr< utils::bat::DbInterface > &dbinterface, const std::string &name, const int &cmd_timeout)
 
virtual ~DeviceWdg ()
 
std::string GetName ()
 
void Select ()
 
void Deselect ()
 
bool IsSelected ()
 
virtual void Stop ()
 
virtual void GetDbAttributes ()
 
virtual void UpdateData ()
 
virtual void SetEnable (bool flag)
 
virtual void Select ()=0
 
virtual void Deselect ()=0
 
virtual bool IsSelected ()=0
 
virtual void StartSubscription ()=0
 
virtual void GetMessage (std::shared_ptr<::elt::mal::Mal > mal, std::vector< std::shared_ptr<::fcfif::SetupElem > > &setup_buffer, bool ignoreChecked=false)=0
 
virtual void UpdateData ()=0
 
virtual void GetDbAttributes ()=0
 
virtual void Stop ()=0
 

Protected Attributes

bool is_sensor {false}
 
- Protected Attributes inherited from DeviceWdg
QTimer * m_spinner_timer
 
std::unique_ptr< utils::bat::DbInterface > & m_dbinterface
 
std::string m_name
 
int m_cmd_timeout
 
bool m_simulated
 
std::string m_lcs_prefix
 
std::string m_cfg_prefix
 
std::string m_stat_prefix
 
QString m_error_text {""}
 
QString m_error_tooltip {""}
 
std::vector< std::string > m_dbattribute_vector
 
CommonUi m_ui
 

Additional Inherited Members

- Signals inherited from DeviceWdg
void TriggerSetup (QString)
 
- Protected Member Functions inherited from DeviceWdg
void SetupCommonUi ()
 
void SetupInfoUi (const std::string &overview, const std::string &desc)
 
bool IsSimulated ()
 
void SetProperty (QPushButton *button, std::string property, bool flag)
 
void SetProperty (QRadioButton *button, std::string property, bool flag)
 
void SetProperty (QLabel *label, std::string property, bool flag)
 
void SetProperty (QComboBox *combo, std::string property, bool flag)
 
void SetProperty (QSpinBox *spin, std::string property, bool flag)
 
void SetProperty (QDoubleSpinBox *spin, std::string property, bool flag)
 

Constructor & Destructor Documentation

◆ IODevWdg()

IODevWdg::IODevWdg ( QWidget *  parent,
std::unique_ptr< utils::bat::DbInterface > &  dbinterface,
const std::string &  name,
fcf::devmgr::iodev::IODevConfig config,
const int &  cmd_timeout = 60000 
)
explicit

◆ ~IODevWdg()

IODevWdg::~IODevWdg ( )
virtual

Member Function Documentation

◆ GetDbAttributes()

void IODevWdg::GetDbAttributes ( )
virtual

Reimplemented from DeviceWdg.

◆ GetMessage()

void IODevWdg::GetMessage ( std::shared_ptr<::elt::mal::Mal >  mal,
std::vector< std::shared_ptr<::fcfif::SetupElem > > &  setup_buffer,
bool  ignoreChecked = false 
)
virtual

Implements AbstractDevice.

◆ SetActive

void IODevWdg::SetActive ( int  row,
int  col 
)
slot

◆ SetEnable()

void IODevWdg::SetEnable ( bool  flag)
virtual

Reimplemented from DeviceWdg.

◆ StartSubscription()

void IODevWdg::StartSubscription ( )
virtual

Implements AbstractDevice.

◆ UpdateData()

void IODevWdg::UpdateData ( )
virtual

Reimplemented from DeviceWdg.

◆ UpdateInputChannel

void IODevWdg::UpdateInputChannel ( int  index,
QString  channel,
QString  value 
)
slot

◆ UpdateOutputChannel

void IODevWdg::UpdateOutputChannel ( int  index,
QString  channel,
QString  value 
)
slot

◆ UpdateSubstate

void IODevWdg::UpdateSubstate ( int  substate)
slot

Member Data Documentation

◆ is_sensor

bool IODevWdg::is_sensor {false}
protected

The documentation for this class was generated from the following files: