diff options
Diffstat (limited to 'core/settings/qPrefCloudStorage.cpp')
-rw-r--r-- | core/settings/qPrefCloudStorage.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/core/settings/qPrefCloudStorage.cpp b/core/settings/qPrefCloudStorage.cpp index 26a0787e6..675e379d6 100644 --- a/core/settings/qPrefCloudStorage.cpp +++ b/core/settings/qPrefCloudStorage.cpp @@ -77,3 +77,24 @@ HANDLE_PREFERENCE_INT(CloudStorage, "timeout", cloud_timeout); HANDLE_PREFERENCE_INT(CloudStorage, "cloud_verification_status", cloud_verification_status); HANDLE_PREFERENCE_BOOL(CloudStorage, "save_password_local", save_password_local); + + +QString qPrefCloudStorage::diveshare_uid() +{ + return qPrefPrivate::propValue(keyFromGroupAndName("", "diveshareExport/uid"), "").toString(); +} +void qPrefCloudStorage::set_diveshare_uid(const QString &value) +{ + qPrefPrivate::propSetValue(keyFromGroupAndName("", "diveshareExport/uid"), value, ""); + emit instance()->diveshare_uidChanged(value); +} + +bool qPrefCloudStorage::diveshare_private() +{ + return qPrefPrivate::propValue(keyFromGroupAndName("", "diveshareExport/private"), "").toBool(); +} +void qPrefCloudStorage::set_diveshare_private(bool value) +{ + qPrefPrivate::propSetValue(keyFromGroupAndName("", "diveshareExport/private"), value, false); + emit instance()->diveshare_privateChanged(value); +} |