![]() |
Mixxx
|
#include <configobject.h>
Public Member Functions | |
ConfigObject (QString file) | |
ConfigObject (QDomNode node) | |
~ConfigObject () | |
ConfigOption< ValueType > * | set (ConfigKey, ValueType) |
ConfigOption< ValueType > * | get (ConfigKey key) |
ConfigKey * | get (ValueType v) |
QString | getValueString (ConfigKey k) |
void | clear () |
void | reopen (QString file) |
void | Save () |
QString | getConfigPath () |
Public Attributes | |
ConfigKey | key |
ValueType | value |
ConfigOption< ValueType > | option |
Protected Member Functions | |
bool | Parse () |
Protected Attributes | |
QList< ConfigOption< ValueType > * > | list |
QString | filename |
Definition at line 106 of file configobject.h.
ConfigObject< ValueType >::ConfigObject | ( | QString | file | ) |
Definition at line 113 of file configobject.cpp.
ConfigObject< ValueType >::ConfigObject | ( | QDomNode | node | ) |
ConfigObject< ValueType >::~ConfigObject | ( | ) |
Definition at line 118 of file configobject.cpp.
void ConfigObject< ValueType >::clear | ( | ) |
Definition at line 257 of file configobject.cpp.
ConfigOption< ValueType > * ConfigObject< ValueType >::get | ( | ConfigKey | key | ) |
Definition at line 157 of file configobject.cpp.
ConfigKey * ConfigObject< ValueType >::get | ( | ValueType | v | ) |
Definition at line 179 of file configobject.cpp.
QString ConfigObject< ValueType >::getConfigPath | ( | ) |
QString ConfigObject< ValueType >::getValueString | ( | ConfigKey | k | ) |
bool ConfigObject< ValueType >::Parse | ( | ) | [protected] |
Loads and parses the configuration file. Returns false if the file could not be opened; otherwise true.
Definition at line 210 of file configobject.cpp.
void ConfigObject< ValueType >::reopen | ( | QString | file | ) |
Definition at line 271 of file configobject.cpp.
void ConfigObject< ValueType >::Save | ( | ) |
ConfigOption< ValueType > * ConfigObject< ValueType >::set | ( | ConfigKey | k, |
ValueType | v | ||
) |
Definition at line 127 of file configobject.cpp.
QString ConfigObject< ValueType >::filename [protected] |
Definition at line 127 of file configobject.h.
ConfigKey ConfigObject< ValueType >::key |
Definition at line 108 of file configobject.h.
QList< ConfigOption<ValueType>* > ConfigObject< ValueType >::list [protected] |
Definition at line 126 of file configobject.h.
ConfigOption<ValueType> ConfigObject< ValueType >::option |
Definition at line 110 of file configobject.h.
ValueType ConfigObject< ValueType >::value |
Definition at line 109 of file configobject.h.