]> vaikene.ee Git - evaf/blobdiff - src/libs/Common/ieventqueue.h
Added the eVaf::Common::iProp interface for global properties and variables.
[evaf] / src / libs / Common / ieventqueue.h
index ce12e428e8f27c53ed06f22024a735acf32eb4d5..f3134cc3a66bdbfe087a9ef4caaff72db047df23 100644 (file)
@@ -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 <Common/iEventQueue>@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.