X-Git-Url: https://vaikene.ee/gitweb/pswgen11.html?a=blobdiff_plain;f=src%2Flibs%2FCommon%2Fieventqueue.h;h=f3134cc3a66bdbfe087a9ef4caaff72db047df23;hb=8e3cd0a676dde4e99f88feeeccea53caeb67e5b6;hp=ce12e428e8f27c53ed06f22024a735acf32eb4d5;hpb=688e916955a6b848dbbae1f65ae85a73593ed680;p=evaf
diff --git a/src/libs/Common/ieventqueue.h b/src/libs/Common/ieventqueue.h
index ce12e42..f3134cc 100644
--- a/src/libs/Common/ieventqueue.h
+++ b/src/libs/Common/ieventqueue.h
@@ -1,6 +1,6 @@
/**
* @file Common/ieventqueue.h
- * @brief Event queue interfaces
+ * @brief Event queue interface
* @author Enar Vaikene
*
* Copyright (c) 2011 Enar Vaikene
@@ -28,6 +28,8 @@
namespace eVaf {
namespace Common {
+class Event;
+
/**
* The eVaf event queue interface
* @code#include @endcode
@@ -48,6 +50,12 @@ public:
/// Empty virtual destructor
virtual ~iEventQueue() {}
+ /**
+ * Returns the instance of the iEventQueue interface
+ * @return The iEventQueue interface
+ */
+ static iEventQueue * instance();
+
/**
* Registers an event
* @param name Name of the event
@@ -82,7 +90,7 @@ public:
* Subscribes to an event
* @param id The ID of the event (can be zero)
* @param obj The subscriber object
- * @param return The ID of the event; or zero if failed to subscribe
+ * @return The ID of the event; or zero if failed to subscribe
*
* This function subscribes to an event identified by the ID value. Every object that wants to
* receive specific events, needs to subscribe to them.