mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
6124842b0c
commit
d65b756c4f
3 changed files with 43 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue