com.trolltech.qt.network
Class QNetworkProxy.Capability

java.lang.Object
  extended by java.lang.Enum
      extended by com.trolltech.qt.network.QNetworkProxy.Capability
All Implemented Interfaces:
QtEnumerator, java.io.Serializable, java.lang.Comparable
Enclosing class:
QNetworkProxy

public static final class QNetworkProxy.Capability
extends java.lang.Enum
implements QtEnumerator

These flags indicate the capabilities that a given proxy server supports.

QNetworkProxy sets different capabilities by default when the object is created (see QNetworkProxy::ProxyType for a list of the defaults). However, it is possible to change the capabitilies after the object has been created with setCapabilities().

The capabilities that QNetworkProxy supports are:

See Also:
Serialized Form

Field Summary
static QNetworkProxy.Capability CachingCapability
          Ability to cache the contents of the transfer.
static QNetworkProxy.Capability HostNameLookupCapability
          Ability to connect to perform the lookup on a remote host name and connect to it, as opposed to requiring the application to perform the name lookup and request connection to IP addresses only.
static QNetworkProxy.Capability ListeningCapability
          Ability to create a listening socket and wait for an incoming TCP connection from a remote host.
static QNetworkProxy.Capability TunnelingCapability
          Ability to open transparent, tunneled TCP connections to a remote host.
static QNetworkProxy.Capability UdpTunnelingCapability
          Ability to relay UDP datagrams via the proxy server to and from a remote host.
 
Method Summary
static QNetworkProxy.Capabilities createQFlags(QNetworkProxy.Capability[] values)
          This function creates a com.trolltech.qt.network.QNetworkProxy$Capabilities with the specified com.trolltech.qt.network.QNetworkProxy$Capability[] QNetworkProxy$Capability values set.
static QNetworkProxy.Capability resolve(int value)
          Returns the QNetworkProxy$Capability constant with the specified int.
 int value()
          This function should return an integer value for the enum values of the enumeration that implements this interface.
static QNetworkProxy.Capability valueOf(java.lang.String name)
           
static QNetworkProxy.Capability[] values()
           
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TunnelingCapability

public static final QNetworkProxy.Capability TunnelingCapability
Ability to open transparent, tunneled TCP connections to a remote host. The proxy server relays the transmission verbatim from one side to the other and does no caching.


ListeningCapability

public static final QNetworkProxy.Capability ListeningCapability
Ability to create a listening socket and wait for an incoming TCP connection from a remote host.


UdpTunnelingCapability

public static final QNetworkProxy.Capability UdpTunnelingCapability
Ability to relay UDP datagrams via the proxy server to and from a remote host.


CachingCapability

public static final QNetworkProxy.Capability CachingCapability
Ability to cache the contents of the transfer. This capability is specific to each protocol and proxy type. For example, HTTP proxies can cache the contents of web data transferred with "GET" commands.


HostNameLookupCapability

public static final QNetworkProxy.Capability HostNameLookupCapability
Ability to connect to perform the lookup on a remote host name and connect to it, as opposed to requiring the application to perform the name lookup and request connection to IP addresses only.

Method Detail

values

public static QNetworkProxy.Capability[] values()

valueOf

public static QNetworkProxy.Capability valueOf(java.lang.String name)

value

public int value()
This function should return an integer value for the enum values of the enumeration that implements this interface.

Specified by:
value in interface QtEnumerator

createQFlags

public static QNetworkProxy.Capabilities createQFlags(QNetworkProxy.Capability[] values)
This function creates a com.trolltech.qt.network.QNetworkProxy$Capabilities with the specified com.trolltech.qt.network.QNetworkProxy$Capability[] QNetworkProxy$Capability values set.


resolve

public static QNetworkProxy.Capability resolve(int value)
Returns the QNetworkProxy$Capability constant with the specified int.