<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qnetworkproxy.cpp --> <title>Obsolete Members for QNetworkProxyQuery | Qt Network 5.12.2</title> <link rel="stylesheet" type="text/css" href="style/offline-simple.css" /> <script type="text/javascript"> document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css"); // loading style sheet breaks anchors that were jumped to before // so force jumping to anchor again setTimeout(function() { var anchor = location.hash; // need to jump to different anchor first (e.g. none) location.hash = "#"; setTimeout(function() { location.hash = anchor; }, 0); }, 0); </script> </head> <body> <div class="header" id="qtdocheader"> <div class="main"> <div class="main-rounded"> <div class="navigationbar"> <table><tr> <td >Qt 5.12</td><td ><a href="qtnetwork-index.html">Qt Network</a></td><td ><a href="qtnetwork-module.html">C++ Classes</a></td><td >QNetworkProxyQuery</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right"><a href="qtnetwork-index.html">Qt 5.12.2 Reference Documentation</a></td> </tr></table> </div> </div> <div class="content"> <div class="line"> <div class="content mainContent"> <div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">Obsolete Members for QNetworkProxyQuery</h1> <p><b>The following members of class <a href="qnetworkproxyquery.html">QNetworkProxyQuery</a> are obsolete.</b> They are provided to keep old source code working. We strongly advise against using them in new code.</p> <h2>Public Functions</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code></td><td class="memItemRight bottomAlign"><b><a href="qnetworkproxyquery-obsolete.html#QNetworkProxyQuery-4">QNetworkProxyQuery</a></b>(const QNetworkConfiguration &<i>networkConfiguration</i>, const QUrl &<i>requestUrl</i>, QNetworkProxyQuery::QueryType <i>queryType</i> = UrlRequest)</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code></td><td class="memItemRight bottomAlign"><b><a href="qnetworkproxyquery-obsolete.html#QNetworkProxyQuery-5">QNetworkProxyQuery</a></b>(const QNetworkConfiguration &<i>networkConfiguration</i>, const QString &<i>hostname</i>, int <i>port</i>, const QString &<i>protocolTag</i> = QString(), QNetworkProxyQuery::QueryType <i>queryType</i> = TcpSocket)</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code></td><td class="memItemRight bottomAlign"><b><a href="qnetworkproxyquery-obsolete.html#QNetworkProxyQuery-6">QNetworkProxyQuery</a></b>(const QNetworkConfiguration &<i>networkConfiguration</i>, quint16 <i>bindPort</i>, const QString &<i>protocolTag</i> = QString(), QNetworkProxyQuery::QueryType <i>queryType</i> = TcpServer)</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>QNetworkConfiguration </td><td class="memItemRight bottomAlign"><b><a href="qnetworkproxyquery-obsolete.html#networkConfiguration">networkConfiguration</a></b>() const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>void </td><td class="memItemRight bottomAlign"><b><a href="qnetworkproxyquery-obsolete.html#setNetworkConfiguration">setNetworkConfiguration</a></b>(const QNetworkConfiguration &<i>networkConfiguration</i>)</td></tr> </table></div> <h2>Member Function Documentation</h2> <!-- $$$QNetworkProxyQuery$$$QNetworkProxyQueryconstQNetworkConfiguration&constQUrl&QNetworkProxyQuery::QueryType --> <h3 class="fn" id="QNetworkProxyQuery-4"><a name="QNetworkProxyQuery-4"></a>QNetworkProxyQuery::<span class="name">QNetworkProxyQuery</span>(const <span class="type"><a href="qnetworkconfiguration.html">QNetworkConfiguration</a></span> &<i>networkConfiguration</i>, const <span class="type"><a href="../qtcore/qurl.html">QUrl</a></span> &<i>requestUrl</i>, <span class="type"><a href="qnetworkproxyquery.html#QueryType-enum">QNetworkProxyQuery::QueryType</a></span> <i>queryType</i> = UrlRequest)</h3> <p>This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.</p> <p>Constructs a <a href="qnetworkproxyquery.html">QNetworkProxyQuery</a> with the URL <i>requestUrl</i> and sets the query type to <i>queryType</i>. The specified <i>networkConfiguration</i> parameter is ignored.</p> <p><b>See also </b><a href="qnetworkproxyquery.html#protocolTag">protocolTag</a>(), <a href="qnetworkproxyquery.html#peerHostName">peerHostName</a>(), <a href="qnetworkproxyquery.html#peerPort">peerPort</a>(), and <a href="qnetworkproxyquery-obsolete.html#networkConfiguration">networkConfiguration</a>().</p> <!-- @@@QNetworkProxyQuery --> <!-- $$$QNetworkProxyQuery$$$QNetworkProxyQueryconstQNetworkConfiguration&constQString&intconstQString&QNetworkProxyQuery::QueryType --> <h3 class="fn" id="QNetworkProxyQuery-5"><a name="QNetworkProxyQuery-5"></a>QNetworkProxyQuery::<span class="name">QNetworkProxyQuery</span>(const <span class="type"><a href="qnetworkconfiguration.html">QNetworkConfiguration</a></span> &<i>networkConfiguration</i>, const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &<i>hostname</i>, <span class="type">int</span> <i>port</i>, const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &<i>protocolTag</i> = QString(), <span class="type"><a href="qnetworkproxyquery.html#QueryType-enum">QNetworkProxyQuery::QueryType</a></span> <i>queryType</i> = TcpSocket)</h3> <p>This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.</p> <p>Constructs a <a href="qnetworkproxyquery.html">QNetworkProxyQuery</a> of type <i>queryType</i> and sets the protocol tag to be <i>protocolTag</i>. This constructor is suitable for <a href="qnetworkproxyquery.html#QueryType-enum">QNetworkProxyQuery::TcpSocket</a> queries, because it sets the peer hostname to <i>hostname</i> and the peer's port number to <i>port</i>. The specified <i>networkConfiguration</i> parameter is ignored.</p> <p><b>See also </b><a href="qnetworkproxyquery-obsolete.html#networkConfiguration">networkConfiguration</a>().</p> <!-- @@@QNetworkProxyQuery --> <!-- $$$QNetworkProxyQuery$$$QNetworkProxyQueryconstQNetworkConfiguration&quint16constQString&QNetworkProxyQuery::QueryType --> <h3 class="fn" id="QNetworkProxyQuery-6"><a name="QNetworkProxyQuery-6"></a>QNetworkProxyQuery::<span class="name">QNetworkProxyQuery</span>(const <span class="type"><a href="qnetworkconfiguration.html">QNetworkConfiguration</a></span> &<i>networkConfiguration</i>, <span class="type"><a href="../qtcore/qtglobal.html#quint16-typedef">quint16</a></span> <i>bindPort</i>, const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &<i>protocolTag</i> = QString(), <span class="type"><a href="qnetworkproxyquery.html#QueryType-enum">QNetworkProxyQuery::QueryType</a></span> <i>queryType</i> = TcpServer)</h3> <p>This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.</p> <p>Constructs a <a href="qnetworkproxyquery.html">QNetworkProxyQuery</a> of type <i>queryType</i> and sets the protocol tag to be <i>protocolTag</i>. This constructor is suitable for <a href="qnetworkproxyquery.html#QueryType-enum">QNetworkProxyQuery::TcpSocket</a> queries because it sets the local port number to <i>bindPort</i>. The specified <i>networkConfiguration</i> parameter is ignored.</p> <p>Note that <i>bindPort</i> is of type quint16 to indicate the exact port number that is requested. The value of -1 (unknown) is not allowed in this context.</p> <p><b>See also </b><a href="qnetworkproxyquery.html#localPort">localPort</a>() and <a href="qnetworkproxyquery-obsolete.html#networkConfiguration">networkConfiguration</a>().</p> <!-- @@@QNetworkProxyQuery --> <!-- $$$networkConfiguration[overload1]$$$networkConfiguration --> <h3 class="fn" id="networkConfiguration"><a name="networkConfiguration"></a><span class="type"><a href="qnetworkconfiguration.html">QNetworkConfiguration</a></span> QNetworkProxyQuery::<span class="name">networkConfiguration</span>() const</h3> <p>This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.</p> <p>Returns QNetworkConfiguration().</p> <p><b>See also </b><a href="qnetworkproxyquery-obsolete.html#setNetworkConfiguration">setNetworkConfiguration</a>().</p> <!-- @@@networkConfiguration --> <!-- $$$setNetworkConfiguration[overload1]$$$setNetworkConfigurationconstQNetworkConfiguration& --> <h3 class="fn" id="setNetworkConfiguration"><a name="setNetworkConfiguration"></a><span class="type">void</span> QNetworkProxyQuery::<span class="name">setNetworkConfiguration</span>(const <span class="type"><a href="qnetworkconfiguration.html">QNetworkConfiguration</a></span> &<i>networkConfiguration</i>)</h3> <p>This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.</p> <p>This function does nothing. The specified <i>networkConfiguration</i> parameter is ignored.</p> <p><b>See also </b><a href="qnetworkproxyquery-obsolete.html#networkConfiguration">networkConfiguration</a>().</p> <!-- @@@setNetworkConfiguration --> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.<br/> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br/> 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. </p> </div> </body> </html>