mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
d02a03983d
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>
25 lines
401 B
C++
25 lines
401 B
C++
// 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
|