1#ifndef CANSIGNALSENDER_H
2#define CANSIGNALSENDER_H
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;
35 void simBcastSnd(
const QJsonObject &msg,
const QVariant ¶m = QVariant())
override;
37 void sendSignal(
const QString& name,
const QVariant& val);
42 void simBcastRcv(
const QJsonObject &msg,
const QVariant ¶m)
override;
45 QScopedPointer<CanSignalSenderPrivate> d_ptr;
Context< CanSignalSenderGuiInt > CanSignalSenderCtx
Definition cansignalsender.h:13
Definition cansignalsender.h:15
void setConfig(const QJsonObject &json) override
Sets configuration for component.
Definition cansignalsender.cpp:28
std::shared_ptr< QWidget > getQConfig() const override
Gets current component configuation.
Definition cansignalsender.cpp:49
ComponentInterface::ComponentProperties getSupportedProperties() const override
Definition cansignalsender.cpp:70
bool mainWidgetDocked() const override
Main widget docking status.
Definition cansignalsender.cpp:65
~CanSignalSender()
Definition cansignalsender.cpp:19
void startSimulation() override
Definition cansignalsender.cpp:82
CanSignalSender()
Definition cansignalsender.cpp:9
void stopSimulation() override
Definition cansignalsender.cpp:75
void mainWidgetDockToggled(QWidget *widget) override
void configChanged() override
Reconfigure component if necessary.
Definition cansignalsender.cpp:63
void simBcastSnd(const QJsonObject &msg, const QVariant ¶m=QVariant()) override
void simBcastRcv(const QJsonObject &msg, const QVariant ¶m) override
Definition cansignalsender.cpp:89
QJsonObject getConfig() const override
Gets current component configuation.
Definition cansignalsender.cpp:44
QWidget * mainWidget() override
Gets components's main widget.
Definition cansignalsender.cpp:21
void sendSignal(const QString &name, const QVariant &val)
Definition cansignalsender_p.h:16
Definition cansignalsenderguiint.h:13
Interface to be implemented by every component.
Definition componentinterface.h:15
std::vector< ComponentProperty > ComponentProperties
Definition componentinterface.h:66