Qt 4.8
Classes | Namespaces | Macros | Functions | Variables
proxyconf.cpp File Reference
#include <QVariant>
#include <QStringList>
#include <QDebug>
#include <QWriteLocker>
#include <QNetworkProxyFactory>
#include <QNetworkProxy>
#include <gconf/gconf-value.h>
#include <gconf/gconf-client.h>
#include "proxyconf.h"

Go to the source code of this file.

Classes

class  Maemo::GConfItemFast
 
class  Maemo::NetworkProxyFactory
 
class  Maemo::ProxyConfPrivate
 

Namespaces

 Maemo
 

Macros

#define CONF_PROXY   "/system/proxy"
 
#define GET(var, type)
 
#define GET_HTTP(var, name, type)
 
#define HTTP_PROXY   "/system/http_proxy"
 
#define withClient(c)   for (GConfClient *c = gconf_client_get_default(); c; c=0)
 

Functions

static QString Maemo::convertKey (const char *key)
 
static QVariant Maemo::convertValue (GConfValue *src)
 
static QHash< QString, QVariantMaemo::getHttpValues (const QString &prefix)
 
static QHash< QString, QVariantMaemo::getValues (const QString &prefix)
 

Variables

static QReadWriteLock Maemo::lock
 
static int Maemo::refcount = 0
 

Macro Definition Documentation

◆ CONF_PROXY

#define CONF_PROXY   "/system/proxy"

Definition at line 53 of file proxyconf.cpp.

Referenced by Maemo::ProxyConf::ProxyConf().

◆ GET

#define GET (   var,
  type 
)
Value:
do { \
QVariant v = values.value(#var); \
if (v.isValid()) \
var = v.to##type (); \
} while(0)
int type
Definition: qmetatype.cpp:239
quint16 values[128]

Definition at line 212 of file proxyconf.cpp.

Referenced by Maemo::ProxyConfPrivate::readProxyData().

◆ GET_HTTP

#define GET_HTTP (   var,
  name,
  type 
)
Value:
do { \
QVariant v = httpValues.value(#name); \
if (v.isValid()) \
var = v.to##type (); \
} while(0)
int type
Definition: qmetatype.cpp:239
const char * name

Definition at line 219 of file proxyconf.cpp.

Referenced by Maemo::ProxyConfPrivate::readProxyData().

◆ HTTP_PROXY

#define HTTP_PROXY   "/system/http_proxy"

Definition at line 54 of file proxyconf.cpp.

Referenced by Maemo::ProxyConf::ProxyConf().

◆ withClient

#define withClient (   c)    for (GConfClient *c = gconf_client_get_default(); c; c=0)

Definition at line 115 of file proxyconf.cpp.

Referenced by Maemo::GConfItemFast::getEntries().