14 class QXmlStreamReader;
47 QString lastErrorMessage_;
48 QStack<QString> elementStack_;
49 QXmlStreamReader* xml_;
int currentStackLevel()
returns the current stack-level
Definition: baseplistparser.cpp:180
BasePListParser()
The constructor for the parser.
Definition: baseplistparser.cpp:16
QString readElementText()
Reads the element text contents.
Definition: baseplistparser.cpp:171
bool readNextElement(const QString &name, int level=-1)
Reads the next element and optionally expects it to be the given name.
Definition: baseplistparser.cpp:137
virtual ~BasePListParser()
the default desctructor
Definition: baseplistparser.cpp:23
QString lastErrorMessage() const
Returns the last error message of the parsed file.
Definition: baseplistparser.cpp:30
void raiseError(const QString &str)
Call this method to raise an error and stop the xml parsing.
Definition: baseplistparser.cpp:79
Copyright 2011-2013 - Reliable Bits Software by Blommers IT.
Definition: commentcommand.cpp:22
QList< QVariant > readList()
reads a list of qvariants
Definition: baseplistparser.cpp:86
void setLastErrorMessage(const QString &str)
Sets the last error message. To correctly set the last error message while parsing please use raiseEr...
Definition: baseplistparser.cpp:38
QHash< QString, QVariant > readDict()
reads a dictionary
Definition: baseplistparser.cpp:99
bool beginParsing(QIODevice *device)
Start the parsing of the plist. If it isn't a valid plist this method return false. (it only checks and reads the existence of <plist>)
Definition: baseplistparser.cpp:46
QVariant readNextPlistType(int level=-1)
reads the next plist type
Definition: baseplistparser.cpp:114
A general plist xml-file parser.
Definition: baseplistparser.h:19
bool endParsing()
Closes the parsers.
Definition: baseplistparser.cpp:63