X-Git-Url: https://vaikene.ee/gitweb/pswgen09.html?a=blobdiff_plain;ds=inline;f=src%2Flibs%2FCommon%2Fregistry.h;h=3df7d58ac62526fae07086080ad984de3d082aed;hb=4c0329c5c2690bde28212c89029015a5da4c7e34;hp=9c05c5040e9f119fce27700bb84d6939b9def930;hpb=0957525838e501a4609a15b8d7a765da43362025;p=evaf
diff --git a/src/libs/Common/registry.h b/src/libs/Common/registry.h
index 9c05c50..3df7d58 100644
--- a/src/libs/Common/registry.h
+++ b/src/libs/Common/registry.h
@@ -3,7 +3,7 @@
* @brief Common registry implementation
* @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.
*
@@ -24,7 +24,6 @@
#include
#include
-#include
#include
namespace eVaf {
@@ -59,7 +58,15 @@ public:
private:
/// All the registered interfaces
- QHash > mInterfaces;
+ typedef QHash Interfaces;
+ Interfaces mInterfaces;
+
+
+private slots:
+
+ /// Interface object destroyed
+ /// We need to remove the interface from the list of registered interfaces
+ void interfaceDestroyed(QObject * obj = nullptr);
};