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

#include <candevice_p.h>

Inheritance diagram for CanDevicePrivate:
Collaboration diagram for CanDevicePrivate:

Public Types

using devConfigPair = std::pair< int, QVariant >
 
using cf = ComponentInterface::CustomEditFieldCbk
 

Signals

void backendChanged (const QString &backend)
 

Public Member Functions

 CanDevicePrivate (CanDevice *q, CanDeviceCtx &&ctx=CanDeviceCtx(new CanDeviceQt()))
 
void saveSettings (QJsonObject &json)
 
bool restoreConfiguration (const QJsonObject &json)
 
std::vector< devConfigPairgetDevConfig ()
 

Public Attributes

CanDeviceCtx _ctx
 
QVector< QCanBusFrame > _sendQueue
 
CanDeviceInterface_canDevice
 
bool _initialized { false }
 
bool _simStarted { false }
 
const QString _nameProperty = "name"
 
const QString _backendProperty = "backend"
 
const QString _interfaceProperty = "interface"
 
const QString _configProperty = "configuration"
 
ComponentInterface::ComponentProperties _supportedProps
 
std::map< QString, QVariant > _props
 

Member Typedef Documentation

◆ cf

◆ devConfigPair

using CanDevicePrivate::devConfigPair = std::pair<int, QVariant>

Constructor & Destructor Documentation

◆ CanDevicePrivate()

CanDevicePrivate::CanDevicePrivate ( CanDevice q,
CanDeviceCtx &&  ctx = CanDeviceCtx(new CanDeviceQt()) 
)
inline

Member Function Documentation

◆ backendChanged

void CanDevicePrivate::backendChanged ( const QString &  backend)
signal

◆ getDevConfig()

std::vector< devConfigPair > CanDevicePrivate::getDevConfig ( )
inline

◆ restoreConfiguration()

bool CanDevicePrivate::restoreConfiguration ( const QJsonObject &  json)
inline

◆ saveSettings()

void CanDevicePrivate::saveSettings ( QJsonObject &  json)
inline

Member Data Documentation

◆ _backendProperty

const QString CanDevicePrivate::_backendProperty = "backend"

◆ _canDevice

CanDeviceInterface& CanDevicePrivate::_canDevice

◆ _configProperty

const QString CanDevicePrivate::_configProperty = "configuration"

◆ _ctx

CanDeviceCtx CanDevicePrivate::_ctx

◆ _initialized

bool CanDevicePrivate::_initialized { false }

◆ _interfaceProperty

const QString CanDevicePrivate::_interfaceProperty = "interface"

◆ _nameProperty

const QString CanDevicePrivate::_nameProperty = "name"

◆ _props

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

◆ _sendQueue

QVector<QCanBusFrame> CanDevicePrivate::_sendQueue

◆ _simStarted

bool CanDevicePrivate::_simStarted { false }

◆ _supportedProps

ComponentInterface::ComponentProperties CanDevicePrivate::_supportedProps

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