2018-06-16 14:03:31 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#ifndef QPREF_H
|
|
|
|
#define QPREF_H
|
|
|
|
|
|
|
|
#include <QObject>
|
2018-06-15 08:53:42 +00:00
|
|
|
#include <QSettings>
|
2018-06-16 14:03:31 +00:00
|
|
|
#include "core/pref.h"
|
|
|
|
|
2018-06-15 08:53:42 +00:00
|
|
|
#include "qPrefDisplay.h"
|
|
|
|
|
2018-06-16 14:03:31 +00:00
|
|
|
class qPref : public QObject {
|
|
|
|
Q_OBJECT
|
2018-06-16 08:08:34 +00:00
|
|
|
Q_ENUMS(cloud_status);
|
2018-06-16 14:03:31 +00:00
|
|
|
|
|
|
|
public:
|
2018-06-16 08:08:34 +00:00
|
|
|
qPref(QObject *parent = NULL);
|
2018-06-16 14:03:31 +00:00
|
|
|
static qPref *instance();
|
|
|
|
|
|
|
|
// Load/Sync local settings (disk) and struct preference
|
|
|
|
void loadSync(bool doSync);
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
private:
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|