libqutim
0.3.1.0
|
#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 () |
static DataItem | settings (Account *account) |
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 |
Destroyes the object.
|
static |
Returns all proxy managers.
|
static |
Returns the NetworkProxyManager for the protocol.
Protocol* qutim_sdk_0_3::NetworkProxyManager::protocol | ( | ) |
Returns the protocol this NetworkProxyManager is for.
|
pure virtual |
Returns the list of proxies.
|
pure virtual |
Sets the new proxy to be used by the account.
settings | the settings data form this proxy will be initialized with. |
|
static |
Returns global proxy settings.
Returns proxy settings for the account.
If the account uses global proxy settings, global proxy settings will be returned.
|
static |
Converts the proxy settings to QNetworkProxy.
|
protectedvirtual |