]> vaikene.ee Git - evaf/blobdiff - src/libs/Common/prop.h
Mac OS changes and switched to c++11.
[evaf] / src / libs / Common / prop.h
index 1574f2546cb3744b2ad51a9b419d02007eb7908f..605a1d8202ea919e8420bca2ad2e14d3b07d563e 100644 (file)
@@ -3,7 +3,7 @@
  * @brief Implementation of the iProp 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.
  *
@@ -23,6 +23,7 @@
 #include "iprop.h"
 
 #include <QHash>
+#include <QScopedPointer>
 
 class QSettings;
 
@@ -44,6 +45,11 @@ class Prop : public iProp
 
 public:
 
+    /**
+     * Destroys the iProp interface instance
+     */
+    static void destroyInstance();
+
     Prop();
 
     virtual ~Prop();
@@ -79,7 +85,7 @@ private: // Members
     QHash<QString, QVariant> mProps;
 
     /// Persistent property values
-    QSettings * mPersistentProps;
+    QScopedPointer<QSettings> mPersistentProps;
 
 };