Public Types |
typedef QMap< QString, QString > | ConfigGroup |
Public Methods |
| ConfigFile (const QString &fn) |
| ~ConfigFile () |
void | setGroup (const QString &gname) |
| Sets the current 'directory' in the file. More...
|
void | writeEntry (const QString &key, const QString &value) |
| Write a string entry. More...
|
void | writeEncryptedEntry (const QString &key, const QString &value) |
| Write an encrypted string entry. More...
|
void | writeEntry (const QString &key, int num) |
| Write a number entry. More...
|
void | writeEntry (const QString &key, bool b) |
| Write a boolean entry. More...
|
void | writeEntry (const QString &key, const QStringList &lst, const QChar &sep) |
| Write a stringlist entry separated by sep. More...
|
QString | readEntry (const QString &key, const QString &deflt=QString::null) |
| Read a string entry. More...
|
QString | readEncryptedEntry (const QString &key, const QString &deflt=QString::null) |
| Read (and decrypt) a string entry. More...
|
int | readNumEntry (const QString &key, int deflt=-1) |
| Read a number entry. More...
|
bool | readBoolEntry (const QString &key, bool deflt=FALSE) |
| Read a boolean entry. More...
|
QStringList | readListEntry (const QString &key, const QChar &sep) |
| Read a stringlist of items separated by sep. More...
|
void | clearGroup () |
| Clears the current 'directory' in the file. More...
|
void | deleteGroup () |
| Deletes the current 'directory' in the file. More...
|
status_t | write (const QString &fn=QString::null) |
| Write (commit) the file. More...
|
Protected Methods |
void | read () |
| Read the file. More...
|
void | parse (const QString &line) |
| Parse a specific line. More...
|