subsurface/core/settings/qPref.h
jan Iversen 8d66633fe7 core: make qPref::cloud_status the only version of the enum
add enum to qPref and remove elsewhere
update source core to reference qPref.

the enum cannot be in pref.h because it is to be used in qml and Q_ENUM
need the enum to be defined as part of the class

Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-10 10:30:50 -07:00

35 lines
528 B
C++

// SPDX-License-Identifier: GPL-2.0
#ifndef QPREF_H
#define QPREF_H
#include <QObject>
#include <QSettings>
#include "core/pref.h"
#include "qPrefDisplay.h"
class qPref : public QObject {
Q_OBJECT
Q_ENUMS(cloud_status);
public:
qPref(QObject *parent = NULL);
static qPref *instance();
// Load/Sync local settings (disk) and struct preference
void loadSync(bool doSync);
public:
enum cloud_status {
CS_UNKNOWN,
CS_INCORRECT_USER_PASSWD,
CS_NEED_TO_VERIFY,
CS_VERIFIED,
CS_NOCLOUD
};
private:
};
#endif