diff options
Diffstat (limited to 'core/settings/qPrefCloudStorage.cpp')
-rw-r--r-- | core/settings/qPrefCloudStorage.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/core/settings/qPrefCloudStorage.cpp b/core/settings/qPrefCloudStorage.cpp index ddb370630..9392a24c0 100644 --- a/core/settings/qPrefCloudStorage.cpp +++ b/core/settings/qPrefCloudStorage.cpp @@ -7,7 +7,6 @@ static const QString group = QStringLiteral("CloudStorage"); qPrefCloudStorage::qPrefCloudStorage(QObject *parent) : QObject(parent) { } - qPrefCloudStorage *qPrefCloudStorage::instance() { static qPrefCloudStorage *self = new qPrefCloudStorage; @@ -114,3 +113,12 @@ void qPrefCloudStorage::disk_userid(bool doSync) } } } + +bool qPrefCloudStorage::loadFromCloud(const QString& email) +{ + return qPrefPrivate::propValue(QString("loadFromCloud") + email, false).toBool(); +} +void qPrefCloudStorage::set_loadFromCloud(const QString& email, bool done) +{ + qPrefPrivate::propSetValue(QString("loadFromCloud") + email, done); +} |