X-Git-Url: https://vaikene.ee/gitweb/gitweb.cgi?p=evaf;a=blobdiff_plain;f=src%2Flibs%2FCommon%2Feventqueue.h;fp=src%2Flibs%2FCommon%2Feventqueue.h;h=a4b834be5efef4ee253f50244cb1c983e0d428b4;hp=b02937692129f83c74fc3151d392e7c70e180718;hb=a81a943bee20df3c7eb34bafb3e3fe878facfe4e;hpb=51afea61c3cf72248b2998f6874a354b49ed12ca diff --git a/src/libs/Common/eventqueue.h b/src/libs/Common/eventqueue.h index b029376..a4b834b 100644 --- a/src/libs/Common/eventqueue.h +++ b/src/libs/Common/eventqueue.h @@ -26,7 +26,6 @@ #include #include #include -#include namespace eVaf { @@ -72,10 +71,19 @@ private: // Members uint mNextEventId; /// List of registered events - QHash mEvents; + typedef QHash Events; + Events mEvents; /// List of subscribers - QHash > > mSubscribers; + typedef QHash > Subscribers; + Subscribers mSubscribers; + + +private slots: + + /// One of the subscribers is destroyed + /// We need to remove it from the list of subscribers. + void subscriberDestroyed(QObject * obj = 0); };