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

#include <canrawsender.h>

Inheritance diagram for CanRawSender:
Collaboration diagram for CanRawSender:

Public Slots

void stopSimulation () override
 
void startSimulation () override
 
void simBcastRcv (const QJsonObject &msg, const QVariant &param) override
 

Signals

void sendFrame (const QCanBusFrame &frame)
 
void mainWidgetDockToggled (QWidget *widget) override
 
void simBcastSnd (const QJsonObject &msg, const QVariant &param=QVariant()) override
 

Public Member Functions

 CanRawSender ()
 
 CanRawSender (CanRawSenderCtx &&ctx)
 
 ~CanRawSender ()
 
int getLineCount () const
 
QWidget * mainWidget () override
 
void setConfig (const QJsonObject &json) override
 
void setConfig (const QWidget &qobject) override
 
QJsonObject getConfig () const override
 
std::shared_ptr< QWidget > getQConfig () const override
 
virtual void configChanged () override
 
bool mainWidgetDocked () const override
 
ComponentInterface::ComponentProperties getSupportedProperties () const override
 
- Public Member Functions inherited from ComponentInterface
virtual ~ComponentInterface ()
 
virtual void mainWidgetDockToggled (QWidget *widget)=0
 Signal to be implemented by Component. Indicates when dock/undock action was invoked.
 
virtual void stopSimulation ()=0
 Slot to be implemented by Component to execute simulation stop action.
 
virtual void startSimulation ()=0
 Slot to be implemented by Component to execute simulation start action.
 
virtual void simBcastSnd (const QJsonObject &msg, const QVariant &param=QVariant())=0
 
virtual void simBcastRcv (const QJsonObject &msg, const QVariant &param)=0
 

Additional Inherited Members

- Public Types inherited from ComponentInterface
using PropertyEditable = bool
 
using CustomEditFieldCbk = std::function< QWidget *(void)>
 
using ComponentProperty = std::tuple< QString, QVariant::Type, PropertyEditable, CustomEditFieldCbk >
 
using ComponentProperties = std::vector< ComponentProperty >
 
using PropertyContainer = std::map< QString, QVariant >
 
- Static Public Member Functions inherited from ComponentInterface
static constexpr const QString & propertyName (const ComponentProperty &p)
 
static constexpr const QVariant::Type & propertyType (const ComponentProperty &p)
 
static constexpr const PropertyEditablepropertyEditability (const ComponentProperty &p)
 
static constexpr const CustomEditFieldCbkpropertyField (const ComponentProperty &p)
 

Constructor & Destructor Documentation

◆ CanRawSender() [1/2]

CanRawSender::CanRawSender ( )

◆ CanRawSender() [2/2]

CanRawSender::CanRawSender ( CanRawSenderCtx &&  ctx)
explicit

◆ ~CanRawSender()

CanRawSender::~CanRawSender ( )

Member Function Documentation

◆ configChanged()

void CanRawSender::configChanged ( )
overridevirtual

◆ getConfig()

QJsonObject CanRawSender::getConfig ( ) const
overridevirtual

◆ getLineCount()

int CanRawSender::getLineCount ( ) const

◆ getQConfig()

std::shared_ptr< QWidget > CanRawSender::getQConfig ( ) const
overridevirtual

◆ getSupportedProperties()

ComponentInterface::ComponentProperties CanRawSender::getSupportedProperties ( ) const
overridevirtual

◆ mainWidget()

QWidget * CanRawSender::mainWidget ( )
overridevirtual

◆ mainWidgetDocked()

bool CanRawSender::mainWidgetDocked ( ) const
overridevirtual

◆ mainWidgetDockToggled

void CanRawSender::mainWidgetDockToggled ( QWidget *  widget)
overridesignal

◆ sendFrame

void CanRawSender::sendFrame ( const QCanBusFrame &  frame)
signal

◆ setConfig() [1/2]

void CanRawSender::setConfig ( const QJsonObject &  json)
overridevirtual

◆ setConfig() [2/2]

void CanRawSender::setConfig ( const QWidget &  qobject)
overridevirtual

◆ simBcastRcv

void CanRawSender::simBcastRcv ( const QJsonObject &  msg,
const QVariant &  param 
)
overrideslot

◆ simBcastSnd

void CanRawSender::simBcastSnd ( const QJsonObject &  msg,
const QVariant &  param = QVariant() 
)
overridesignal

◆ startSimulation

void CanRawSender::startSimulation ( )
overrideslot

◆ stopSimulation

void CanRawSender::stopSimulation ( )
overrideslot

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