Qt 4.8
Public Functions | List of all members
QSystemConfigurationProxyFactory Class Reference

#include <qnetworkproxy_p.h>

Inheritance diagram for QSystemConfigurationProxyFactory:
QNetworkProxyFactory

Public Functions

 QSystemConfigurationProxyFactory ()
 
virtual QList< QNetworkProxyqueryProxy (const QNetworkProxyQuery &query)
 This function takes the query request, query, examines the details of the type of socket or request and returns a list of QNetworkProxy objects that indicate the proxy servers to be used, in order of preference. More...
 
- Public Functions inherited from QNetworkProxyFactory
 QNetworkProxyFactory ()
 Creates a QNetworkProxyFactory object. More...
 
virtual ~QNetworkProxyFactory ()
 Destroys the QNetworkProxyFactory object. More...
 

Additional Inherited Members

- Static Public Functions inherited from QNetworkProxyFactory
static QList< QNetworkProxyproxyForQuery (const QNetworkProxyQuery &query)
 This function takes the query request, query, examines the details of the type of socket or request and returns a list of QNetworkProxy objects that indicate the proxy servers to be used, in order of preference. More...
 
static void setApplicationProxyFactory (QNetworkProxyFactory *factory)
 Sets the application-wide proxy factory to be factory. More...
 
static void setUseSystemConfiguration (bool enable)
 Enables the use of the platform-specific proxy settings, and only those. More...
 
static QList< QNetworkProxysystemProxyForQuery (const QNetworkProxyQuery &query=QNetworkProxyQuery())
 This function takes the query request, query, examines the details of the type of socket or request and returns a list of QNetworkProxy objects that indicate the proxy servers to be used, in order of preference. More...
 

Detailed Description

Definition at line 61 of file qnetworkproxy_p.h.

Constructors and Destructors

◆ QSystemConfigurationProxyFactory()

QSystemConfigurationProxyFactory::QSystemConfigurationProxyFactory ( )
inline

Definition at line 64 of file qnetworkproxy_p.h.

QNetworkProxyFactory()
Creates a QNetworkProxyFactory object.

Functions

◆ queryProxy()

virtual QList<QNetworkProxy> QSystemConfigurationProxyFactory::queryProxy ( const QNetworkProxyQuery query)
inlinevirtual

This function takes the query request, query, examines the details of the type of socket or request and returns a list of QNetworkProxy objects that indicate the proxy servers to be used, in order of preference.

When reimplementing this class, take care to return at least one element.

If you cannot determine a better proxy alternative, use QNetworkProxy::DefaultProxy, which tells the code querying for a proxy to use a higher alternative. For example, if this factory is set to a QNetworkAccessManager object, DefaultProxy will tell it to query the application-level proxy settings.

If this factory is set as the application proxy factory, DefaultProxy and NoProxy will have the same meaning.

Implements QNetworkProxyFactory.

Definition at line 66 of file qnetworkproxy_p.h.

67  {
69 
70  // Make sure NoProxy is in the list, so that QTcpServer can work:
71  // it searches for the first proxy that can has the ListeningCapability capability
72  // if none have (as is the case with HTTP proxies), it fails to bind.
73  // NoProxy allows it to fallback to the 'no proxy' case and bind.
75 
76  return proxies;
77  }
static QList< QNetworkProxy > systemProxyForQuery(const QNetworkProxyQuery &query=QNetworkProxyQuery())
This function takes the query request, query, examines the details of the type of socket or request a...
void append(const T &t)
Inserts value at the end of the list.
Definition: qlist.h:507

The documentation for this class was generated from the following file: