diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-12-14 23:00:19 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-12-15 13:33:53 -0800 |
commit | a26eda97009e643b137670be8df0d843d4328e51 (patch) | |
tree | ba01f7d150c3545b8cfe82990e2b7f0ef19cc3a3 /qt-mobile/qmlmanager.h | |
parent | 7aab63558525a8c6e17d39bdc4e3691baa02266e (diff) | |
download | subsurface-a26eda97009e643b137670be8df0d843d4328e51.tar.gz |
QML UI: show better message about dive list at start
Now the message should make more sense. First it tells you that it's looking
for dives. Then you get some progress during the git download, and error
messages if things failed.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qmlmanager.h')
-rw-r--r-- | qt-mobile/qmlmanager.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/qt-mobile/qmlmanager.h b/qt-mobile/qmlmanager.h index bd6884894..37161c832 100644 --- a/qt-mobile/qmlmanager.h +++ b/qt-mobile/qmlmanager.h @@ -18,6 +18,7 @@ class QMLManager : public QObject Q_PROPERTY(int distanceThreshold READ distanceThreshold WRITE setDistanceThreshold NOTIFY distanceThresholdChanged) Q_PROPERTY(int timeThreshold READ timeThreshold WRITE setTimeThreshold NOTIFY timeThresholdChanged) Q_PROPERTY(bool loadFromCloud READ loadFromCloud WRITE setLoadFromCloud NOTIFY loadFromCloudChanged) + Q_PROPERTY(QString startPageText READ startPageText WRITE setStartPageText NOTIFY startPageTextChanged) public: QMLManager(); ~QMLManager(); @@ -45,6 +46,9 @@ public: bool loadFromCloud() const; void setLoadFromCloud(bool done); + QString startPageText() const; + void setStartPageText(QString text); + QString logText() const; void setLogText(const QString &logText); void appendTextToLog(const QString &newText); @@ -61,6 +65,7 @@ public slots: void retrieveUserid(); void loadDives(); void loadDivesWithValidCredentials(); + void loadDiveProgress(int percent); void provideAuth(QNetworkReply *reply, QAuthenticator *auth); void commitChanges(QString diveId, QString suit, QString buddy, QString diveMaster, QString notes); void saveChanges(); @@ -74,6 +79,7 @@ private: QString m_cloudUserName; QString m_cloudPassword; QString m_ssrfGpsWebUserid; + QString m_startPageText; bool m_saveCloudPassword; QString m_logText; bool m_locationServiceEnabled; @@ -95,6 +101,7 @@ signals: void timeThresholdChanged(); void distanceThresholdChanged(); void loadFromCloudChanged(); + void startPageTextChanged(); }; #endif |