qutim_sdk_0_3::NetworkProxyInfo Class Referenceabstract

#include <networkproxy.h>

+ Inheritance diagram for qutim_sdk_0_3::NetworkProxyInfo:

Public Member Functions

 NetworkProxyInfo ()
virtual ~NetworkProxyInfo ()
virtual LocalizedString description ()=0
virtual QIcon icon ()
virtual QString name ()=0
virtual void saveSettings (Config config, const DataItem &settings)=0
virtual DataItem settings (const Config &config)=0

Static Public Member Functions

static QList< NetworkProxyInfo * > allProxies ()
static NetworkProxyInfoproxy (const QString &name)

Protected Member Functions

virtual void virtual_hook (int id, void *data)

Detailed Description

The NetworkProxyInfo class describes a proxy type.

Constructor & Destructor Documentation

qutim_sdk_0_3::NetworkProxyInfo::NetworkProxyInfo ( )
virtual qutim_sdk_0_3::NetworkProxyInfo::~NetworkProxyInfo ( )

Member Function Documentation

static QList<NetworkProxyInfo*> qutim_sdk_0_3::NetworkProxyInfo::allProxies ( )

Return all supported proxies.

virtual LocalizedString qutim_sdk_0_3::NetworkProxyInfo::description ( )
pure virtual

Returns the proxy description.

Implemented in qutim_sdk_0_3::HttpProxyInfo, and qutim_sdk_0_3::Socks5ProxyInfo.

virtual QIcon qutim_sdk_0_3::NetworkProxyInfo::icon ( )

Returns the icon of the proxy.

virtual QString qutim_sdk_0_3::NetworkProxyInfo::name ( )
pure virtual

Returns the unique proxy name.

When implementing a NetworkProxyInfo in a plugin, do not forget that the proxy name is unique. To avoid conflicts with other plugins always add prefix to the name. For instance: "jabber/http".

Implemented in qutim_sdk_0_3::HttpProxyInfo, and qutim_sdk_0_3::Socks5ProxyInfo.

static NetworkProxyInfo* qutim_sdk_0_3::NetworkProxyInfo::proxy ( const QString &  name)

Returns the NetworkProxyInfo object by the name.

virtual void qutim_sdk_0_3::NetworkProxyInfo::saveSettings ( Config  config,
const DataItem settings 
pure virtual

Saves the setting to the config.

Implemented in qutim_sdk_0_3::HttpProxyInfo, and qutim_sdk_0_3::Socks5ProxyInfo.

virtual DataItem qutim_sdk_0_3::NetworkProxyInfo::settings ( const Config config)
pure virtual

Returns the settings data form for the proxy.

You may want to consider to use NetworkProxyManager::settings(Account*) instead of this method.

See Also
NetworkProxyManager::settings(), NetworkProxyManager::settings(Account*)

Implemented in qutim_sdk_0_3::HttpProxyInfo, and qutim_sdk_0_3::Socks5ProxyInfo.

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

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

Generated by Doxygen