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);
71 QSharedDataPointer<QNetworkProxyQueryPrivate>
d;
92 TunnelingCapability = 0x0001,
93 ListeningCapability = 0x0002,
94 UdpTunnelingCapability = 0x0004,
95 CachingCapability = 0x0008,
96 HostNameLookupCapability = 0x0010,
97 SctpTunnelingCapability = 0x00020,
98 SctpListeningCapability = 0x00040
114 {
return !(*
this ==
other); }
119 void setCapabilities(Capabilities capab);
120 Capabilities capabilities()
const;
121 bool isCachingProxy()
const;
122 bool isTransparentProxy()
const;
148 bool hasRawHeader(
const QByteArray &headerName)
const;
149 QList<QByteArray> rawHeaderList()
const;
154 QSharedDataPointer<QNetworkProxyPrivate>
d;
168 static bool usesSystemConfiguration();
169 static void setUseSystemConfiguration(
bool enable);
175#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)
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)