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

ZkbXmlHandler Class Reference

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

Inheritance diagram for ZkbXmlHandler:

Inheritance graph
[legend]
Collaboration diagram for ZkbXmlHandler:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ZkbXmlHandler ()
virtual ~ZkbXmlHandler ()
virtual bool startElement (const QString &, const QString &, const QString &name, const QXmlAttributes &attr)
virtual bool endElement (const QString &, const QString &, const QString &name)
virtual QString errorString ()

Protected Member Functions

virtual bool startKeymapElement (int ardelay, int arperiod, const QString &author)
virtual bool startIncludeElement (const QString &file, const QString &prfix)
virtual bool startLabelElement (const QString &label, const QString &state)
virtual bool startStateElement (const QString &name, const QString &parent, bool dflt)
virtual bool startMapElement (int key, bool pressed)
virtual bool startEventElement (int keycode, int unicode, int modifiers, bool pressed, bool autorepeat)
virtual bool startNextStateElement (const QString &state)
virtual bool endKeymapElement ()
virtual bool endIncludeElement ()
virtual bool endLabelElement ()
virtual bool endStateElement ()
virtual bool endMapElement ()
virtual bool endEventElement ()
virtual bool endNextStateElement ()
bool start_keymap (const QXmlAttributes &)
bool start_include (const QXmlAttributes &)
bool start_label (const QXmlAttributes &)
bool start_state (const QXmlAttributes &)
bool start_map (const QXmlAttributes &)
bool start_event (const QXmlAttributes &)
bool start_next_state (const QXmlAttributes &)
bool end_keymap ()
bool end_include ()
bool end_label ()
bool end_state ()
bool end_map ()
bool end_event ()
bool end_next_state ()
void setError (const QString &)
int str2key (const QString &)
int str2modifier (const QString &)
bool str2bool (const QString &)
int str2unicode (const QString &)
int str2keycode (const QString &)
int str2uint (const QString &)

Protected Attributes

QString err
QStringList elements

Constructor & Destructor Documentation

ZkbXmlHandler::ZkbXmlHandler  ) 
 

Definition at line 12 of file zkbxml.cpp.

ZkbXmlHandler::~ZkbXmlHandler  )  [virtual]
 

Definition at line 15 of file zkbxml.cpp.


Member Function Documentation

bool ZkbXmlHandler::end_event  )  [protected]
 

Definition at line 477 of file zkbxml.cpp.

References endEventElement().

Referenced by endElement().

bool ZkbXmlHandler::end_include  )  [protected]
 

Definition at line 461 of file zkbxml.cpp.

References endIncludeElement().

Referenced by endElement().

bool ZkbXmlHandler::end_keymap  )  [protected]
 

Definition at line 457 of file zkbxml.cpp.

References endKeymapElement().

Referenced by endElement().

bool ZkbXmlHandler::end_label  )  [protected]
 

Definition at line 465 of file zkbxml.cpp.

References endLabelElement().

Referenced by endElement().

bool ZkbXmlHandler::end_map  )  [protected]
 

Definition at line 473 of file zkbxml.cpp.

References endMapElement().

Referenced by endElement().

bool ZkbXmlHandler::end_next_state  )  [protected]
 

Definition at line 481 of file zkbxml.cpp.

References endNextStateElement().

Referenced by endElement().

bool ZkbXmlHandler::end_state  )  [protected]
 

Definition at line 469 of file zkbxml.cpp.

References endStateElement().

Referenced by endElement().

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

Definition at line 44 of file zkbxml.cpp.

References QValueList< T >::begin(), elements, end_event(), end_include(), end_keymap(), end_label(), end_map(), end_next_state(), end_state(), Event_Tag, Include_Tag, Keymap_Tag, Label_Tag, Map_Tag, NextState_Tag, QValueList< T >::remove(), and State_Tag.

bool ZkbXmlHandler::endEventElement  )  [protected, virtual]
 

Reimplemented in CfgHandler, and ZkbHandler.

Definition at line 131 of file zkbxml.cpp.

Referenced by end_event().

bool ZkbXmlHandler::endIncludeElement  )  [protected, virtual]
 

Reimplemented in CfgHandler, and ZkbHandler.

Definition at line 115 of file zkbxml.cpp.

Referenced by end_include().

bool ZkbXmlHandler::endKeymapElement  )  [protected, virtual]
 

Reimplemented in CfgHandler, and ZkbHandler.

Definition at line 111 of file zkbxml.cpp.

Referenced by end_keymap().

bool ZkbXmlHandler::endLabelElement  )  [protected, virtual]
 

Reimplemented in CfgHandler, and ZkbHandler.

Definition at line 119 of file zkbxml.cpp.

Referenced by end_label().

bool ZkbXmlHandler::endMapElement  )  [protected, virtual]
 

Reimplemented in CfgHandler, and ZkbHandler.

Definition at line 127 of file zkbxml.cpp.

Referenced by end_map().

bool ZkbXmlHandler::endNextStateElement  )  [protected, virtual]
 

Reimplemented in CfgHandler, and ZkbHandler.

Definition at line 135 of file zkbxml.cpp.

Referenced by end_next_state().

bool ZkbXmlHandler::endStateElement  )  [protected, virtual]
 

Reimplemented in CfgHandler, and ZkbHandler.

Definition at line 123 of file zkbxml.cpp.

Referenced by end_state().

QString ZkbXmlHandler::errorString  )  [virtual]
 

Definition at line 70 of file zkbxml.cpp.

References err.

void ZkbXmlHandler::setError const QString  )  [protected]
 

Definition at line 485 of file zkbxml.cpp.

References err.

Referenced by start_event(), start_include(), start_keymap(), start_label(), start_map(), start_next_state(), start_state(), ZkbHandler::startIncludeElement(), ZkbHandler::startMapElement(), ZkbHandler::startNextStateElement(), str2key(), str2keycode(), str2modifier(), and str2uint().

bool ZkbXmlHandler::start_event const QXmlAttributes &   )  [protected]
 

Definition at line 352 of file zkbxml.cpp.

References elements, err, QValueList< T >::first(), QString::isEmpty(), keycode, Map_Tag, setError(), startEventElement(), str2bool(), str2keycode(), str2modifier(), and str2unicode().

Referenced by startElement().

bool ZkbXmlHandler::start_include const QXmlAttributes &   )  [protected]
 

Definition at line 193 of file zkbxml.cpp.

References elements, QValueList< T >::first(), Keymap_Tag, setError(), and startIncludeElement().

Referenced by startElement().

bool ZkbXmlHandler::start_keymap const QXmlAttributes &   )  [protected]
 

Definition at line 140 of file zkbxml.cpp.

References elements, QValueList< T >::isEmpty(), s, setError(), startKeymapElement(), and QString::toInt().

Referenced by startElement().

bool ZkbXmlHandler::start_label const QXmlAttributes &   )  [protected]
 

Definition at line 227 of file zkbxml.cpp.

References elements, QValueList< T >::first(), Keymap_Tag, name, setError(), and startLabelElement().

Referenced by startElement().

bool ZkbXmlHandler::start_map const QXmlAttributes &   )  [protected]
 

Definition at line 309 of file zkbxml.cpp.

References elements, err, QValueList< T >::first(), QString::isEmpty(), setError(), startMapElement(), State_Tag, str2bool(), and str2key().

Referenced by startElement().

bool ZkbXmlHandler::start_next_state const QXmlAttributes &   )  [protected]
 

Definition at line 430 of file zkbxml.cpp.

References elements, QValueList< T >::first(), Map_Tag, name, setError(), and startNextStateElement().

Referenced by startElement().

bool ZkbXmlHandler::start_state const QXmlAttributes &   )  [protected]
 

Definition at line 264 of file zkbxml.cpp.

References elements, err, QValueList< T >::first(), QString::isEmpty(), Keymap_Tag, name, setError(), startStateElement(), and str2bool().

Referenced by startElement().

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

Definition at line 18 of file zkbxml.cpp.

References elements, Event_Tag, Include_Tag, Keymap_Tag, Label_Tag, Map_Tag, NextState_Tag, QValueList< T >::prepend(), start_event(), start_include(), start_keymap(), start_label(), start_map(), start_next_state(), start_state(), and State_Tag.

bool ZkbXmlHandler::startEventElement int  keycode,
int  unicode,
int  modifiers,
bool  pressed,
bool  autorepeat
[protected, virtual]
 

Reimplemented in CfgHandler, and ZkbHandler.

Definition at line 100 of file zkbxml.cpp.

Referenced by start_event().

bool ZkbXmlHandler::startIncludeElement const QString file,
const QString prfix
[protected, virtual]
 

Reimplemented in CfgHandler, and ZkbHandler.

Definition at line 78 of file zkbxml.cpp.

Referenced by start_include().

bool ZkbXmlHandler::startKeymapElement int  ardelay,
int  arperiod,
const QString author
[protected, virtual]
 

Reimplemented in CfgHandler, and ZkbHandler.

Definition at line 74 of file zkbxml.cpp.

Referenced by start_keymap().

bool ZkbXmlHandler::startLabelElement const QString label,
const QString state
[protected, virtual]
 

Reimplemented in CfgHandler, and ZkbHandler.

Definition at line 84 of file zkbxml.cpp.

Referenced by start_label().

bool ZkbXmlHandler::startMapElement int  key,
bool  pressed
[protected, virtual]
 

Reimplemented in CfgHandler, and ZkbHandler.

Definition at line 96 of file zkbxml.cpp.

Referenced by start_map().

bool ZkbXmlHandler::startNextStateElement const QString state  )  [protected, virtual]
 

Reimplemented in CfgHandler, and ZkbHandler.

Definition at line 106 of file zkbxml.cpp.

Referenced by start_next_state().

bool ZkbXmlHandler::startStateElement const QString name,
const QString parent,
bool  dflt
[protected, virtual]
 

Reimplemented in CfgHandler, and ZkbHandler.

Definition at line 90 of file zkbxml.cpp.

Referenced by start_state().

bool ZkbXmlHandler::str2bool const QString  )  [protected]
 

Definition at line 527 of file zkbxml.cpp.

Referenced by start_event(), start_map(), and start_state().

int ZkbXmlHandler::str2key const QString  )  [protected]
 

Definition at line 489 of file zkbxml.cpp.

References KeyNames::find(), and setError().

Referenced by start_map().

int ZkbXmlHandler::str2keycode const QString  )  [protected]
 

Definition at line 539 of file zkbxml.cpp.

References KeycodeNames::find(), and setError().

Referenced by start_event().

int ZkbXmlHandler::str2modifier const QString  )  [protected]
 

Definition at line 500 of file zkbxml.cpp.

References ModifierNames::find(), QString::find(), i, QString::length(), QString::mid(), s, setError(), QString::stripWhiteSpace(), and v.

Referenced by start_event().

int ZkbXmlHandler::str2uint const QString  )  [protected]
 

Definition at line 550 of file zkbxml.cpp.

References QString::left(), QString::mid(), setError(), QString::toInt(), and val.

Referenced by str2unicode().

int ZkbXmlHandler::str2unicode const QString  )  [protected]
 

Definition at line 535 of file zkbxml.cpp.

References str2uint().

Referenced by start_event().


Member Data Documentation

QStringList ZkbXmlHandler::elements [protected]
 

Definition at line 21 of file zkbxml.h.

Referenced by endElement(), start_event(), start_include(), start_keymap(), start_label(), start_map(), start_next_state(), start_state(), and startElement().

QString ZkbXmlHandler::err [protected]
 

Definition at line 20 of file zkbxml.h.

Referenced by errorString(), setError(), start_event(), start_map(), start_state(), CfgHandler::startKeymapElement(), ZkbHandler::startLabelElement(), and ZkbHandler::startStateElement().


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