message_broker.h
Go to the documentation of this file.
00001 #ifndef _UTILITIES_MESSAGE_BROKER_H_
00002 #define _UTILITIES_MESSAGE_BROKER_H_
00003 
00004 #include <QObject>
00005 #include <QMap>
00006 #include <QVariant>
00007 #include "utilities/message.h"
00008 
00009 namespace utilities
00010 {
00011 class MessageBroker : public QObject
00012 {
00013 Q_OBJECT
00014 public:
00015   typedef QMap<int, QVariant> PropertyMap;
00016   MessageBroker(QObject* parent = NULL);
00017   virtual ~MessageBroker();
00018   virtual bool subscribe(const QString& topic, QObject* receiver,
00019     const char* method, const PropertyMap& properties = PropertyMap(),
00020     Qt::ConnectionType type = Qt::AutoConnection) = 0;
00021   virtual bool unsubscribe(const QString& topic, QObject* receiver,
00022     const char* method = NULL) = 0;
00023 };
00024 }
00025 
00026 #endif // _UTILITIES_MESSAGE_BROKER_H_


rqt_mrta
Author(s): Adriano Henrique Rossette Leite
autogenerated on Thu Jun 6 2019 18:50:52