ctkEventBus.h

Go to the documentation of this file.
00001 #ifndef CTKEVENTBUS_H
00002 #define CTKEVENTBUS_H
00003 
00004 #include "ctkEvent.h"
00005 
00006 
00007 class ctkEventBus {
00008 
00009 public:
00010 
00011   typedef QMap<QString, QVariant> Properties;
00012 
00013   virtual ~ctkEventBus() {}
00014 
00015   virtual void postEvent(const ctkEvent& event) = 0;
00016   virtual void sendEvent(const ctkEvent& event) = 0;
00017 
00018   virtual void publishSignal(const QObject* publisher, const char* signal) = 0;
00019 
00020   virtual void subscribeSlot(const QObject* subscriber, const char* member, const Properties& properties) = 0;
00021 
00022 };
00023 
00024 
00025 Q_DECLARE_INTERFACE(ctkEventBus, "org.commontk.core.ctkEventBus")
00026 
00027 #endif // CTKEVENTBUS_H
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines