Obsolete Members for QNetworkProxyQuery
The following members of class QNetworkProxyQuery are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
Public Functions
(obsolete) | QNetworkProxyQuery(const QNetworkConfiguration &networkConfiguration, const QUrl &requestUrl, QNetworkProxyQuery::QueryType queryType = UrlRequest) |
(obsolete) | QNetworkProxyQuery(const QNetworkConfiguration &networkConfiguration, const QString &hostname, int port, const QString &protocolTag = QString(), QNetworkProxyQuery::QueryType queryType = TcpSocket) |
(obsolete) | QNetworkProxyQuery(const QNetworkConfiguration &networkConfiguration, quint16 bindPort, const QString &protocolTag = QString(), QNetworkProxyQuery::QueryType queryType = TcpServer) |
(obsolete) QNetworkConfiguration | networkConfiguration() const |
(obsolete) void | setNetworkConfiguration(const QNetworkConfiguration &networkConfiguration) |
Member Function Documentation
QNetworkProxyQuery::QNetworkProxyQuery(const QNetworkConfiguration &networkConfiguration, const QUrl &requestUrl, QNetworkProxyQuery::QueryType queryType = UrlRequest)
Constructs a QNetworkProxyQuery with the URL requestUrl and sets the query type to queryType. The specified networkConfiguration parameter is ignored.
See also protocolTag(), peerHostName(), peerPort(), and networkConfiguration().
QNetworkProxyQuery::QNetworkProxyQuery(const QNetworkConfiguration &networkConfiguration, const QString &hostname, int port, const QString &protocolTag = QString(), QNetworkProxyQuery::QueryType queryType = TcpSocket)
Constructs a QNetworkProxyQuery of type queryType and sets the protocol tag to be protocolTag. This constructor is suitable for QNetworkProxyQuery::TcpSocket queries, because it sets the peer hostname to hostname and the peer's port number to port. The specified networkConfiguration parameter is ignored.
See also networkConfiguration().
QNetworkProxyQuery::QNetworkProxyQuery(const QNetworkConfiguration &networkConfiguration, quint16 bindPort, const QString &protocolTag = QString(), QNetworkProxyQuery::QueryType queryType = TcpServer)
Constructs a QNetworkProxyQuery of type queryType and sets the protocol tag to be protocolTag. This constructor is suitable for QNetworkProxyQuery::TcpSocket queries because it sets the local port number to bindPort. The specified networkConfiguration parameter is ignored.
Note that bindPort is of type quint16 to indicate the exact port number that is requested. The value of -1 (unknown) is not allowed in this context.
See also localPort() and networkConfiguration().
QNetworkConfiguration QNetworkProxyQuery::networkConfiguration() const
Returns QNetworkConfiguration().
See also setNetworkConfiguration().
void QNetworkProxyQuery::setNetworkConfiguration(const QNetworkConfiguration &networkConfiguration)
This function does nothing. The specified networkConfiguration parameter is ignored.
See also networkConfiguration().