kpilot

IDMapperXml Class Reference

#include <idmapperxml.h>

Inheritance diagram for IDMapperXml:

List of all members.


Public Member Functions

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

Detailed Description

Definition at line 35 of file idmapperxml.h.


Constructor & Destructor Documentation

IDMapperXml::IDMapperXml ( const QString file  ) 

Definition at line 30 of file idmapperxml.cc.

IDMapperXml::~IDMapperXml (  ) 

Definition at line 35 of file idmapperxml.cc.


Member Function Documentation

void IDMapperXml::addMapping ( const IDMapping mapping  ) 

Adds a mapping to the collection of mappings.

Definition at line 136 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.

QValueList< IDMapping > & IDMapperXml::mappings (  ) 

Returns the collection of mappings.

Definition at line 147 of file idmapperxml.cc.

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.

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.


The documentation for this class was generated from the following files: