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

This class holds informations about all the columns in line and relationships beteewn them. More...

#include <newlinemanager.h>

Inheritance diagram for NewLineManager:
Collaboration diagram for NewLineManager:

Public Types

enum class  ColName {
  IdLine = 0 , DataLine , RemoteCheckBox , LoopCheckBox ,
  IntervalLine , SendButton
}
 
using ColNameIterator = EnumIterator< ColName, ColName::IdLine, ColName::SendButton >
 Iterator through ColName content.
 

Public Member Functions

 NewLineManager (CanRawSender *q, bool _simulationState, NLMFactoryInterface &factory)
 constructor
 
QWidget * GetColsWidget (ColNameIterator name)
 The function return information about an appropriate column.
 
void SetSimulationState (bool state)
 The function is responsible for set simulation state. The state influence for sending frame out and the internal timer (if was started before)
 
void Line2Json (QJsonObject &json) const
 The function is responsible for convert line content to json format.
 
bool RestoreLine (QString &id, QString data, bool remote, QString interval, bool loop, bool send)
 The function is responsible for restore line content from config.
 

Detailed Description

This class holds informations about all the columns in line and relationships beteewn them.

Member Typedef Documentation

◆ ColNameIterator

Iterator through ColName content.

Member Enumeration Documentation

◆ ColName

enum class NewLineManager::ColName
strong
Enumerator
IdLine 
DataLine 
RemoteCheckBox 
LoopCheckBox 
IntervalLine 
SendButton 

Constructor & Destructor Documentation

◆ NewLineManager()

NewLineManager::NewLineManager ( CanRawSender q,
bool  _simulationState,
NLMFactoryInterface factory 
)

constructor

Create new line manager class

Parameters
[in]qPointer to CanRawSender class
[in]_simulationStateActual simulation state
[in]factoryReference to the factory interface
Exceptions
ifCanRawSender pointer not exist

Member Function Documentation

◆ GetColsWidget()

QWidget * NewLineManager::GetColsWidget ( ColNameIterator  name)

The function return information about an appropriate column.

Parameters
[in]nameColumn name iterator
Returns
QWidget pointer to the column information, nullptr otherwise

◆ Line2Json()

void NewLineManager::Line2Json ( QJsonObject &  json) const

The function is responsible for convert line content to json format.

Parameters
[in]jsonJson object

◆ RestoreLine()

bool NewLineManager::RestoreLine ( QString &  id,
QString  data,
bool  remote,
QString  interval,
bool  loop,
bool  send 
)

The function is responsible for restore line content from config.

Parameters
[in]idId string
[in]dataData string
[in]intervalInterval string
[in]loopLoop enable state
Returns
true if new line is adopted all input data successfully, false otherwise

◆ SetSimulationState()

void NewLineManager::SetSimulationState ( bool  state)

The function is responsible for set simulation state. The state influence for sending frame out and the internal timer (if was started before)

Parameters
[in]stateActual simulator state

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