diff options
author | jan Iversen <jani@apache.org> | 2018-06-16 16:03:31 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-07-04 05:32:30 +0800 |
commit | d02a03983d91da1d10aac5b0a5d84d15e94e9291 (patch) | |
tree | 15be085ead1635f40ce467ae8dec9aa5d4dc4eea /core/settings/qPref.h | |
parent | 6c9c2168e1d685aa1a777097dbf2330621dcf963 (diff) | |
download | subsurface-d02a03983d91da1d10aac5b0a5d84d15e94e9291.tar.gz |
core: add qPref.h_and qPrefprivate.h
add 2 header files and 1 cpp file (qPrefPrivate does not have an implementation)
The rewrite/consoliadation of SettingsObjectWrapper, qmlmanager, qmlpref and planner
needs a place to put common private parts (qPrefPrivate) and 1 common class (qPref).
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'core/settings/qPref.h')
-rw-r--r-- | core/settings/qPref.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/core/settings/qPref.h b/core/settings/qPref.h new file mode 100644 index 000000000..4170e5e64 --- /dev/null +++ b/core/settings/qPref.h @@ -0,0 +1,25 @@ +// SPDX-License-Identifier: GPL-2.0 +#ifndef QPREF_H +#define QPREF_H + +#include <QObject> +#include "core/pref.h" + +class qPref : public QObject { + Q_OBJECT + +public: + qPref(QObject *parent = NULL) : QObject(parent) {}; + ~qPref() {}; + static qPref *instance(); + + // Load/Sync local settings (disk) and struct preference + void loadSync(bool doSync); + +public: + +private: + static qPref *m_instance; +}; + +#endif |