Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Geyer <blueice@fobos.de>2012-06-15 00:55:25 +0400
committerFlorian Geyer <blueice@fobos.de>2012-06-15 01:07:49 +0400
commita72090308336556228adb92ece9fd03804f631fe (patch)
tree169635e3f63d2d9ee702bae0a7219a859de7144c /src/core/Config.h
parent056447fad98a874fd3813100482eef55798e746c (diff)
Use temporary settings file for gui test.
Diffstat (limited to 'src/core/Config.h')
-rw-r--r--src/core/Config.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/Config.h b/src/core/Config.h
index 341e030a5..0041e673e 100644
--- a/src/core/Config.h
+++ b/src/core/Config.h
@@ -23,17 +23,23 @@
class QSettings;
-class Config
+class Config : public QObject
{
+ Q_OBJECT
+
public:
+ ~Config();
QVariant get(const QString& key);
QVariant get(const QString& key, const QVariant& defaultValue);
void set(const QString& key, const QVariant& value);
static Config* instance();
+ static void createTempFileInstance();
private:
- Config();
+ Config(const QString& fileName, QObject* parent);
+ Config(QObject* parent);
+ void init(const QString& fileName);
static Config* m_instance;