4#include <QScopedPointer>
41 void setConfig(
const QJsonObject& json)
override;
46 void setConfig(
const QWidget& qobject)
override;
56 std::shared_ptr<QWidget>
getQConfig()
const override;
76 void frameSent(
bool status,
const QCanBusFrame& frame);
82 void simBcastSnd(
const QJsonObject &msg,
const QVariant ¶m = QVariant())
override;
85 void sendFrame(
const QCanBusFrame& frame);
97 void simBcastRcv(
const QJsonObject &msg,
const QVariant ¶m)
override;
100 void errorOccurred(
int error);
101 void framesWritten(qint64 cnt);
102 void framesReceived();
105 QScopedPointer<CanDevicePrivate> d_ptr;
The class provides abstraction layer for CAN BUS hardware.
Definition candevice.h:15
bool init()
Configures CAN BUS backend and interface.
Definition candevice.cpp:20
bool mainWidgetDocked() const override
Definition candevice.cpp:200
void simBcastRcv(const QJsonObject &msg, const QVariant ¶m) override
Definition candevice.cpp:217
~CanDevice()
Definition candevice.cpp:18
void simBcastSnd(const QJsonObject &msg, const QVariant ¶m=QVariant()) override
virtual void configChanged() override
Definition candevice.cpp:206
void sendFrame(const QCanBusFrame &frame)
Definition candevice.cpp:58
CanDevice()
Definition candevice.cpp:8
void startSimulation() override
Definition candevice.cpp:149
std::shared_ptr< QWidget > getQConfig() const override
Definition candevice.cpp:142
void frameReceived(const QCanBusFrame &frame)
void stopSimulation() override
Definition candevice.cpp:180
QJsonObject getConfig() const override
Definition candevice.cpp:126
QWidget * mainWidget() override
Definition candevice.cpp:194
void setConfig(const QJsonObject &json) override
Definition candevice.cpp:120
void frameSent(bool status, const QCanBusFrame &frame)
ComponentProperties getSupportedProperties() const override
Definition candevice.cpp:75
void mainWidgetDockToggled(QWidget *widget) override
Definition candevice_p.h:13
Interface to be implemented by every component.
Definition componentinterface.h:15
std::vector< ComponentProperty > ComponentProperties
Definition componentinterface.h:66