X-Git-Url: https://vaikene.ee/gitweb/gitweb.cgi?p=evaf;a=blobdiff_plain;f=src%2Flibs%2FCommon%2Fprop.h;fp=src%2Flibs%2FCommon%2Fprop.h;h=605a1d8202ea919e8420bca2ad2e14d3b07d563e;hp=1574f2546cb3744b2ad51a9b419d02007eb7908f;hb=de270ece1b764b19968e14420f538321f1c06b15;hpb=cf45ef016ce162419f74f9165c4267a184714956 diff --git a/src/libs/Common/prop.h b/src/libs/Common/prop.h index 1574f25..605a1d8 100644 --- a/src/libs/Common/prop.h +++ b/src/libs/Common/prop.h @@ -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 +#include 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 mProps; /// Persistent property values - QSettings * mPersistentProps; + QScopedPointer mPersistentProps; };