summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.h
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-10-17 09:51:00 +0200
committerGravatar Jan Mulder <jlmulder@xs4all.nl>2017-10-17 14:29:17 +0200
commit16b395a8989732db2dda835e347176afb8e414b6 (patch)
tree2692452a168538b14c7cf08488a721d9e840b03e /mobile-widgets/qmlmanager.h
parent90fcfca02ce5deea7461e559a474de9bb19a8dd8 (diff)
downloadsubsurface-16b395a8989732db2dda835e347176afb8e414b6.tar.gz
mobile: No cloud repo creation more explicit
Before this change, there was only one way to create the local no cloud repo on the device. The user needed to add at least one dive to the no cloud account (so that there is something to save). While this worked in some scenarios, it could also get things in an inconsistent state: credential status = CS_NOCLOUD but no local repo. This was a dead end. In this commit, the creation of the no cloud repo is made more explicit. When asking for no cloud mode, just create an (empty) repo for it when it does not yet exist, and otherwise, just open the existing (possibly empty) repo. Now, a user can have no cloud repo, next to (any number of) cloud accounts. This leaves one functional aspect left: how does a user abandon the no cloud repo, by merging his data into a true cloud account. This is code for this, that tries to do this merge in a smart way. This seems to be broken (too). To be clear: this is no part of this commit. Fixes: #667 Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'mobile-widgets/qmlmanager.h')
-rw-r--r--mobile-widgets/qmlmanager.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h
index d89c1e27d..cde8b8dec 100644
--- a/mobile-widgets/qmlmanager.h
+++ b/mobile-widgets/qmlmanager.h
@@ -163,6 +163,7 @@ public slots:
QString diveMaster, QString weight, QString notes, QString startpressure,
QString endpressure, QString gasmix, QString cylinder, int rating, int visibility);
void changesNeedSaving();
+ void openNoCloudRepo();
void saveChangesLocal();
void saveChangesCloud(bool forceRemoteSync);
void deleteDive(int id);
@@ -175,6 +176,7 @@ public slots:
void populateGpsData();
void cancelDownloadDC();
void clearGpsData();
+ void clearCredentials();
void cancelCredentialsPinSetup();
void finishSetup();
void openLocalThenRemote(QString url);