diff --git a/src/settings/proxysetting.h b/src/settings/proxysetting.h index 3132984..4b7434c 100644 --- a/src/settings/proxysetting.h +++ b/src/settings/proxysetting.h @@ -1,81 +1,81 @@ /* Copyright 2018 Pranav Gade This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) version 3, or any later version accepted by the membership of KDE e.V. (or its successor approved by the membership of KDE e.V.), which shall act as a proxy defined in Section 6 of version 3 of the license. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library. If not, see . */ #ifndef NETWORKMANAGERQT_PROXY_SETTING_H #define NETWORKMANAGERQT_PROXY_SETTING_H #include #include "setting.h" #include namespace NetworkManager { class ProxySettingPrivate; /** * Represents proxy setting */ class NETWORKMANAGERQT_EXPORT ProxySetting : public Setting { public: typedef QSharedPointer Ptr; typedef QList List; enum Mode { - None = NM_SETTING_PROXY_METHOD_NONE, - Auto = NM_SETTING_PROXY_METHOD_AUTO + None = 0, + Auto = 1 }; ProxySetting(); explicit ProxySetting(const Ptr &other); ~ProxySetting() override; QString name() const override; void setBrowserOnly(bool browserOnly); bool browserOnly() const; void setMethod(Mode method); Mode method() const; void setPacScript(const QString &script); QString pacScript() const; void setPacUrl(const QString &url); QString pacUrl() const; void fromMap(const QVariantMap &setting) override; QVariantMap toMap() const override; protected: ProxySettingPrivate *d_ptr; private: Q_DECLARE_PRIVATE(ProxySetting) }; NETWORKMANAGERQT_EXPORT QDebug operator<<(QDebug dbg, const ProxySetting &setting); } #endif // NETWORKMANAGERQT_PROXY_SETTING_H