X-Git-Url: https://vaikene.ee/gitweb/pswgen09.html?a=blobdiff_plain;f=src%2Flibs%2FCommon%2Fregistry.h;h=e8bf68b13128e1ab6e48b6787ad8093fc398eea6;hb=13dedf19c628b9967e4c4106ab0fd967f1df0b90;hp=1046c485c798f8da67a8315d89a549306c7a39d0;hpb=688e916955a6b848dbbae1f65ae85a73593ed680;p=evaf
diff --git a/src/libs/Common/registry.h b/src/libs/Common/registry.h
index 1046c48..e8bf68b 100644
--- a/src/libs/Common/registry.h
+++ b/src/libs/Common/registry.h
@@ -24,7 +24,6 @@
#include
#include
-#include
#include
namespace eVaf {
@@ -35,7 +34,7 @@ namespace Internal {
* iRegistry interface implementation.
*
* This class implements the global registry for interfaces. Interfaces are stored in a QHash container
- * and quarded with QPointer.
+ * and quarded with QWeakPointer.
*/
class Registry : public iRegistry
{
@@ -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 = 0);
};