proxyinfo Class Reference

Provides information about the proxy server. More...

#include <proxyinfo.h>

Collaboration diagram for proxyinfo:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Provides information about the proxy server.

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

QStringList proxyinfo::manual_proxyserver (  )  const [private]

Returns:
The proxy server from 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().

Here is the caller graph for this function:

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.

Note:
If proxy configuration is "automatic" but compiling against libproxy is disabled, than we fall back to "manual" silently->
Parameters:
url The URL for which the proxy server will be obtained
Returns:
A list of proxy servers to be used. If the first proxy fails, the second should be tried, etc... The format of the returned proxy strings are as follows:
  • http://[username:password@]proxy:port (from libproxy)
  • socks://[username:password@]proxy:port (from libproxy)
  • direct:// (= don't use any proxy server - from libproxy or if the proxy field in the global config file is empty)
  • (the entry from the global config file - if it is not empty)
It is guaranteed that the list has at least 1 entry.

Definition at line 44 of file proxyinfo.cpp.

References internal_proxyserver().

Referenced by ripping::parameterList().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

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().


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

doxygen