20 #ifndef __COMMON_EVENTQUEUE_H 21 #define __COMMON_EVENTQUEUE_H 57 virtual uint
queryEvent(QString
const & name)
const;
74 typedef QHash<uint, QString> Events;
78 typedef QHash<uint, QVector<QObject *> > Subscribers;
79 Subscribers mSubscribers;
86 void subscriberDestroyed(
QObject * obj = 0);
94 #endif // eventqueue.h
Event class for all the eVaf events.
virtual uint registerEvent(QString const &name)
Registers an event.
virtual uint subscribeEvent(uint id, QObject *obj)
Subscribes to an event.
virtual bool event(QEvent *e)
Qt event handler.
virtual uint queryEvent(QString const &name) const
Queries for an existing event.
iEventQueue interface implementation
virtual void unsubscribeEvent(uint id, QObject *obj)
Unsubscribes from an event.
The eVaf event queue interface.
virtual void broadcastEvent(Event *event)
Sends the event to all the subscribers.
virtual void unregisterEvent(uint id)
Unregisters an event.