Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members  

ConfigFile Class Reference

#include <configfile.h>

List of all members.

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...


Member Typedef Documentation

typedef QMap<QString, QString> ConfigGroup
 


Constructor & Destructor Documentation

ConfigFile const QString &    fn
 

~ConfigFile  
 


Member Function Documentation

void clearGroup  
 

Clears the current 'directory' in the file.

void deleteGroup  
 

Deletes the current 'directory' in the file.

void parse const QString &    line [protected]
 

Parse a specific line.

void read   [protected]
 

Read the file.

bool readBoolEntry const QString &    key,
bool    deflt = FALSE
 

Read a boolean entry.

QString readEncryptedEntry const QString &    key,
const QString &    deflt = QString::null
 

Read (and decrypt) a string entry.

QString readEntry const QString &    key,
const QString &    deflt = QString::null
 

Read a string entry.

QStringList readListEntry const QString &    key,
const QChar &    sep
 

Read a stringlist of items separated by sep.

int readNumEntry const QString &    key,
int    deflt = -1
 

Read a number entry.

void setGroup const QString &    gname
 

Sets the current 'directory' in the file.

status_t write const QString &    fn = QString::null
 

Write (commit) the file.

void writeEncryptedEntry const QString &    key,
const QString &    value
 

Write an encrypted string entry.

void writeEntry const QString &    key,
const QStringList &    lst,
const QChar &    sep
 

Write a stringlist entry separated by sep.

void writeEntry const QString &    key,
bool    b
 

Write a boolean entry.

void writeEntry const QString &    key,
int    num
 

Write a number entry.

void writeEntry const QString &    key,
const QString &    value
 

Write a string entry.


The documentation for this class was generated from the following files:
Generated on Thu Mar 11 21:57:52 2004 for Music Playing Daemon client by doxygen1.2.15