summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qmlmanager.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-02 17:13:42 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-02 17:13:42 -0800
commit1f0b716021fa9e16f1a94159d7f4b353c4635308 (patch)
tree8dcca8625bbe4764079c0a6b760c0dd317259ba4 /qt-mobile/qmlmanager.h
parent605d08557396d9e1524c3d2aedf0817b4ac32ce1 (diff)
downloadsubsurface-1f0b716021fa9e16f1a94159d7f4b353c4635308.tar.gz
QML UI: new property to tell the UI that we are accessing cloud storage
This can then be used to give the user visual feedback (instead of them just thinking the app is hung). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qmlmanager.h')
-rw-r--r--qt-mobile/qmlmanager.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/qt-mobile/qmlmanager.h b/qt-mobile/qmlmanager.h
index 17fe699e4..ff3507991 100644
--- a/qt-mobile/qmlmanager.h
+++ b/qt-mobile/qmlmanager.h
@@ -21,6 +21,8 @@ class QMLManager : public QObject {
Q_PROPERTY(QString startPageText READ startPageText WRITE setStartPageText NOTIFY startPageTextChanged)
Q_PROPERTY(bool verboseEnabled READ verboseEnabled WRITE setVerboseEnabled NOTIFY verboseEnabledChanged)
Q_PROPERTY(credentialStatus_t credentialStatus READ credentialStatus WRITE setCredentialStatus NOTIFY credentialStatusChanged)
+ Q_PROPERTY(bool accessingCloud READ accessingCloud WRITE setAccessingCloud NOTIFY accessingCloudChanged)
+
public:
QMLManager();
~QMLManager();
@@ -70,6 +72,9 @@ public:
void setLogText(const QString &logText);
void appendTextToLog(const QString &newText);
+ bool accessingCloud() const;
+ void setAccessingCloud(bool status);
+
typedef void (QMLManager::*execute_function_type)();
public slots:
@@ -129,7 +134,7 @@ private:
QNetworkRequest request;
struct dive *deletedDive;
struct dive_trip *deletedTrip;
-
+ bool m_accessingCloud;
credentialStatus_t m_credentialStatus;
signals:
@@ -144,6 +149,7 @@ signals:
void loadFromCloudChanged();
void startPageTextChanged();
void credentialStatusChanged();
+ void accessingCloudChanged();
};
#endif