ifw-fcf  2.0.0
Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DeviceWdg Class Reference

#include <device.h>

Inheritance diagram for DeviceWdg:
AbstractDevice ActuatorWdg AdcWdg DrotWdg LampWdg MotorWdg PiezoWdg SensorWdg ShutterWdg

Public Slots

void SetActive (int index)
 
void UpdateState (int state)
 
bool UpdateSubstate (int substate)
 
void UpdateSpinner (int substate)
 
void UpdateErrorMsg (std::string msg)
 
void HandleSetupButton ()
 

Signals

void TriggerSetup (QString)
 

Public Member Functions

 DeviceWdg (QWidget *parent, const std::string &name, const std::string &ps_endpoint, const int &cmd_timeout)
 
virtual ~DeviceWdg ()
 
std::string GetName ()
 
void Select ()
 
void Deselect ()
 
bool IsSelected ()
 
virtual void Stop ()
 
virtual void GetDbAttributes (std::string server_id, std::vector< std::string > &vector)
 
virtual void UpdateData (QList< QVariant > &data_list)
 
virtual void SetEnable (bool flag)
 
- Public Member Functions inherited from AbstractDevice
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 GetSubordinatedDevices (QStringList &dev_list)=0
 
virtual std::vector< std::string > GetDbAttributes (std::string server_id)=0
 

Protected Member Functions

void SetupCommonUi ()
 
bool IsSimulated ()
 

Protected Attributes

QTimer * m_spinner_timer
 
std::string m_name
 
std::string m_ps_endpoint
 
int m_cmd_timeout
 
bool m_simulated
 
CommonUi m_ui
 

Constructor & Destructor Documentation

◆ DeviceWdg()

DeviceWdg::DeviceWdg ( QWidget *  parent,
const std::string &  name,
const std::string &  ps_endpoint,
const int &  cmd_timeout 
)
explicit

◆ ~DeviceWdg()

DeviceWdg::~DeviceWdg ( )
virtual

Member Function Documentation

◆ Deselect()

void DeviceWdg::Deselect ( )
virtual

Implements AbstractDevice.

◆ GetDbAttributes()

void DeviceWdg::GetDbAttributes ( std::string  server_id,
std::vector< std::string > &  vector 
)
virtual

◆ GetName()

std::string DeviceWdg::GetName ( )

◆ HandleSetupButton

void DeviceWdg::HandleSetupButton ( )
slot

◆ IsSelected()

bool DeviceWdg::IsSelected ( )
virtual

Implements AbstractDevice.

◆ IsSimulated()

bool DeviceWdg::IsSimulated ( )
protected

◆ Select()

void DeviceWdg::Select ( )
virtual

Implements AbstractDevice.

◆ SetActive

void DeviceWdg::SetActive ( int  index)
slot

◆ SetEnable()

void DeviceWdg::SetEnable ( bool  flag)
virtual

◆ SetupCommonUi()

void DeviceWdg::SetupCommonUi ( )
protected

◆ Stop()

void DeviceWdg::Stop ( )
virtual

Implements AbstractDevice.

◆ TriggerSetup

void DeviceWdg::TriggerSetup ( QString  )
signal

◆ UpdateData()

void DeviceWdg::UpdateData ( QList< QVariant > &  data_list)
virtual

◆ UpdateErrorMsg

void DeviceWdg::UpdateErrorMsg ( std::string  msg)
slot

◆ UpdateSpinner

void DeviceWdg::UpdateSpinner ( int  substate)
slot

◆ UpdateState

void DeviceWdg::UpdateState ( int  state)
slot

◆ UpdateSubstate

bool DeviceWdg::UpdateSubstate ( int  substate)
slot

Member Data Documentation

◆ m_cmd_timeout

int DeviceWdg::m_cmd_timeout
protected

◆ m_name

std::string DeviceWdg::m_name
protected

◆ m_ps_endpoint

std::string DeviceWdg::m_ps_endpoint
protected

◆ m_simulated

bool DeviceWdg::m_simulated
protected

◆ m_spinner_timer

QTimer* DeviceWdg::m_spinner_timer
protected

◆ m_ui

CommonUi DeviceWdg::m_ui
protected

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