QNetworkProxy Class Reference

#include <qnetworkproxy.h>

Class Description

Definition at line 123 of file qnetworkproxy.h.

Public Types

enum  ProxyType {
  DefaultProxy, Socks5Proxy, NoProxy, HttpProxy,
  HttpCachingProxy, FtpCachingProxy
}
 
enum  Capability {
  TunnelingCapability = 0x0001, ListeningCapability = 0x0002, UdpTunnelingCapability = 0x0004, CachingCapability = 0x0008,
  HostNameLookupCapability = 0x0010
}
 

Public Member Functions

 QNetworkProxy ()
 
 QNetworkProxy (ProxyType type, const QString &hostName=QString(), quint16 port=0, const QString &user=QString(), const QString &password=QString())
 
 QNetworkProxy (const QNetworkProxy &other)
 
QNetworkProxyoperator= (const QNetworkProxy &other)
 
 ~QNetworkProxy ()
 
bool operator== (const QNetworkProxy &other) const
 
bool operator!= (const QNetworkProxy &other) const
 
void setType (QNetworkProxy::ProxyType type)
 
QNetworkProxy::ProxyType type () const
 
void setCapabilities (Capabilities capab)
 
Capabilities capabilities () const
 
bool isCachingProxy () const
 
bool isTransparentProxy () const
 
void setUser (const QString &userName)
 
QString user () const
 
void setPassword (const QString &password)
 
QString password () const
 
void setHostName (const QString &hostName)
 
QString hostName () const
 
void setPort (quint16 port)
 
quint16 port () const
 

Static Public Member Functions

static void setApplicationProxy (const QNetworkProxy &proxy)
 
static QNetworkProxy applicationProxy ()
 

Member Enumeration Documentation

enum ProxyType
Enumerator
DefaultProxy 
Socks5Proxy 
NoProxy 
HttpProxy 
HttpCachingProxy 
FtpCachingProxy 

Definition at line 126 of file qnetworkproxy.h.

enum Capability
Enumerator
TunnelingCapability 
ListeningCapability 
UdpTunnelingCapability 
CachingCapability 
HostNameLookupCapability 

Definition at line 135 of file qnetworkproxy.h.

Constructor & Destructor Documentation

QNetworkProxy ( ProxyType  type,
const QString hostName = QString(),
quint16  port = 0,
const QString user = QString(),
const QString password = QString() 
)
QNetworkProxy ( const QNetworkProxy other)

Member Function Documentation

QNetworkProxy& operator= ( const QNetworkProxy other)
bool operator== ( const QNetworkProxy other) const
bool operator!= ( const QNetworkProxy other) const
inline

Definition at line 151 of file qnetworkproxy.h.

152  { return !(*this == other); }
void setType ( QNetworkProxy::ProxyType  type)
void setCapabilities ( Capabilities  capab)
Capabilities capabilities ( ) const
bool isCachingProxy ( ) const
bool isTransparentProxy ( ) const
void setUser ( const QString userName)
QString user ( ) const
void setPassword ( const QString password)
QString password ( ) const
void setHostName ( const QString hostName)
QString hostName ( ) const
void setPort ( quint16  port)
quint16 port ( ) const
static void setApplicationProxy ( const QNetworkProxy proxy)
static
static QNetworkProxy applicationProxy ( )
static

The documentation for this class was generated from the following file: