diff options
author | jan Iversen <jan@casacondor.com> | 2019-11-27 18:32:57 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-11 12:36:43 -0500 |
commit | 42939ab7f88469d1cbf3e4f4369eea9e58d7a847 (patch) | |
tree | a3cd89a82340e2d1b4150d17a54075106763f2be /core/settings/qPrefCloudStorage.h | |
parent | 5aba24248f8b11baef6c10c36a6fdf07ebb001ee (diff) | |
download | subsurface-42939ab7f88469d1cbf3e4f4369eea9e58d7a847.tar.gz |
core/settings: extend qPrefCloudStorage with divelogsde user info
Add divelogsde_userid and divelogsde_password to
qPrefCloudStorage to be used in Export.qml
Extending qPrefCloudStorage is more logical than adding QSettings
(and securing the same behaviour) outside qPref.
Signed-off-by: Jan Iversen <jan@casacondor.com>
Diffstat (limited to 'core/settings/qPrefCloudStorage.h')
-rw-r--r-- | core/settings/qPrefCloudStorage.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/settings/qPrefCloudStorage.h b/core/settings/qPrefCloudStorage.h index 58aa3a175..025c155f6 100644 --- a/core/settings/qPrefCloudStorage.h +++ b/core/settings/qPrefCloudStorage.h @@ -19,6 +19,8 @@ class qPrefCloudStorage : public QObject { Q_PROPERTY(bool save_password_local READ save_password_local WRITE set_save_password_local NOTIFY save_password_localChanged) Q_PROPERTY(QString diveshare_userid READ diveshare_uid WRITE set_diveshare_uid NOTIFY diveshare_uidChanged); Q_PROPERTY(bool diveshare_private READ diveshare_private WRITE set_diveshare_private NOTIFY diveshare_privateChanged); + Q_PROPERTY(QString divelogde_user READ divelogde_user WRITE set_divelogde_user NOTIFY divelogde_userChanged); + Q_PROPERTY(QString divelogde_pass READ divelogde_pass WRITE set_divelogde_pass NOTIFY divelogde_passChanged); public: static qPrefCloudStorage *instance(); @@ -50,6 +52,8 @@ public: static bool save_password_local() { return prefs.save_password_local; } static QString diveshare_uid(); static bool diveshare_private(); + static QString divelogde_user(); + static QString divelogde_pass(); public slots: static void set_cloud_auto_sync(bool value); @@ -63,6 +67,8 @@ public slots: static void set_save_password_local(bool value); static void set_diveshare_uid(const QString &value); static void set_diveshare_private(bool value); + static void set_divelogde_user(const QString &value); + static void set_divelogde_pass(const QString &value); signals: void cloud_auto_syncChanged(bool value); @@ -76,6 +82,8 @@ signals: void save_password_localChanged(bool value); void diveshare_uidChanged(const QString &value); void diveshare_privateChanged(bool value); + void divelogde_userChanged(const QString &value); + void divelogde_passChanged(const QString &value); private: qPrefCloudStorage() {} |