qutim_sdk_0_3::NetworkProxyManager Class Referenceabstract

#include <networkproxy.h>

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 ( )

Destroyes the object.

Member Function Documentation

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

Returns all proxy managers.

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

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.

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

Returns global proxy settings.

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

Returns proxy settings for the account.

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

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

Converts the proxy settings to QNetworkProxy.

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

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

Generated by Doxygen