libqutim  0.3.1.0
qutim_sdk_0_3::NetworkProxyManager Class Reference

#include <networkproxy.h>

List of all members.

Public Member Functions

 NetworkProxyManager (Protocol *protocol)
virtual ~NetworkProxyManager ()
Protocolprotocol ()
virtual QList< NetworkProxyInfo * > proxies ()=0
virtual void setProxy (Account *account, NetworkProxyInfo *proxy, const DataItem &settings)=0

Static Public Member Functions

static QList
< NetworkProxyManager * > 
allManagers ()
static NetworkProxyManagerget (Protocol *protocol)
static DataItem settings ()
static DataItem settings (Account *account)
static QNetworkProxy toNetworkProxy (const DataItem &settings)

Protected Member Functions

virtual void virtual_hook (int id, void *data)

Detailed Description

The NetworkProxyManager class provides an interface to manipulate proxies.

The class is used to get the list of proxies and to set a new proxy to be used by an account.


Constructor & Destructor Documentation

qutim_sdk_0_3::NetworkProxyManager::NetworkProxyManager ( Protocol protocol)

Constructs a new NetworkProxyManager with the given protocol.

virtual qutim_sdk_0_3::NetworkProxyManager::~NetworkProxyManager ( )
virtual

Destroyes the object.


Member Function Documentation

static QList<NetworkProxyManager*> qutim_sdk_0_3::NetworkProxyManager::allManagers ( )
static

Returns all proxy managers.

static NetworkProxyManager* qutim_sdk_0_3::NetworkProxyManager::get ( Protocol protocol)
static

Returns the NetworkProxyManager for the protocol.

Protocol* qutim_sdk_0_3::NetworkProxyManager::protocol ( )

Returns the protocol this NetworkProxyManager is for.

virtual QList<NetworkProxyInfo*> qutim_sdk_0_3::NetworkProxyManager::proxies ( )
pure virtual

Returns the list of proxies.

virtual void qutim_sdk_0_3::NetworkProxyManager::setProxy ( Account account,
NetworkProxyInfo proxy,
const DataItem settings 
)
pure virtual

Sets the new proxy to be used by the account.

Parameters:
settingsthe settings data form this proxy will be initialized with.
static DataItem qutim_sdk_0_3::NetworkProxyManager::settings ( )
static

Returns global proxy settings.

static DataItem qutim_sdk_0_3::NetworkProxyManager::settings ( Account account)
static

Returns proxy settings for the account.

If the account uses global proxy settings, global proxy settings will be returned.

See also:
settings().
static QNetworkProxy qutim_sdk_0_3::NetworkProxyManager::toNetworkProxy ( const DataItem settings)
static

Converts the proxy settings to QNetworkProxy.

virtual void qutim_sdk_0_3::NetworkProxyManager::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

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

Generated by Doxygen