Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CfgParser Class Reference

#include </home/clem/local/src/opie/noncore/applets/zkbapplet/keyzcfg/cfgfile.h>

Collaboration diagram for CfgParser:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CfgParser ()
virtual ~CfgParser ()
bool load (QString file, CfgFile &cfg)
bool save (QString file, CfgFile &cfg)
void addLabel (const QString &name, const QString &state)
void addFile (const QString &file, const QString &prefix)
int getAutorepeatDelay () const
void setAutorepeatDelay (int)
int getAutorepeatPeriod () const
void setAutorepeatPeriod (int)
virtual bool warning (const QXmlParseException &e)
virtual bool error (const QXmlParseException &e)
virtual bool fatalError (const QXmlParseException &e)
virtual QString errorString ()
QString getError ()

Protected Attributes

QString err
QMap< QString, QStringlabels
QMap< QString, QStringincludes
QList< QStringlabelList
QList< QStringincludeList
int ardelay
int arperiod

Constructor & Destructor Documentation

CfgParser::CfgParser  ) 
 

Definition at line 86 of file cfgfile.cpp.

CfgParser::~CfgParser  )  [virtual]
 

Definition at line 192 of file cfgfile.cpp.


Member Function Documentation

void CfgParser::addFile const QString file,
const QString prefix
 

Definition at line 216 of file cfgfile.cpp.

References QMap< Key, T >::find(), includeList, includes, and QMap< Key, T >::insert().

Referenced by CfgHandler::startIncludeElement().

void CfgParser::addLabel const QString name,
const QString state
 

Definition at line 211 of file cfgfile.cpp.

References QMap< Key, T >::find(), QMap< Key, T >::insert(), labelList, and labels.

Referenced by CfgHandler::startLabelElement().

bool CfgParser::error const QXmlParseException &  e  )  [virtual]
 

Definition at line 236 of file cfgfile.cpp.

References err, and QString::sprintf().

QString CfgParser::errorString  )  [virtual]
 

Definition at line 221 of file cfgfile.cpp.

References err.

bool CfgParser::fatalError const QXmlParseException &  e  )  [virtual]
 

Definition at line 247 of file cfgfile.cpp.

References err, and QString::sprintf().

int CfgParser::getAutorepeatDelay  )  const
 

Definition at line 195 of file cfgfile.cpp.

References ardelay.

int CfgParser::getAutorepeatPeriod  )  const
 

Definition at line 203 of file cfgfile.cpp.

References arperiod.

QString CfgParser::getError  ) 
 

bool CfgParser::load QString  file,
CfgFile cfg
 

Definition at line 89 of file cfgfile.cpp.

References ardelay, arperiod, QMap< Key, T >::end(), err, f, QMap< Key, T >::find(), i, includeList, includes, QString::isEmpty(), labels, odebug, oendl, p, CfgFile::replaceEntry(), CfgFile::setAutorepeatDelay(), and CfgFile::setAutorepeatPeriod().

Referenced by main().

bool CfgParser::save QString  file,
CfgFile cfg
 

Definition at line 135 of file cfgfile.cpp.

References f, CfgFile::getAutorepeatDelay(), CfgFile::getAutorepeatPeriod(), CfgFile::getEntries(), CfgEntry::getFile(), CfgEntry::getLabel(), i, QString::isEmpty(), l, QString::number(), oendl, oerr, and QString::utf8().

Referenced by CfgDlg::accept().

void CfgParser::setAutorepeatDelay int   ) 
 

Definition at line 199 of file cfgfile.cpp.

References ardelay.

Referenced by CfgHandler::startKeymapElement().

void CfgParser::setAutorepeatPeriod int   ) 
 

Definition at line 207 of file cfgfile.cpp.

References arperiod.

Referenced by CfgHandler::startKeymapElement().

bool CfgParser::warning const QXmlParseException &  e  )  [virtual]
 

Definition at line 225 of file cfgfile.cpp.

References err, and QString::sprintf().


Member Data Documentation

int CfgParser::ardelay [protected]
 

Definition at line 72 of file cfgfile.h.

Referenced by getAutorepeatDelay(), load(), and setAutorepeatDelay().

int CfgParser::arperiod [protected]
 

Definition at line 73 of file cfgfile.h.

Referenced by getAutorepeatPeriod(), load(), and setAutorepeatPeriod().

QString CfgParser::err [protected]
 

Definition at line 67 of file cfgfile.h.

Referenced by error(), errorString(), fatalError(), load(), and warning().

QList<QString> CfgParser::includeList [protected]
 

Definition at line 71 of file cfgfile.h.

Referenced by addFile(), and load().

QMap<QString, QString> CfgParser::includes [protected]
 

Definition at line 69 of file cfgfile.h.

Referenced by addFile(), and load().

QList<QString> CfgParser::labelList [protected]
 

Definition at line 70 of file cfgfile.h.

Referenced by addLabel().

QMap<QString, QString> CfgParser::labels [protected]
 

Definition at line 68 of file cfgfile.h.

Referenced by addLabel(), and load().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:28:31 2005 for OPIE by  doxygen 1.4.2