|
libqutim 0.3.1.0
|
The NetworkProxyManager class provides an interface to manipulate proxies. More...
#include <networkproxy.h>
Public Member Functions | |
| NetworkProxyManager (Protocol *protocol) | |
| virtual | ~NetworkProxyManager () |
| Protocol * | protocol () |
| 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 NetworkProxyManager * | get (Protocol *protocol) |
| static DataItem | settings (Account *account) |
| static DataItem | settings () |
| static QNetworkProxy | toNetworkProxy (const DataItem &settings) |
Protected Member Functions | |
| virtual void | virtual_hook (int id, void *data) |
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.
| 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.
| 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.
| settings | the settings data form this proxy will be initialized with. |
Returns proxy settings for the account.
If the account uses global proxy settings, global proxy settings will be returned.
| static DataItem qutim_sdk_0_3::NetworkProxyManager::settings | ( | ) | [static] |
Returns global proxy 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 | ||
| ) | [protected, virtual] |