QNetworkProxy Class Reference |
Constant | Value | Description |
---|---|---|
QNetworkProxy::DefaultProxy | 0 | Proxy is determined based on the application proxy set using setApplicationProxy() |
QNetworkProxy::Socks5Proxy | 1 | Socks5 proxying is used |
QNetworkProxy::NoProxy | 2 | No proxying is used |
QNetworkProxy::HttpProxy | 3 | Http proxying is used |
While Socks5 proxying works for both Tcp and Udp sockets, Http proxying is limited to Tcp connections. Http proxying also doesn't support binding sockets.
See also setType() and type().
Constructs a QNetworkProxy with DefaultProxy type; the proxy type is determined by applicationProxy(), which defaults to NoProxy.
See also setType() and setApplicationProxy().
Constructs a QNetworkProxy with type, hostName, port, user and password.
Constructs a copy of other.
Destroys the QNetworkProxy object.
Returns the application level network proxying.
If a QAbstractSocket or QTcpSocket has the QNetworkProxy::DefaultProxy type, then the QNetworkProxy returned by this function is used.
See also setApplicationProxy(), QAbstractSocket::proxy(), and QTcpServer::proxy().
Returns the host name of the proxy host.
See also setHostName(), setPort(), and port().
Returns the password used for authentication.
See also user(), setPassword(), and setUser().
Returns the port of the proxy host.
See also setHostName(), setPort(), and hostName().
Sets the application level network proxying to be networkProxy.
If a QAbstractSocket or QTcpSocket has the QNetworkProxy::DefaultProxy type, then the QNetworkProxy set with this function is used.
See also applicationProxy(), QAbstractSocket::setProxy(), and QTcpServer::setProxy().
Sets the host name of the proxy host to be hostName.
See also hostName(), setPort(), and port().
Sets the password for proxy authentication to be password.
See also user(), setUser(), and password().
Sets the port of the proxy host to be port.
See also hostName(), setHostName(), and port().
Sets the proxy type for this instance to be type.
See also type().
Sets the user name for proxy authentication to be user.
See also user(), setPassword(), and password().
Returns the proxy type for this instance.
See also setType().
Returns the user name used for authentication.
See also setUser(), setPassword(), and password().
Assigns the value of the network proxy other to this network proxy.
This function was introduced in Qt 4.2.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt 4.3 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com