diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2018-10-09 10:23:24 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-09 10:03:21 -0700 |
commit | a95e6589469a0998fba4d5248556a8c9337f22b0 (patch) | |
tree | 160b6207f1756c8f1d91e6173cde5cc6c83bb8d4 /mobile-widgets/qmlmanager.h | |
parent | 87b8155576cf04b0a002c80690f1222f3fec7935 (diff) | |
download | subsurface-a95e6589469a0998fba4d5248556a8c9337f22b0.tar.gz |
Mobile: factor out syncToCloud [3/3]
After the previous commits, we now have a preference that nicely
preserves the state of the UI, and we have the well known git_local_only
global, that is used to denote whether we want to use to local repo
only, or we want to interact with the online cloud as well.
This commit gets rid of the now superfluous syncToCloud logic. Instead
we simply set the git_local_only directly.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'mobile-widgets/qmlmanager.h')
-rw-r--r-- | mobile-widgets/qmlmanager.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index 674db311c..bd18edefa 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -28,7 +28,6 @@ class QMLManager : public QObject { Q_PROPERTY(QString startPageText MEMBER m_startPageText WRITE setStartPageText NOTIFY startPageTextChanged) Q_PROPERTY(bool verboseEnabled MEMBER m_verboseEnabled WRITE setVerboseEnabled NOTIFY verboseEnabledChanged) Q_PROPERTY(QString notificationText MEMBER m_notificationText WRITE setNotificationText NOTIFY notificationTextChanged) - Q_PROPERTY(bool syncToCloud MEMBER m_syncToCloud WRITE setSyncToCloud NOTIFY syncToCloudChanged) Q_PROPERTY(int updateSelectedDive MEMBER m_updateSelectedDive WRITE setUpdateSelectedDive NOTIFY updateSelectedDiveChanged) Q_PROPERTY(int selectedDiveTimestamp MEMBER m_selectedDiveTimestamp WRITE setSelectedDiveTimestamp NOTIFY selectedDiveTimestampChanged) Q_PROPERTY(QStringList suitList READ suitList NOTIFY suitListChanged) @@ -88,6 +87,7 @@ public: Q_INVOKABLE int getDetectedVendorIndex(); Q_INVOKABLE int getDetectedProductIndex(const QString ¤tVendorText); Q_INVOKABLE int getConnectionIndex(const QString &deviceSubstr); + Q_INVOKABLE void setGitLocalOnly(const bool &value); static QMLManager *instance(); Q_INVOKABLE void registerError(QString error); @@ -115,9 +115,6 @@ public: QString notificationText() const; void setNotificationText(QString text); - bool syncToCloud() const; - void setSyncToCloud(bool status); - int updateSelectedDive() const; void setUpdateSelectedDive(int idx); @@ -210,7 +207,6 @@ private: struct dive *deletedDive; struct dive_trip *deletedTrip; QString m_notificationText; - bool m_syncToCloud; int m_updateSelectedDive; int m_selectedDiveTimestamp; qreal m_lastDevicePixelRatio; @@ -241,7 +237,6 @@ signals: void loadFromCloudChanged(); void startPageTextChanged(); void notificationTextChanged(); - void syncToCloudChanged(); void updateSelectedDiveChanged(); void selectedDiveTimestampChanged(); void sendScreenChanged(QScreen *screen); |