diff options
author | jan Iversen <jani@apache.org> | 2018-07-27 21:55:49 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-07-30 07:43:22 -0700 |
commit | 181d2cf364f22c5e673916d884ca5f0742e137ce (patch) | |
tree | 3fbf7f47b17e193d29d703daaba2af6d1a11a6ac /core/subsurface-qt/SettingsObjectWrapper.h | |
parent | f4f798f8dd43a4da884845af102e0b97dd8409dd (diff) | |
download | subsurface-181d2cf364f22c5e673916d884ca5f0742e137ce.tar.gz |
core: activate qPrefProxy
remove Proxy from SettingsObjectWrapper and reference qPrefProxy
update files using SettingsObjectWrapper/Proxy to use qPrefProxy
this activated qPrefProxy and removed the similar class from
SettingsObjectWrapper.
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'core/subsurface-qt/SettingsObjectWrapper.h')
-rw-r--r-- | core/subsurface-qt/SettingsObjectWrapper.h | 41 |
1 files changed, 2 insertions, 39 deletions
diff --git a/core/subsurface-qt/SettingsObjectWrapper.h b/core/subsurface-qt/SettingsObjectWrapper.h index a7957f9f1..5afcfccc4 100644 --- a/core/subsurface-qt/SettingsObjectWrapper.h +++ b/core/subsurface-qt/SettingsObjectWrapper.h @@ -229,43 +229,6 @@ private: const QString group = QStringLiteral("geocoding"); }; -class ProxySettings : public QObject { - Q_OBJECT - Q_PROPERTY(int type READ type WRITE setType NOTIFY typeChanged) - Q_PROPERTY(QString host READ host WRITE setHost NOTIFY hostChanged) - Q_PROPERTY(int port READ port WRITE setPort NOTIFY portChanged) - Q_PROPERTY(bool auth READ auth WRITE setAuth NOTIFY authChanged) - Q_PROPERTY(QString user READ user WRITE setUser NOTIFY userChanged) - Q_PROPERTY(QString pass READ pass WRITE setPass NOTIFY passChanged) - -public: - ProxySettings(QObject *parent); - int type() const; - QString host() const; - int port() const; - bool auth() const; - QString user() const; - QString pass() const; - -public slots: - void setType(int value); - void setHost(const QString& value); - void setPort(int value); - void setAuth(bool value); - void setUser(const QString& value); - void setPass(const QString& value); - -signals: - void typeChanged(int value); - void hostChanged(const QString& value); - void portChanged(int value); - void authChanged(bool value); - void userChanged(const QString& value); - void passChanged(const QString& value); -private: - const QString group = QStringLiteral("Network"); -}; - class DivePlannerSettings : public QObject { Q_OBJECT Q_PROPERTY(bool last_stop READ lastStop WRITE setLastStop NOTIFY lastStopChanged) @@ -560,7 +523,7 @@ class SettingsObjectWrapper : public QObject { Q_PROPERTY(PartialPressureGasSettings* pp_gas MEMBER pp_gas CONSTANT) Q_PROPERTY(qPrefFacebook* facebook MEMBER facebook CONSTANT) Q_PROPERTY(GeocodingPreferences* geocoding MEMBER geocoding CONSTANT) - Q_PROPERTY(ProxySettings* proxy MEMBER proxy CONSTANT) + Q_PROPERTY(qPrefProxy* proxy MEMBER proxy CONSTANT) Q_PROPERTY(qPrefCloudStorage* cloud_storage MEMBER cloud_storage CONSTANT) Q_PROPERTY(DivePlannerSettings* planner MEMBER planner_settings CONSTANT) Q_PROPERTY(UnitsSettings* units MEMBER unit_settings CONSTANT) @@ -580,7 +543,7 @@ public: PartialPressureGasSettings *pp_gas; qPrefFacebook *facebook; GeocodingPreferences *geocoding; - ProxySettings *proxy; + qPrefProxy *proxy; qPrefCloudStorage *cloud_storage; DivePlannerSettings *planner_settings; UnitsSettings *unit_settings; |