diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-06-17 23:22:37 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-06-17 23:22:37 -0700 |
commit | b2b51c833a2c6f71fe411b5f99ccbf3107ef9677 (patch) | |
tree | db7a3bf3ddb6450a6c4514d684f4b03c9c97f4cf /mobile-widgets/qmlmanager.h | |
parent | 2d5f023b5811ffde028d5c9b680cd99f9f1448f9 (diff) | |
download | subsurface-b2b51c833a2c6f71fe411b5f99ccbf3107ef9677.tar.gz |
QML UI: redesign the user notification
The old system of cloud access updates with fake percentages just wasn't
helpful. Even worse, it hid a lot important information from the user.
This should be more useful (but it will require that we localize the
messages sent from the git progress notifications and make them more
'user ready').
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.h')
-rw-r--r-- | mobile-widgets/qmlmanager.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index dbaed488e..53b3634d6 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -29,7 +29,7 @@ class QMLManager : public QObject { Q_PROPERTY(bool verboseEnabled READ verboseEnabled WRITE setVerboseEnabled NOTIFY verboseEnabledChanged) Q_PROPERTY(credentialStatus_t credentialStatus READ credentialStatus WRITE setCredentialStatus NOTIFY credentialStatusChanged) Q_PROPERTY(credentialStatus_t oldStatus READ oldStatus WRITE setOldStatus NOTIFY oldStatusChanged) - Q_PROPERTY(int accessingCloud READ accessingCloud WRITE setAccessingCloud NOTIFY accessingCloudChanged) + Q_PROPERTY(QString notificationText READ notificationText WRITE setNotificationText NOTIFY notificationTextChanged) Q_PROPERTY(bool syncToCloud READ syncToCloud WRITE setSyncToCloud NOTIFY syncToCloudChanged) Q_PROPERTY(int updateSelectedDive READ updateSelectedDive WRITE setUpdateSelectedDive NOTIFY updateSelectedDiveChanged) Q_PROPERTY(int selectedDiveTimestamp READ selectedDiveTimestamp WRITE setSelectedDiveTimestamp NOTIFY selectedDiveTimestampChanged) @@ -94,8 +94,8 @@ public: QString logText() const; void setLogText(const QString &logText); - int accessingCloud() const; - void setAccessingCloud(int status); + QString notificationText() const; + void setNotificationText(QString text); bool syncToCloud() const; void setSyncToCloud(bool status); @@ -126,7 +126,6 @@ public slots: void handleSslErrors(const QList<QSslError> &errors); void retrieveUserid(); void loadDivesWithValidCredentials(); - void loadDiveProgress(int percent); void provideAuth(QNetworkReply *reply, QAuthenticator *auth); void commitChanges(QString diveId, QString date, QString location, QString gps, QString duration, QString depth, QString airtemp, @@ -182,7 +181,7 @@ private: QNetworkRequest request; struct dive *deletedDive; struct dive_trip *deletedTrip; - int m_accessingCloud; + QString m_notificationText; bool m_syncToCloud; int m_updateSelectedDive; int m_selectedDiveTimestamp; @@ -213,7 +212,7 @@ signals: void startPageTextChanged(); void credentialStatusChanged(); void oldStatusChanged(); - void accessingCloudChanged(); + void notificationTextChanged(); void syncToCloudChanged(); void updateSelectedDiveChanged(); void selectedDiveTimestampChanged(); |