Qt 4.8
Public Functions | Static Public Functions | Properties | List of all members
Maemo::ProxyConf Class Reference

#include <proxyconf.h>

Public Functions

QList< QNetworkProxyflush (const QNetworkProxyQuery &query=QNetworkProxyQuery())
 
 ProxyConf ()
 
void readProxyData ()
 
virtual ~ProxyConf ()
 

Static Public Functions

static void clear (void)
 
static void update (void)
 

Properties

ProxyConfPrivated_ptr
 

Detailed Description

Definition at line 52 of file proxyconf.h.

Constructors and Destructors

◆ ProxyConf()

Maemo::ProxyConf::ProxyConf ( )

Definition at line 374 of file proxyconf.cpp.

375  : d_ptr(new ProxyConfPrivate)
376 {
377  g_type_init();
380 }
#define CONF_PROXY
Definition: proxyconf.cpp:53
#define HTTP_PROXY
Definition: proxyconf.cpp:54
ProxyConfPrivate * d_ptr
Definition: proxyconf.h:54

◆ ~ProxyConf()

Maemo::ProxyConf::~ProxyConf ( )
virtual

Definition at line 382 of file proxyconf.cpp.

383 {
384  delete d_ptr;
385 }
ProxyConfPrivate * d_ptr
Definition: proxyconf.h:54

Functions

◆ clear()

void Maemo::ProxyConf::clear ( void  )
static

Definition at line 410 of file proxyconf.cpp.

Referenced by QNetworkSessionPrivateImpl::clearProxyInformation().

411 {
412  QWriteLocker locker(&lock);
413  refcount--;
414  if (refcount == 0)
416 
417  if (refcount<0)
418  refcount = 0;
419 }
static int refcount
Definition: proxyconf.cpp:398
static void setApplicationProxyFactory(QNetworkProxyFactory *factory)
Sets the application-wide proxy factory to be factory.
The QWriteLocker class is a convenience class that simplifies locking and unlocking read-write locks ...
static QReadWriteLock lock
Definition: proxyconf.cpp:399

◆ flush()

QList< QNetworkProxy > Maemo::ProxyConf::flush ( const QNetworkProxyQuery query = QNetworkProxyQuery())

Definition at line 392 of file proxyconf.cpp.

393 {
394  return d_ptr->flush(query);
395 }
QList< QNetworkProxy > flush(const QNetworkProxyQuery &query)
Definition: proxyconf.cpp:285
ProxyConfPrivate * d_ptr
Definition: proxyconf.h:54

◆ readProxyData()

void Maemo::ProxyConf::readProxyData ( )

Definition at line 387 of file proxyconf.cpp.

388 {
389  d_ptr->readProxyData();
390 }
ProxyConfPrivate * d_ptr
Definition: proxyconf.h:54

◆ update()

void Maemo::ProxyConf::update ( void  )
static

Definition at line 401 of file proxyconf.cpp.

Referenced by QNetworkSessionPrivateImpl::updateProxyInformation().

402 {
403  QWriteLocker locker(&lock);
404  NetworkProxyFactory *factory = new NetworkProxyFactory();
406  refcount++;
407 }
static int refcount
Definition: proxyconf.cpp:398
The QNetworkProxyFactory class provides fine-grained proxy selection.
static void setApplicationProxyFactory(QNetworkProxyFactory *factory)
Sets the application-wide proxy factory to be factory.
The QWriteLocker class is a convenience class that simplifies locking and unlocking read-write locks ...
static QReadWriteLock lock
Definition: proxyconf.cpp:399

Properties

◆ d_ptr

ProxyConfPrivate* Maemo::ProxyConf::d_ptr
private

Definition at line 54 of file proxyconf.h.

Referenced by flush(), ProxyConf(), readProxyData(), and ~ProxyConf().


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