mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
f4f798f8dd
commit
181d2cf364
6 changed files with 41 additions and 191 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue