5#include <QtCore/QScopedPointer>
25 void setConfig(
const QJsonObject& json)
override;
26 void setConfig(
const QWidget& qobject)
override;
28 std::shared_ptr<QWidget>
getQConfig()
const override;
36 void simBcastSnd(
const QJsonObject &msg,
const QVariant ¶m = QVariant())
override;
41 void frameIn(
const QCanBusFrame& frame);
42 void simBcastRcv(
const QJsonObject &msg,
const QVariant ¶m)
override;
45 QScopedPointer<CanLoadPrivate> d_ptr;
Context CanLoadCtx
Definition canload.h:13
QWidget * mainWidget() override
Gets components's main widget.
Definition canload.cpp:21
void simBcastRcv(const QJsonObject &msg, const QVariant ¶m) override
Definition canload.cpp:104
CanLoad()
Definition canload.cpp:7
~CanLoad()
Definition canload.cpp:17
bool mainWidgetDocked() const override
Main widget docking status.
Definition canload.cpp:60
void configChanged() override
Reconfigure component if necessary.
Definition canload.cpp:56
void currentLoad(uint8_t load)
ComponentInterface::ComponentProperties getSupportedProperties() const override
Definition canload.cpp:66
void simBcastSnd(const QJsonObject &msg, const QVariant ¶m=QVariant()) override
void stopSimulation() override
Definition canload.cpp:71
void setConfig(const QJsonObject &json) override
Sets configuration for component.
Definition canload.cpp:27
void mainWidgetDockToggled(QWidget *widget) override
QJsonObject getConfig() const override
Gets current component configuation.
Definition canload.cpp:44
std::shared_ptr< QWidget > getQConfig() const override
Gets current component configuation.
Definition canload.cpp:49
void frameIn(const QCanBusFrame &frame)
Definition canload.cpp:95
void startSimulation() override
Definition canload.cpp:82
Definition canload_p.h:12
Interface to be implemented by every component.
Definition componentinterface.h:15
std::vector< ComponentProperty > ComponentProperties
Definition componentinterface.h:66