CANdevStudio
Development tool for CAN bus simulation
Loading...
Searching...
No Matches
CanRawSenderPrivate Class Reference

This class is responsible for manage can raw sender window. More...

#include <canrawsender_p.h>

Inheritance diagram for CanRawSenderPrivate:
Collaboration diagram for CanRawSenderPrivate:

Public Member Functions

 CanRawSenderPrivate (CanRawSender *q, CanRawSenderCtx &&ctx=CanRawSenderCtx(new CRSGui, new NLMFactory))
 constructor
 
virtual ~CanRawSenderPrivate ()=default
 destructor
 
void setSimulationState (bool state)
 This method propagates the system simulator state.
 
void saveSettings (QJsonObject &json) const
 This method writes to json format actual can raw sender window properties.
 
int getLineCount () const
 This method returns actual number of lines in table.
 
bool restoreConfiguration (const QJsonObject &json)
 Used to restore rawsender configurations.
 
ComponentInterface::ComponentProperties getSupportedProperties () const
 Used to get list of properties supported by component.
 

Public Attributes

CanRawSenderCtx _ctx
 
CRSGuiInterface_ui
 
NLMFactoryInterface_nlmFactory
 
bool docked { true }
 
std::map< QString, QVariant > _props
 

Detailed Description

This class is responsible for manage can raw sender window.

Constructor & Destructor Documentation

◆ CanRawSenderPrivate()

CanRawSenderPrivate::CanRawSenderPrivate ( CanRawSender q,
CanRawSenderCtx &&  ctx = CanRawSenderCtx(new CRSGui, new NLMFactory) 
)
inline

constructor

Create new CanRawSenderPrivate class

Parameters
[in]qPointer to CanRawSender class
[in]ctxCanRawSender context

◆ ~CanRawSenderPrivate()

virtual CanRawSenderPrivate::~CanRawSenderPrivate ( )
virtualdefault

destructor

Member Function Documentation

◆ getLineCount()

int CanRawSenderPrivate::getLineCount ( ) const

This method returns actual number of lines in table.

Returns
Line count

◆ getSupportedProperties()

ComponentInterface::ComponentProperties CanRawSenderPrivate::getSupportedProperties ( ) const

Used to get list of properties supported by component.

Returns
supported properties

◆ restoreConfiguration()

bool CanRawSenderPrivate::restoreConfiguration ( const QJsonObject &  json)

Used to restore rawsender configurations.

Parameters
[in]jsonConstant reference to json object
Returns
true if configuration was adopted successfully, false otherwise

◆ saveSettings()

void CanRawSenderPrivate::saveSettings ( QJsonObject &  json) const

This method writes to json format actual can raw sender window properties.

Parameters
[in]jsonJson object

◆ setSimulationState()

void CanRawSenderPrivate::setSimulationState ( bool  state)

This method propagates the system simulator state.

Parameters
[in]stateActual simulator state

Member Data Documentation

◆ _ctx

CanRawSenderCtx CanRawSenderPrivate::_ctx

◆ _nlmFactory

NLMFactoryInterface& CanRawSenderPrivate::_nlmFactory

◆ _props

std::map<QString, QVariant> CanRawSenderPrivate::_props

◆ _ui

CRSGuiInterface& CanRawSenderPrivate::_ui

◆ docked

bool CanRawSenderPrivate::docked { true }

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