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

#include <canrawlogger.h>

Inheritance diagram for CanRawLogger:
Collaboration diagram for CanRawLogger:

Public Slots

void stopSimulation () override
 
void startSimulation () override
 
void frameReceived (const QCanBusFrame &frame)
 
void frameSent (bool status, const QCanBusFrame &frame)
 
void simBcastRcv (const QJsonObject &msg, const QVariant &param) override
 

Signals

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

Public Member Functions

 CanRawLogger ()
 
 CanRawLogger (CanRawLoggerCtx &&ctx)
 
 ~CanRawLogger ()
 
QWidget * mainWidget () override
 Gets components's main widget.
 
void setConfig (const QJsonObject &json) override
 Sets configuration for component.
 
void setConfig (const QWidget &qobject) override
 Sets configuration for component.
 
QJsonObject getConfig () const override
 Gets current component configuation.
 
std::shared_ptr< QWidget > getQConfig () const override
 Gets current component configuation.
 
void configChanged () override
 Reconfigure component if necessary.
 
bool mainWidgetDocked () const override
 Main widget docking status.
 
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

◆ CanRawLogger() [1/2]

CanRawLogger::CanRawLogger ( )

◆ CanRawLogger() [2/2]

CanRawLogger::CanRawLogger ( CanRawLoggerCtx &&  ctx)
explicit

◆ ~CanRawLogger()

CanRawLogger::~CanRawLogger ( )

Member Function Documentation

◆ configChanged()

void CanRawLogger::configChanged ( )
overridevirtual

Reconfigure component if necessary.

Implements ComponentInterface.

◆ frameReceived

void CanRawLogger::frameReceived ( const QCanBusFrame &  frame)
slot

◆ frameSent

void CanRawLogger::frameSent ( bool  status,
const QCanBusFrame &  frame 
)
slot

◆ getConfig()

QJsonObject CanRawLogger::getConfig ( ) const
overridevirtual

Gets current component configuation.

Returns
current config

Implements ComponentInterface.

◆ getQConfig()

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

Gets current component configuation.

Returns
current config

Implements ComponentInterface.

◆ getSupportedProperties()

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

Gets list of properties supported by this component

Returns
list of supported properties

Implements ComponentInterface.

◆ mainWidget()

QWidget * CanRawLogger::mainWidget ( )
overridevirtual

Gets components's main widget.

Returns
Main widget or nullptr if component doesn't have it

Implements ComponentInterface.

◆ mainWidgetDocked()

bool CanRawLogger::mainWidgetDocked ( ) const
overridevirtual

Main widget docking status.

Returns
returns true if widget is docked (part of MDI) or undocked (separate window)

Implements ComponentInterface.

◆ mainWidgetDockToggled

void CanRawLogger::mainWidgetDockToggled ( QWidget *  widget)
overridesignal

◆ setConfig() [1/2]

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

Sets configuration for component.

Parameters
jsonconfiguration to be aplied

Implements ComponentInterface.

◆ setConfig() [2/2]

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

Sets configuration for component.

Parameters
QWidgetconfiguration to be aplied

Implements ComponentInterface.

◆ simBcastRcv

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

◆ simBcastSnd

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

◆ startSimulation

void CanRawLogger::startSimulation ( )
overrideslot

◆ stopSimulation

void CanRawLogger::stopSimulation ( )
overrideslot

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