kpilot
IDMapperXml Class Reference
#include <idmapperxml.h>
Inheritance diagram for IDMapperXml:
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 | ) |
QValueList< IDMapping > & IDMapperXml::mappings | ( | ) |
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 | |||
) |
The documentation for this class was generated from the following files: