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)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Returns QNetworkConfiguration().

See also setNetworkConfiguration().

void QNetworkProxyQuery::setNetworkConfiguration(const QNetworkConfiguration &networkConfiguration)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

This function does nothing. The specified networkConfiguration parameter is ignored.

See also networkConfiguration().

© 2020 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.