diff options
Diffstat (limited to 'qt-mobile/qmlmanager.h')
-rw-r--r-- | qt-mobile/qmlmanager.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/qt-mobile/qmlmanager.h b/qt-mobile/qmlmanager.h index 15954e9ec..7c56119d5 100644 --- a/qt-mobile/qmlmanager.h +++ b/qt-mobile/qmlmanager.h @@ -23,6 +23,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(int accessingCloud READ accessingCloud WRITE setAccessingCloud NOTIFY accessingCloudChanged) + Q_PROPERTY(bool syncToCloud READ syncToCloud WRITE setSyncToCloud NOTIFY syncToCloudChanged) public: QMLManager(); @@ -72,6 +73,9 @@ public: int accessingCloud() const; void setAccessingCloud(int status); + bool syncToCloud() const; + void setSyncToCloud(bool status); + typedef void (QMLManager::*execute_function_type)(); public slots: @@ -83,7 +87,6 @@ public slots: void handleError(QNetworkReply::NetworkError nError); void handleSslErrors(const QList<QSslError> &errors); void retrieveUserid(); - void loadDives(); void loadDivesWithValidCredentials(); void loadDiveProgress(int percent); void provideAuth(QNetworkReply *reply, QAuthenticator *auth); @@ -134,6 +137,7 @@ private: struct dive *deletedDive; struct dive_trip *deletedTrip; int m_accessingCloud; + bool m_syncToCloud; credentialStatus_t m_credentialStatus; qreal m_lastDevicePixelRatio; QElapsedTimer timer; @@ -151,6 +155,7 @@ signals: void startPageTextChanged(); void credentialStatusChanged(); void accessingCloudChanged(); + void syncToCloudChanged(); void sendScreenChanged(QScreen *screen); }; |