Skip to content

PythonQt.QtNetwork.QNetworkProxyQuery · declarations 001

Back to PythonQt.QtNetwork.QNetworkProxyQuery

QueryType instance-attribute

QueryType: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

TcpServer instance-attribute

TcpServer: QueryType

TcpSocket instance-attribute

TcpSocket: QueryType

UdpSocket instance-attribute

UdpSocket: QueryType

UrlRequest instance-attribute

UrlRequest: QueryType

localPort

localPort() -> int

X.localPort() -> int

Supplemental documentation: Qt 5 reference:

int QNetworkProxyQuery::localPort() const

Returns the port number of the socket that will accept incoming packets from remote servers or -1 if the port is not known.

See also peerPort(), peerHostName(), and setLocalPort().

Upstream PySide2 reference signatures (binding differences may apply):

localPort(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxyquery.html#localPort

networkConfiguration

networkConfiguration() -> Any

X.networkConfiguration() -> PythonQt.QtNetwork.QNetworkConfiguration

Upstream PySide2 reference signatures (binding differences may apply):

networkConfiguration(self) -> PySide2.QtNetwork.QNetworkConfiguration

Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxyquery.html#networkConfiguration

peerHostName

peerHostName() -> str

X.peerHostName() -> str

Supplemental documentation: Qt 5 reference:

QString QNetworkProxyQuery::peerHostName() const

Returns the host name or IP address being of the outgoing connection being requested, or an empty string if the remote hostname is not known.

If the query type is QNetworkProxyQuery::UrlRequest, this function returns the host component of the URL being requested.

See also peerPort(), localPort(), and setPeerHostName().

Upstream PySide2 reference signatures (binding differences may apply):

peerHostName(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxyquery.html#peerHostName

peerPort

peerPort() -> int

X.peerPort() -> int

Supplemental documentation: Qt 5 reference:

int QNetworkProxyQuery::peerPort() const

Returns the port number for the outgoing request or -1 if the port number is not known.

If the query type is QNetworkProxyQuery::UrlRequest, this function returns the port number of the URL being requested. In general, frameworks will fill in the port number from their default values.

See also peerHostName(), localPort(), and setPeerPort().

Upstream PySide2 reference signatures (binding differences may apply):

peerPort(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxyquery.html#peerPort

protocolTag

protocolTag() -> str

X.protocolTag() -> str

Supplemental documentation: Qt 5 reference:

QString QNetworkProxyQuery::protocolTag() const

Returns the protocol tag for this QNetworkProxyQuery object, or an empty QString in case the protocol tag is unknown.

In the case of queries of type QNetworkProxyQuery::UrlRequest, this function returns the value of the scheme component of the URL.

See also setProtocolTag() and url().

Upstream PySide2 reference signatures (binding differences may apply):

protocolTag(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxyquery.html#protocolTag

queryType

queryType() -> Any

X.queryType()

Supplemental documentation: Qt 5 reference:

QNetworkProxyQuery::QueryType QNetworkProxyQuery::queryType() const

Returns the query type.

See also setQueryType().

Upstream PySide2 reference signatures (binding differences may apply):

queryType(self) -> PySide2.QtNetwork.QNetworkProxyQuery.QueryType

Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxyquery.html#queryType

setLocalPort

setLocalPort(port: int) -> None

X.setLocalPort(port)

Supplemental documentation: Qt 5 reference:

void QNetworkProxyQuery::setLocalPort(int port)

Sets the port number that the socket wishes to use locally to accept incoming packets from remote servers to port. The local port is most often used with the QNetworkProxyQuery::TcpServer and QNetworkProxyQuery::UdpSocket query types.

Valid values are 0 to 65535 (with 0 indicating that any port number will be acceptable) or -1, which means the local port number is unknown or not applicable.

In some circumstances, for special protocols, it's the local port number can also be used with a query of type QNetworkProxyQuery::TcpSocket. When that happens, the socket is indicating it wishes to use the port number port when connecting to a remote host.

See also localPort(), setPeerPort(), and setPeerHostName().

Upstream PySide2 reference signatures (binding differences may apply):

setLocalPort(self, port: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxyquery.html#setLocalPort

setNetworkConfiguration

setNetworkConfiguration(networkConfiguration: Any) -> None

X.setNetworkConfiguration(networkConfiguration)

Upstream PySide2 reference signatures (binding differences may apply):

setNetworkConfiguration(self, networkConfiguration: PySide2.QtNetwork.QNetworkConfiguration) -> None

Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxyquery.html#setNetworkConfiguration

setPeerHostName

setPeerHostName(hostname: str) -> None

X.setPeerHostName(hostname)

Supplemental documentation: Qt 5 reference:

void QNetworkProxyQuery::setPeerHostName(const QString \&hostname)

Sets the hostname of the outgoing connection being requested to hostname. An empty hostname can be used to indicate that the remote host is unknown.

The peer host name can also be used to indicate the expected source address of an incoming connection in the case of QNetworkProxyQuery::UdpSocket or QNetworkProxyQuery::TcpServer query types.

See also peerHostName(), setPeerPort(), and setLocalPort().

Upstream PySide2 reference signatures (binding differences may apply):

setPeerHostName(self, hostname: str) -> None

Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxyquery.html#setPeerHostName

setPeerPort

setPeerPort(port: int) -> None

X.setPeerPort(port)

Supplemental documentation: Qt 5 reference:

void QNetworkProxyQuery::setPeerPort(int port)

Sets the requested port number for the outgoing connection to be port. Valid values are 1 to 65535, or -1 to indicate that the remote port number is unknown.

The peer port number can also be used to indicate the expected port number of an incoming connection in the case of QNetworkProxyQuery::UdpSocket or QNetworkProxyQuery::TcpServer query types.

See also peerPort(), setPeerHostName(), and setLocalPort().

Upstream PySide2 reference signatures (binding differences may apply):

setPeerPort(self, port: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxyquery.html#setPeerPort

setProtocolTag

setProtocolTag(protocolTag: str) -> None

X.setProtocolTag(protocolTag)

Supplemental documentation: Qt 5 reference:

void QNetworkProxyQuery::setProtocolTag(const QString \&protocolTag)

Sets the protocol tag for this QNetworkProxyQuery object to be protocolTag.

The protocol tag is an arbitrary string that indicates which protocol is being talked over the socket, such as "http", "xmpp", "telnet", etc. The protocol tag is used by the backend to return a request that is more specific to the protocol in question: for example, a HTTP connection could be use a caching HTTP proxy server, while all other connections use a more powerful SOCKSv5 proxy server.

See also protocolTag().

Upstream PySide2 reference signatures (binding differences may apply):

setProtocolTag(self, protocolTag: str) -> None

Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxyquery.html#setProtocolTag

setQueryType

setQueryType(type: Any) -> None

X.setQueryType(type)

Supplemental documentation: Qt 5 reference:

void QNetworkProxyQuery::setQueryType(QNetworkProxyQuery::QueryType type)

Sets the query type of this object to be type.

See also queryType().

Upstream PySide2 reference signatures (binding differences may apply):

setQueryType(self, type: PySide2.QtNetwork.QNetworkProxyQuery.QueryType) -> None

Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxyquery.html#setQueryType

setUrl

setUrl(url: Any) -> None

X.setUrl(url)

Supplemental documentation: Qt 5 reference:

void QNetworkProxyQuery::setUrl(const QUrl \&url)

Sets the URL component of this QNetworkProxyQuery object to be url. Setting the URL will also set the protocol tag, the remote host name and port number. This is done so as to facilitate the implementation of the code that determines the proxy server to be used.

See also url(), peerHostName(), and peerPort().

Upstream PySide2 reference signatures (binding differences may apply):

setUrl(self, url: PySide2.QtCore.QUrl) -> None

Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxyquery.html#setUrl

swap

swap(other: Any) -> None

X.swap(other)

Supplemental documentation: Qt 5 reference:

void QNetworkProxyQuery::swap(QNetworkProxyQuery \&other)

Swaps this network proxy query instance with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

Upstream PySide2 reference signatures (binding differences may apply):

swap(self, other: PySide2.QtNetwork.QNetworkProxyQuery) -> None

Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxyquery.html#swap

url

url() -> Any

X.url() -> PythonQt.QtCore.QUrl

Supplemental documentation: Qt 5 reference:

QUrl QNetworkProxyQuery::url() const

Returns the URL component of this QNetworkProxyQuery object in case of a query of type QNetworkProxyQuery::UrlRequest.

See also setUrl().

Upstream PySide2 reference signatures (binding differences may apply):

url(self) -> PySide2.QtCore.QUrl

Source: https://doc.qt.io/archives/qt-5.15/qnetworkproxyquery.html#url