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

NHcfg Class Reference

#include </home/clem/local/src/opie/core/pim/datebook/holiday/national/nationalcfg.h>

Collaboration diagram for NHcfg:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NHcfg ()
virtual ~NHcfg ()
bool load (const QString &)
const tentrylistfixDates () const
const tentrylistfloatingDates () const
virtual bool warning (const QXmlParseException &e)
virtual bool error (const QXmlParseException &e)
virtual bool fatalError (const QXmlParseException &e)
virtual bool startElement (const QString &, const QString &, const QString &name, const QXmlAttributes &attr)
virtual bool endElement (const QString &, const QString &, const QString &name)
virtual const QStringerrorString () const

Protected Member Functions

bool setName (const QXmlAttributes &)
bool parsevalue (const QString &, const QXmlAttributes &)
bool parseCalc (const QString &, const QXmlAttributes &)

Protected Attributes

QString err
QString _contentname
QString _path
NHentry m_currentEntry
int stage
int counter
int level
tentrylist currentFloatList
tentrylist currentFixList

Constructor & Destructor Documentation

NHcfg::NHcfg  ) 
 

Definition at line 27 of file nationalcfg.cpp.

NHcfg::~NHcfg  )  [virtual]
 

Definition at line 32 of file nationalcfg.cpp.


Member Function Documentation

bool NHcfg::endElement const QString ,
const QString ,
const QString name
[virtual]
 

Definition at line 259 of file nationalcfg.cpp.

References QValueList< T >::append(), currentFixList, currentFloatList, NHentry::fix, level, m_currentEntry, stage, and NHentry::type().

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

Definition at line 84 of file nationalcfg.cpp.

References err, and QString::sprintf().

const QString & NHcfg::errorString  )  const [virtual]
 

Definition at line 279 of file nationalcfg.cpp.

References err.

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

Definition at line 96 of file nationalcfg.cpp.

References err, and QString::sprintf().

const tentrylist & NHcfg::fixDates  )  const
 

Definition at line 62 of file nationalcfg.cpp.

References currentFixList.

Referenced by NationalHoliday::load_days().

const tentrylist & NHcfg::floatingDates  )  const
 

Definition at line 67 of file nationalcfg.cpp.

References currentFloatList.

Referenced by NationalHoliday::load_days().

bool NHcfg::load const QString  ) 
 

Definition at line 36 of file nationalcfg.cpp.

References _path, QValueList< T >::clear(), counter, currentFixList, currentFloatList, err, f, QString::length(), level, odebug, oendl, oerr, and stage.

Referenced by NationalHoliday::load_days().

bool NHcfg::parseCalc const QString ,
const QXmlAttributes & 
[protected]
 

Definition at line 189 of file nationalcfg.cpp.

References QValueList< T >::count(), counter, d, err, level, m_currentEntry, NHentry::setDate(), NHentry::setDaydep(), NHentry::setDayofmonth(), NHentry::setMonth(), NHentry::setOffet(), NHentry::setWeekday(), and QStringList::split().

Referenced by startElement().

bool NHcfg::parsevalue const QString ,
const QXmlAttributes & 
[protected]
 

Definition at line 157 of file nationalcfg.cpp.

References QValueList< T >::count(), counter, d, err, NHentry::floating, m_currentEntry, NHentry::setDate(), NHentry::setName(), NHentry::setType(), and QStringList::split().

Referenced by startElement().

bool NHcfg::setName const QXmlAttributes &   )  [protected]
 

Definition at line 147 of file nationalcfg.cpp.

References _contentname.

Referenced by startElement().

bool NHcfg::startElement const QString ,
const QString ,
const QString name,
const QXmlAttributes &  attr
[virtual]
 

Definition at line 108 of file nationalcfg.cpp.

References counter, err, level, m_currentEntry, parseCalc(), parsevalue(), setName(), and stage.

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

Definition at line 72 of file nationalcfg.cpp.

References err, and QString::sprintf().


Member Data Documentation

QString NHcfg::_contentname [protected]
 

Definition at line 63 of file nationalcfg.h.

Referenced by setName().

QString NHcfg::_path [protected]
 

Definition at line 64 of file nationalcfg.h.

Referenced by load().

int NHcfg::counter [protected]
 

Definition at line 71 of file nationalcfg.h.

Referenced by load(), parseCalc(), parsevalue(), and startElement().

tentrylist NHcfg::currentFixList [protected]
 

Definition at line 72 of file nationalcfg.h.

Referenced by endElement(), fixDates(), and load().

tentrylist NHcfg::currentFloatList [protected]
 

Definition at line 72 of file nationalcfg.h.

Referenced by endElement(), floatingDates(), and load().

QString NHcfg::err [protected]
 

Definition at line 63 of file nationalcfg.h.

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

int NHcfg::level [protected]
 

Definition at line 71 of file nationalcfg.h.

Referenced by endElement(), load(), parseCalc(), and startElement().

NHentry NHcfg::m_currentEntry [protected]
 

Definition at line 66 of file nationalcfg.h.

Referenced by endElement(), parseCalc(), parsevalue(), and startElement().

int NHcfg::stage [protected]
 

Definition at line 71 of file nationalcfg.h.

Referenced by endElement(), load(), and startElement().


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