kpilot/lib

IDMapperXml Class Reference

List of all members.

Detailed Description

Definition at line 35 of file idmapperxml.h.


Public Member Functions

 IDMapperXml (const QString &file)
 ~IDMapperXml ()
bool open ()
void save ()
void addMapping (const IDMapping &mapping)
QValueList< IDMapping > & mappings ()
bool startElement (const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &attribs)
bool endElement (const QString &namespaceURI, const QString &localName, const QString &qName)

Member Function Documentation

bool IDMapperXml::open (  ) 

Opens and parses the file or creates a new one if the file does not exist.

Definition at line 40 of file idmapperxml.cc.

void IDMapperXml::save (  ) 

Saves the current mappings to the xml-file.

Note this function must be called after changes and before deleting the IDMapperXml object. Otherwise the changes won't be saved.

Definition at line 82 of file idmapperxml.cc.

void IDMapperXml::addMapping ( const IDMapping mapping  ) 

Adds a mapping to the collection of mappings.

Definition at line 136 of file idmapperxml.cc.

QValueList< IDMapping > & IDMapperXml::mappings (  ) 

Returns the collection of mappings.

Definition at line 147 of file idmapperxml.cc.

bool IDMapperXml::startElement ( const QString &  namespaceURI,
const QString &  localName,
const QString &  qName,
const QXmlAttributes &  attribs 
)

Overloaded function to parse the xml file.

Definition at line 152 of file idmapperxml.cc.

bool IDMapperXml::endElement ( const QString &  namespaceURI,
const QString &  localName,
const QString &  qName 
)

Overloaded function to parse the xml file.

Definition at line 196 of file idmapperxml.cc.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys