7#include <QtNetwork/qtnetworkglobal.h>
8#include <QtNetwork/qhostaddress.h>
9#include <QtNetwork/qnetworkrequest.h>
10#include <QtCore/qshareddata.h>
12#ifndef QT_NO_NETWORKPROXY
38 QueryType queryType = TcpSocket);
40 QueryType queryType = TcpServer);
50 {
return !(*
this ==
other); }
52 QueryType queryType()
const;
53 void setQueryType(QueryType
type);
56 void setPeerPort(
int port);
59 void setPeerHostName(
const QString &hostname);
61 int localPort()
const;
62 void setLocalPort(
int port);
65 void setProtocolTag(
const QString &protocolTag);
91 TunnelingCapability = 0x0001,
92 ListeningCapability = 0x0002,
93 UdpTunnelingCapability = 0x0004,
94 CachingCapability = 0x0008,
95 HostNameLookupCapability = 0x0010,
96 SctpTunnelingCapability = 0x00020,
97 SctpListeningCapability = 0x00040
113 {
return !(*
this ==
other); }
118 void setCapabilities(Capabilities capab);
119 Capabilities capabilities()
const;
120 bool isCachingProxy()
const;
121 bool isTransparentProxy()
const;
163 static bool usesSystemConfiguration();
164 static void setUseSystemConfiguration(
bool enable);
170#ifndef QT_NO_DEBUG_STREAM
The QNetworkProxyFactory class provides fine-grained proxy selection.
virtual QList< QNetworkProxy > queryProxy(const QNetworkProxyQuery &query=QNetworkProxyQuery())=0
This function takes the query request, query, examines the details of the type of socket or request a...
The QNetworkProxyQuery class is used to query the proxy settings for a socket.
QueryType
Describes the type of one QNetworkProxyQuery query.
bool operator!=(const QNetworkProxyQuery &other) const
Returns true if this QNetworkProxyQuery object does not contain the same data as other.
QNetworkProxyQuery & operator=(QNetworkProxyQuery &&other) noexcept
void swap(QNetworkProxyQuery &other) noexcept
The QNetworkProxy class provides a network layer proxy.
ProxyType
This enum describes the types of network proxying provided in Qt.
void swap(QNetworkProxy &other) noexcept
QNetworkProxy & operator=(QNetworkProxy &&other) noexcept
bool operator!=(const QNetworkProxy &other) const
KnownHeaders
List of known header types that QNetworkRequest parses.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
static QString header(const QString &name)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
Q_NETWORK_EXPORT QDebug operator<<(QDebug debug, const QNetworkProxy &proxy)
static QByteArray headerName(QNetworkRequest::KnownHeaders header)
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
request setUrl(QUrl("http://qt-project.org"))
QUrl url("example.com")
[constructor-url-reference]
QItemEditorFactory * factory
textPart setHeader(QNetworkRequest::ContentDispositionHeader, QVariant("form-data; name=\"text\""))
imagePart setRawHeader("Content-ID", "my@content.id")
proxy setUser("username")
proxy setPassword("password")
proxy setHostName("proxy.example.com")
proxy setType(QNetworkProxy::Socks5Proxy)