X-Git-Url: https://vaikene.ee/gitweb/pswgen11.html?a=blobdiff_plain;f=src%2Flibs%2FCommon%2Fieventqueue.h;h=b239e1d4c567dc6bf236177e7ee9d5009d5273f5;hb=13dedf19c628b9967e4c4106ab0fd967f1df0b90;hp=ce12e428e8f27c53ed06f22024a735acf32eb4d5;hpb=688e916955a6b848dbbae1f65ae85a73593ed680;p=evaf
diff --git a/src/libs/Common/ieventqueue.h b/src/libs/Common/ieventqueue.h
index ce12e42..b239e1d 100644
--- a/src/libs/Common/ieventqueue.h
+++ b/src/libs/Common/ieventqueue.h
@@ -1,9 +1,9 @@
/**
* @file Common/ieventqueue.h
- * @brief Event queue interfaces
+ * @brief Event queue interface
* @author Enar Vaikene
*
- * Copyright (c) 2011 Enar Vaikene
+ * Copyright (c) 2011-2019 Enar Vaikene
*
* This file is part of the eVaf C++ cross-platform application development framework.
*
@@ -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.