libqutim 0.3.1.0
|
The NetworkProxyInfo class describes a proxy type. More...
#include <networkproxy.h>
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 NetworkProxyInfo * | proxy (const QString &name) |
Protected Member Functions | |
virtual void | virtual_hook (int id, void *data) |
The NetworkProxyInfo class describes a proxy type.
qutim_sdk_0_3::NetworkProxyInfo::NetworkProxyInfo | ( | ) |
virtual qutim_sdk_0_3::NetworkProxyInfo::~NetworkProxyInfo | ( | ) | [virtual] |
static QList<NetworkProxyInfo*> qutim_sdk_0_3::NetworkProxyInfo::allProxies | ( | ) | [static] |
Return all supported proxies.
virtual LocalizedString qutim_sdk_0_3::NetworkProxyInfo::description | ( | ) | [pure virtual] |
Returns the proxy description.
Implemented in qutim_sdk_0_3::Socks5ProxyInfo, and qutim_sdk_0_3::HttpProxyInfo.
virtual QIcon qutim_sdk_0_3::NetworkProxyInfo::icon | ( | ) | [virtual] |
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::Socks5ProxyInfo, and qutim_sdk_0_3::HttpProxyInfo.
static NetworkProxyInfo* qutim_sdk_0_3::NetworkProxyInfo::proxy | ( | const QString & | name | ) | [static] |
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::Socks5ProxyInfo, and qutim_sdk_0_3::HttpProxyInfo.
Returns the settings data form for the proxy.
You may want to consider to use NetworkProxyManager::settings(Account*) instead of this method.
Implemented in qutim_sdk_0_3::Socks5ProxyInfo, and qutim_sdk_0_3::HttpProxyInfo.
virtual void qutim_sdk_0_3::NetworkProxyInfo::virtual_hook | ( | int | id, |
void * | data | ||
) | [protected, virtual] |