]> vaikene.ee Git - evaf/blobdiff - src/libs/Common/registry.h
Ported to Qt5
[evaf] / src / libs / Common / registry.h
index 9c05c5040e9f119fce27700bb84d6939b9def930..e8bf68b13128e1ab6e48b6787ad8093fc398eea6 100644 (file)
@@ -24,7 +24,6 @@
 
 #include <QObject>
 #include <QString>
-#include <QWeakPointer>
 #include <QHash>
 
 namespace eVaf {
@@ -59,7 +58,15 @@ public:
 private:
 
     /// All the registered interfaces
-    QHash<QString, QWeakPointer<QObject> > mInterfaces;
+    typedef QHash<QString, QObject *> 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);
 
 };