summaryrefslogtreecommitdiffstats
path: root/core/settings/qPrefCloudStorage.h
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-09-02 16:22:16 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-11 17:25:00 -0700
commit684e334fb6098e604a91d140c1e2ea0883dff081 (patch)
tree99dd5050bb53385125aa5fa6dc69514acbc2b40e /core/settings/qPrefCloudStorage.h
parent4d57b52062ab902dee8d82e453eda586ce78ab3e (diff)
downloadsubsurface-684e334fb6098e604a91d140c1e2ea0883dff081.tar.gz
core: declare cloud_status in qPrefCloudStorage
qml declaration of cloud_status (defined in pref.h) does not belong in qPref.h but in qPrefCloudStorage Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'core/settings/qPrefCloudStorage.h')
-rw-r--r--core/settings/qPrefCloudStorage.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/settings/qPrefCloudStorage.h b/core/settings/qPrefCloudStorage.h
index 0cb4cc03c..631eaa670 100644
--- a/core/settings/qPrefCloudStorage.h
+++ b/core/settings/qPrefCloudStorage.h
@@ -27,6 +27,15 @@ public:
static void sync() { loadSync(true); }
public:
+ enum cloud_status {
+ CS_UNKNOWN,
+ CS_INCORRECT_USER_PASSWD,
+ CS_NEED_TO_VERIFY,
+ CS_VERIFIED,
+ CS_NOCLOUD
+ };
+ Q_ENUM(cloud_status);
+
static QString cloud_base_url() { return prefs.cloud_base_url; }
static QString cloud_git_url() { return prefs.cloud_git_url; }
static QString cloud_storage_email() { return prefs.cloud_storage_email; }