42 #ifndef QNETWORKPROXY_H 43 #define QNETWORKPROXY_H 45 #include <QtNetwork/qhostaddress.h> 46 #include <QtCore/qshareddata.h> 48 #ifndef QT_NO_NETWORKPROXY 77 #ifndef QT_NO_BEARERMANAGEMENT 91 {
return !(*
this == other); }
97 void setPeerPort(
int port);
100 void setPeerHostName(
const QString &hostname);
102 int localPort()
const;
103 void setLocalPort(
int port);
106 void setProtocolTag(
const QString &protocolTag);
109 void setUrl(
const QUrl &url);
111 #ifndef QT_NO_BEARERMANAGEMENT 136 TunnelingCapability = 0x0001,
137 ListeningCapability = 0x0002,
138 UdpTunnelingCapability = 0x0004,
139 CachingCapability = 0x0008,
140 HostNameLookupCapability = 0x0010
152 {
return !(*
this == other); }
157 void setCapabilities(Capabilities capab);
158 Capabilities capabilities()
const;
159 bool isCachingProxy()
const;
160 bool isTransparentProxy()
const;
162 void setUser(
const QString &userName);
165 void setPassword(
const QString &password);
168 void setHostName(
const QString &hostName);
185 QNetworkProxyFactory();
186 virtual ~QNetworkProxyFactory();
190 static void setUseSystemConfiguration(
bool enable);
191 static void setApplicationProxyFactory(QNetworkProxyFactory *factory);
200 #endif // QT_NO_NETWORKPROXY 202 #endif // QHOSTINFO_H
#define QT_END_NAMESPACE
This macro expands to.
#define Q_DECLARE_FLAGS(Flags, Enum)
The Q_DECLARE_FLAGS() macro expands to.
QSharedDataPointer< QNetworkProxyPrivate > d
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
The QNetworkProxyFactory class provides fine-grained proxy selection.
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.
The QNetworkProxy class provides a network layer proxy.
The QNetworkConfiguration class provides an abstraction of one or more access point configurations...
#define QT_BEGIN_NAMESPACE
This macro expands to.
QSharedDataPointer< QNetworkProxyQueryPrivate > d
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
The Q_DECLARE_OPERATORS_FOR_FLAGS() macro declares global operator|() functions for Flags...
Capability
These flags indicate the capabilities that a given proxy server supports.
The QNetworkProxyQuery class is used to query the proxy settings for a socket.
Q_DECLARE_TYPEINFO(QNetworkProxyQuery, Q_MOVABLE_TYPE)
bool operator==(QBool b1, bool b2)
bool operator!=(const QNetworkProxy &other) const
Compares the value of this network proxy to other and returns true if they differ.
ProxyType
This enum describes the types of network proxying provided in Qt.