Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef RQT_MULTIPLOT_MESSAGE_BROKER_H
00020 #define RQT_MULTIPLOT_MESSAGE_BROKER_H
00021
00022 #include <QObject>
00023 #include <QMap>
00024 #include <QVariant>
00025
00026 #include <rqt_multiplot/Message.h>
00027
00028 namespace rqt_multiplot {
00029 class MessageBroker :
00030 public QObject {
00031 Q_OBJECT
00032 public:
00033 typedef QMap<int, QVariant> PropertyMap;
00034
00035 MessageBroker(QObject* parent = 0);
00036 virtual ~MessageBroker();
00037
00038 virtual bool subscribe(const QString& topic, QObject* receiver,
00039 const char* method, const PropertyMap& properties = PropertyMap(),
00040 Qt::ConnectionType type = Qt::AutoConnection) = 0;
00041 virtual bool unsubscribe(const QString& topic, QObject* receiver,
00042 const char* method = 0) = 0;
00043 };
00044 };
00045
00046 #endif