summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qmlmanager.h
diff options
context:
space:
mode:
authorGravatar Grace Karanja <gracie.karanja89@gmail.com>2015-07-21 11:57:10 +0300
committerGravatar Grace Karanja <gracie.karanja89@gmail.com>2015-07-22 09:53:19 +0300
commitea11eff27900b0929068c2fd18728db6412484cf (patch)
treef6a115c7fa9f20548a022b94e6aec79e19f27aed /qt-mobile/qmlmanager.h
parentb28517b9b002bbdaac867d0b720c17ae865cf17d (diff)
downloadsubsurface-ea11eff27900b0929068c2fd18728db6412484cf.tar.gz
QML UI: Implement saving of cloud password
If the user ticks the 'Save Password' box, then we save the password for future use. Signed-off-by: Grace Karanja <gracie.karanja89@gmail.com>
Diffstat (limited to 'qt-mobile/qmlmanager.h')
-rw-r--r--qt-mobile/qmlmanager.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-mobile/qmlmanager.h b/qt-mobile/qmlmanager.h
index 2f5ac2894..0f1df2b59 100644
--- a/qt-mobile/qmlmanager.h
+++ b/qt-mobile/qmlmanager.h
@@ -9,6 +9,7 @@ class QMLManager : public QObject
Q_OBJECT
Q_PROPERTY(QString cloudUserName READ cloudUserName WRITE setCloudUserName NOTIFY cloudUserNameChanged)
Q_PROPERTY(QString cloudPassword READ cloudPassword WRITE setCloudPassword NOTIFY cloudPasswordChanged)
+ Q_PROPERTY(bool saveCloudPassword READ saveCloudPassword WRITE setSaveCloudPassword NOTIFY saveCloudPasswordChanged)
public:
QMLManager();
~QMLManager();
@@ -19,6 +20,9 @@ public:
QString cloudPassword() const;
void setCloudPassword(const QString &cloudPassword);
+ bool saveCloudPassword() const;
+ void setSaveCloudPassword(bool saveCloudPassword);
+
public slots:
void savePreferences();
void loadDives();
@@ -27,10 +31,12 @@ public slots:
private:
QString m_cloudUserName;
QString m_cloudPassword;
+ bool m_saveCloudPassword;
signals:
void cloudUserNameChanged();
void cloudPasswordChanged();
+ void saveCloudPasswordChanged();
};
#endif