libqutim  0.3.1.0
qutim_sdk_0_3::Config Class Reference

#include <config.h>

Public Types

typedef void(* LoadOperator )(const QVariant &, void *)
 
typedef void(* SaveOperator )(QVariant &, const void *)
 
enum  ValueFlag { Normal = 0x00, Crypted = 0x01 }
 

Public Member Functions

 Config (const QVariantList &list)
 
 Config (QVariantList *list)
 
 Config (const QVariantMap &map)
 
 Config (QVariantMap *map)
 
 Config (const QString &path=QString())
 
 Config (const QString &path, ConfigBackend *backend)
 
 Config (const QStringList &paths)
 
 Config (const QString &path, const QVariantList &fallbacks)
 
 Config (const QString &path, const QVariant &fallback)
 
 Config (const Config &other)
 
virtual ~Config ()
 
Config arrayElement (int index) Q_REQUIRED_RESULT
 
int arraySize () const Q_REQUIRED_RESULT
 
int beginArray (const QString &name)
 
void beginGroup (const QString &name)
 
QStringList childGroups () const Q_REQUIRED_RESULT
 
QStringList childKeys () const Q_REQUIRED_RESULT
 
void endArray ()
 
void endGroup ()
 
Config group (const QString &name) Q_REQUIRED_RESULT
 
bool hasChildGroup (const QString &name) const Q_REQUIRED_RESULT
 
bool hasChildKey (const QString &name) const Q_REQUIRED_RESULT
 
Configoperator= (const Config &other)
 
void remove (const QString &name)
 
void remove (int index)
 
QVariant rootValue (const QVariant &def=QVariant(), ValueFlags type=Normal) const Q_REQUIRED_RESULT
 
void setArrayIndex (int index)
 
template<typename T >
void setValue (const QString &key, const T &value, ValueFlags type=Normal)
 
void setValue (const QString &key, const QVariant &value, ValueFlags type=Normal)
 
void setValue (const QString &key, const QLatin1String &value, ValueFlags type=Normal)
 
void setValue (const QString &key, const char *value, ValueFlags type=Normal)
 
template<int N>
void setValue (const QString &key, const char(&value)[N], ValueFlags type=Normal)
 
template<typename T>
Q_INLINE_TEMPLATE void setValue (const QString &key, const T &value, Config::ValueFlags type)
 
template<int N>
Q_INLINE_TEMPLATE void setValue (const QString &key, const char(&value)[N], ValueFlags type)
 
void sync ()
 
template<typename T >
value (const QString &key, const T &def=T(), ValueFlags type=Normal) const Q_REQUIRED_RESULT
 
QVariant value (const QString &key, const QVariant &def=QVariant(), ValueFlags type=Normal) const Q_REQUIRED_RESULT
 
QString value (const QString &key, const QLatin1String &def, ValueFlags type=Normal) const Q_REQUIRED_RESULT
 
QString value (const QString &key, const char *def, ValueFlags type=Normal) const Q_REQUIRED_RESULT
 
template<int N>
QString value (const QString &key, const char(&def)[N], ValueFlags type=Normal) const Q_REQUIRED_RESULT
 
template<typename T>
Q_INLINE_TEMPLATE T value (const QString &key, const T &def, Config::ValueFlags type) const
 
template<int N>
Q_INLINE_TEMPLATE QString value (const QString &key, const char(&def)[N], ValueFlags type) const
 

Static Public Member Functions

static void registerType (int type, SaveOperator saveOp, LoadOperator loadOp)
 

Member Typedef Documentation

typedef void(* qutim_sdk_0_3::Config::LoadOperator)(const QVariant &, void *)
typedef void(* qutim_sdk_0_3::Config::SaveOperator)(QVariant &, const void *)

Member Enumeration Documentation

Enumerator
Normal 
Crypted 

Constructor & Destructor Documentation

qutim_sdk_0_3::Config::Config ( const QVariantList &  list)
qutim_sdk_0_3::Config::Config ( QVariantList *  list)
qutim_sdk_0_3::Config::Config ( const QVariantMap &  map)
qutim_sdk_0_3::Config::Config ( QVariantMap *  map)
qutim_sdk_0_3::Config::Config ( const QString &  path = QString())
qutim_sdk_0_3::Config::Config ( const QString &  path,
ConfigBackend backend 
)
qutim_sdk_0_3::Config::Config ( const QStringList &  paths)
qutim_sdk_0_3::Config::Config ( const QString &  path,
const QVariantList &  fallbacks 
)
qutim_sdk_0_3::Config::Config ( const QString &  path,
const QVariant &  fallback 
)
qutim_sdk_0_3::Config::Config ( const Config other)
virtual qutim_sdk_0_3::Config::~Config ( )
virtual

Member Function Documentation

Config qutim_sdk_0_3::Config::arrayElement ( int  index)
int qutim_sdk_0_3::Config::arraySize ( ) const
int qutim_sdk_0_3::Config::beginArray ( const QString &  name)
void qutim_sdk_0_3::Config::beginGroup ( const QString &  name)
QStringList qutim_sdk_0_3::Config::childGroups ( ) const
QStringList qutim_sdk_0_3::Config::childKeys ( ) const
void qutim_sdk_0_3::Config::endArray ( )
void qutim_sdk_0_3::Config::endGroup ( )
Config qutim_sdk_0_3::Config::group ( const QString &  name)
bool qutim_sdk_0_3::Config::hasChildGroup ( const QString &  name) const
bool qutim_sdk_0_3::Config::hasChildKey ( const QString &  name) const
Config& qutim_sdk_0_3::Config::operator= ( const Config other)
static void qutim_sdk_0_3::Config::registerType ( int  type,
SaveOperator  saveOp,
LoadOperator  loadOp 
)
static
void qutim_sdk_0_3::Config::remove ( const QString &  name)
void qutim_sdk_0_3::Config::remove ( int  index)
QVariant qutim_sdk_0_3::Config::rootValue ( const QVariant &  def = QVariant(),
ValueFlags  type = Normal 
) const
void qutim_sdk_0_3::Config::setArrayIndex ( int  index)
template<typename T >
void qutim_sdk_0_3::Config::setValue ( const QString &  key,
const T &  value,
ValueFlags  type = Normal 
)
void qutim_sdk_0_3::Config::setValue ( const QString &  key,
const QVariant &  value,
ValueFlags  type = Normal 
)
void qutim_sdk_0_3::Config::setValue ( const QString &  key,
const QLatin1String &  value,
ValueFlags  type = Normal 
)
inline
void qutim_sdk_0_3::Config::setValue ( const QString &  key,
const char *  value,
ValueFlags  type = Normal 
)
inline
template<int N>
void qutim_sdk_0_3::Config::setValue ( const QString &  key,
const char(&)  value[N],
ValueFlags  type = Normal 
)
template<typename T>
Q_INLINE_TEMPLATE void qutim_sdk_0_3::Config::setValue ( const QString &  key,
const T &  value,
Config::ValueFlags  type 
)
template<int N>
Q_INLINE_TEMPLATE void qutim_sdk_0_3::Config::setValue ( const QString &  key,
const char(&)  value[N],
ValueFlags  type 
)
void qutim_sdk_0_3::Config::sync ( )
template<typename T >
T qutim_sdk_0_3::Config::value ( const QString &  key,
const T &  def = T(),
ValueFlags  type = Normal 
) const
QVariant qutim_sdk_0_3::Config::value ( const QString &  key,
const QVariant &  def = QVariant(),
ValueFlags  type = Normal 
) const
QString qutim_sdk_0_3::Config::value ( const QString &  key,
const QLatin1String &  def,
ValueFlags  type = Normal 
) const
inline
QString qutim_sdk_0_3::Config::value ( const QString &  key,
const char *  def,
ValueFlags  type = Normal 
) const
inline
template<int N>
QString qutim_sdk_0_3::Config::value ( const QString &  key,
const char(&)  def[N],
ValueFlags  type = Normal 
) const
template<typename T>
Q_INLINE_TEMPLATE T qutim_sdk_0_3::Config::value ( const QString &  key,
const T &  def,
Config::ValueFlags  type 
) const
template<int N>
Q_INLINE_TEMPLATE QString qutim_sdk_0_3::Config::value ( const QString &  key,
const char(&)  def[N],
ValueFlags  type 
) const

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

Generated by Doxygen