summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qmlmanager.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-13 17:14:22 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-13 17:15:28 -0800
commitd65b756c4ff3cf929114d2a48d1a0aa22f481ed9 (patch)
tree446374484824af0165122bf00bc6adebb6d13ce3 /qt-mobile/qmlmanager.h
parent6124842b0c4e8e52a72434f78b4b4177c6e2474b (diff)
downloadsubsurface-d65b756c4ff3cf929114d2a48d1a0aa22f481ed9.tar.gz
QML UI: add preference for webservice user id
This handles the user id for the Subsurface webservice for GPS location tracking. 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, 8 insertions, 0 deletions
diff --git a/qt-mobile/qmlmanager.h b/qt-mobile/qmlmanager.h
index 8c42b15ef..b71dcfec5 100644
--- a/qt-mobile/qmlmanager.h
+++ b/qt-mobile/qmlmanager.h
@@ -16,6 +16,7 @@ class QMLManager : public QObject
Q_PROPERTY(bool saveCloudPassword READ saveCloudPassword WRITE setSaveCloudPassword NOTIFY saveCloudPasswordChanged)
Q_PROPERTY(QString logText READ logText WRITE setLogText NOTIFY logTextChanged)
Q_PROPERTY(bool locationServiceEnabled READ locationServiceEnabled WRITE setLocationServiceEnabled NOTIFY locationServiceEnabledChanged)
+ Q_PROPERTY(QString ssrfGpsWebUserid READ ssrfGpsWebUserid WRITE setSsrfGpsWebUserid NOTIFY ssrfGpsWebUseridChanged)
public:
QMLManager();
~QMLManager();
@@ -26,6 +27,9 @@ public:
QString cloudPassword() const;
void setCloudPassword(const QString &cloudPassword);
+ QString ssrfGpsWebUserid() const;
+ void setSsrfGpsWebUserid(const QString &userid);
+
bool saveCloudPassword() const;
void setSaveCloudPassword(bool saveCloudPassword);
@@ -43,10 +47,13 @@ public slots:
void saveChanges();
void addDive();
void applyGpsData();
+ void sendGpsData();
+ void clearGpsData();
private:
QString m_cloudUserName;
QString m_cloudPassword;
+ QString m_ssrfGpsWebUserid;
bool m_saveCloudPassword;
QString m_logText;
bool m_locationServiceEnabled;
@@ -55,6 +62,7 @@ private:
signals:
void cloudUserNameChanged();
void cloudPasswordChanged();
+ void ssrfGpsWebUseridChanged();
void saveCloudPasswordChanged();
void locationServiceEnabledChanged();
void logTextChanged();