QNetworkSettingsProxy Class

The QNetworkSettingsProxy class encapsulates network proxy configuration. More...

Header: #include <QNetworkSettingsProxy>
qmake: QT += networksettings
Inherits: QObject

Public Types

enum Method { Direct, Auto, Manual }

Properties

Public Functions

QNetworkSettingsProxy(QObject *parent = nullptr)
QAbstractItemModel *excludes()
QStringList excludes() const
QNetworkSettingsProxy::Method method() const
QAbstractItemModel *servers()
QStringList servers() const
void setExcludes(const QStringList &excludes)
void setMethod(const QNetworkSettingsProxy::Method &method)
void setServers(const QStringList &servers)
void setUrl(const QUrl &url)
QUrl url() const

Signals

Detailed Description

Member Type Documentation

enum QNetworkSettingsProxy::Method

Holds the network proxy configuration method.

ConstantValueDescription
QNetworkSettingsProxy::Direct0Direct network connection, no proxy in use
QNetworkSettingsProxy::Auto1Automatic proxy configuration
QNetworkSettingsProxy::Manual2Manual proxy configuration

See also url.

Property Documentation

[read-only] excludes : QAbstractItemModel* const

This property holds the model containing the proxy exclusion list.

The addresses in the proxy exclusion list are accessed directly, instead of forwarding the requests to a proxy.

This property can be used as a model for a view that lists the proxy exclusion addresses.

Access functions:

QAbstractItemModel *excludes()
QStringList excludes() const

Notifier signal:

void excludesChanged()

See also QNetworkSettingsAddressModel.

method : Method

Holds the network proxy configuration method.

Access functions:

QNetworkSettingsProxy::Method method() const
void setMethod(const QNetworkSettingsProxy::Method &method)

Notifier signal:

void methodChanged()

See also QNetworkSettingsProxy::Method.

[read-only] servers : QAbstractItemModel* const

This property holds the model containing the proxy exclusion list.

This property holds the list of proxy server names.

Access functions:

QAbstractItemModel *servers()
QStringList servers() const

Notifier signal:

void serversChanged()

url : QUrl

Holds the proxy URL.

For manual proxy configuration, this property holds the proxy server address. For automatic configuration, it holds the proxy auto-config URL.

Access functions:

QUrl url() const
void setUrl(const QUrl &url)

Notifier signal:

void urlChanged()

See also QNetworkSettingsProxy::Method.

Member Function Documentation

[explicit] QNetworkSettingsProxy::QNetworkSettingsProxy(QObject *parent = nullptr)

Creates a new proxy configuration with the parent parent.

void QNetworkSettingsProxy::setExcludes(const QStringList &excludes)

Sets the proxy exclusion list. excludes lists the addresses on the exclustion list.

The QNetworkSettingsProxy::excludesChanged signal is emitted when the proxy exclusion list is set.

See also excludes().

void QNetworkSettingsProxy::setServers(const QStringList &servers)

Sets the proxy server list. servers lists the server names.

The QNetworkSettingsProxy::serversChanged signal is emitted when the server list is set.

See also servers().

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.