Obsolete Members for QNetworkProxyQuery

以下成员源于类 QNetworkProxyQuery 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共函数

(obsolete) QNetworkProxyQuery (const QNetworkConfiguration & networkConfiguration , quint16 bindPort , const QString & protocolTag = QString(), QNetworkProxyQuery::QueryType queryType = TcpServer)
(obsolete) QNetworkProxyQuery (const QNetworkConfiguration & networkConfiguration , const QString & hostname , int port , const QString & protocolTag = QString(), QNetworkProxyQuery::QueryType queryType = TcpSocket)
(obsolete) QNetworkProxyQuery (const QNetworkConfiguration & networkConfiguration , const QUrl & requestUrl , QNetworkProxyQuery::QueryType queryType = UrlRequest)
(obsolete) QNetworkConfiguration networkConfiguration () const
(obsolete) void setNetworkConfiguration (const QNetworkConfiguration & 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 。指定 networkConfiguration 参数被忽略。

注意, 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.

另请参阅 localPort () 和 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 。指定 networkConfiguration 参数被忽略。

另请参阅 networkConfiguration ().

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 。指定 networkConfiguration 参数被忽略。

另请参阅 protocolTag (), peerHostName (), peerPort (),和 networkConfiguration ().

QNetworkConfiguration QNetworkProxyQuery:: networkConfiguration () const

此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

Returns QNetworkConfiguration().

另请参阅 setNetworkConfiguration ().

void QNetworkProxyQuery:: setNetworkConfiguration (const QNetworkConfiguration & networkConfiguration )

此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

This function does nothing. The specified networkConfiguration 参数被忽略。

另请参阅 networkConfiguration ().