1 #ifndef DATASTREAM_MQTT_H 2 #define DATASTREAM_MQTT_H 10 #include "ui_datastream_mqtt.h" 18 Q_PLUGIN_METADATA(IID
"facontidavide.PlotJuggler3.DataStreamer")
26 virtual bool start(QStringList*)
override;
30 virtual bool isRunning()
const override;
32 virtual const char*
name()
const override 34 return "MQTT Subscriber (Mosquitto)";
44 return { _notification_action, _failed_parsing };
49 void onComboProtocolChanged(
const QString &);
51 void onMessageReceived(
const mosquitto_message* message);
57 std::unordered_map<std::string, PJ::MessageParserPtr>
_parsers;
67 int _failed_parsing = 0;
74 #endif // DATASTREAM_MQTT_H std::pair< QAction *, int > notificationAction() override
Gets the action to execute when clicking the 'notifications' button and the current number of outstan...
std::shared_ptr< MQTTClient > Ptr
std::unordered_map< std::string, PJ::MessageParserPtr > _parsers
The DataStreamer base classm used to read streaming of data.
std::shared_ptr< ParserFactoryPlugin > Ptr
ParserFactoryPlugin::Ptr _current_parser_creator
virtual const char * name() const override
Name of the plugin type, NOT the particular instance.
QAction * _notification_action
virtual bool isDebugPlugin() override
ROSCONSOLE_DECL void shutdown()