#include <proxyinfo.h>
Static Public Member Functions | |
static QStringList | proxyserver (const QString &url) |
Private Member Functions | |
proxyinfo () | |
virtual | ~proxyinfo () |
QStringList | internal_proxyserver (const QString &url) const |
QStringList | manual_proxyserver () const |
Private Attributes | |
pxProxyFactory * | libproxy_factory |
Static Private Attributes | |
static proxyinfo | internal_instance |
This class provides information about the proxy server that have to be used. You can not create in instance of this class. Just use the static function proxyserver().
Definition at line 36 of file proxyinfo.h.
proxyinfo::proxyinfo | ( | ) | [private] |
The constructor. As the class will not be instanciated, he is declared private.
Definition at line 30 of file proxyinfo.cpp.
References libproxy_factory.
proxyinfo::~proxyinfo | ( | ) | [private, virtual] |
The desctructor. As the class will not be instanciated, he is declared private.
Definition at line 37 of file proxyinfo.cpp.
References libproxy_factory.
QStringList proxyinfo::internal_proxyserver | ( | const QString & | url | ) | const [private] |
The internal, non-static implementation of proxyserver().
Definition at line 50 of file proxyinfo.cpp.
References libproxy_factory, and manual_proxyserver().
Referenced by proxyserver().
QStringList proxyinfo::manual_proxyserver | ( | ) | const [private] |
settings_general::proxyServer()
if this string is not empty; else it returns "direct://". Definition at line 85 of file proxyinfo.cpp.
Referenced by internal_proxyserver().
QStringList proxyinfo::proxyserver | ( | const QString & | url | ) | [static] |
If proxy configuration is "automatic" (this is the default), than libproxy is used to get the proxy servers that have to be used to connect to the specified URL. If the proxy configuration is manually, it uses settings_general::proxyServer()
to determinate the proxy server.
url | The URL for which the proxy server will be obtained |
Definition at line 44 of file proxyinfo.cpp.
References internal_proxyserver().
Referenced by ripping::parameterList().
proxyinfo proxyinfo::internal_instance [static, private] |
The only instance of this class.
Definition at line 63 of file proxyinfo.h.
pxProxyFactory* proxyinfo::libproxy_factory [private] |
A pointer to the factory instance of libproxy.
This member is only available when compiled against libproxy.
Definition at line 70 of file proxyinfo.h.
Referenced by internal_proxyserver(), proxyinfo(), and ~proxyinfo().