diff options
author | David Faure <faure@kde.org> | 2009-08-05 16:05:53 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-08-31 16:33:33 (GMT) |
commit | aecf60446a0b7f02c3728b0f653ab04f1f45d11c (patch) | |
tree | a4eea5534b249d2118c2b66c64c3a144033b5772 /src/network/kernel/qnetworkproxy.h | |
parent | 25ae1b6fc4d277f337639bc90c3f7df893b867f3 (diff) | |
download | Qt-aecf60446a0b7f02c3728b0f653ab04f1f45d11c.zip Qt-aecf60446a0b7f02c3728b0f653ab04f1f45d11c.tar.gz Qt-aecf60446a0b7f02c3728b0f653ab04f1f45d11c.tar.bz2 |
Add QNetworkProxyFactory::setUseSystemConfigurationEnabled(true)
Simply following the system configuration for the proxy used to require
writing a QNetworkProxyFactory subclass. The static setter makes this
easier, so apps can in one line say "I want to use the system proxy
settings". Solution and method name suggested by Thiago.
Diffstat (limited to 'src/network/kernel/qnetworkproxy.h')
-rw-r--r-- | src/network/kernel/qnetworkproxy.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/kernel/qnetworkproxy.h b/src/network/kernel/qnetworkproxy.h index d64ba09..01a88b8 100644 --- a/src/network/kernel/qnetworkproxy.h +++ b/src/network/kernel/qnetworkproxy.h @@ -171,6 +171,7 @@ public: virtual QList<QNetworkProxy> queryProxy(const QNetworkProxyQuery &query = QNetworkProxyQuery()) = 0; + static void setUseSystemConfigurationEnabled(bool enable); static void setApplicationProxyFactory(QNetworkProxyFactory *factory); static QList<QNetworkProxy> proxyForQuery(const QNetworkProxyQuery &query); static QList<QNetworkProxy> systemProxyForQuery(const QNetworkProxyQuery &query = QNetworkProxyQuery()); |