-
Notifications
You must be signed in to change notification settings - Fork 0
/
loxmlhandler.h
39 lines (32 loc) · 1.05 KB
/
loxmlhandler.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef LOXMLHANDLER_H
#define LOXMLHANDLER_H
#include <QXmlDefaultHandler>
#include <QStringList>
#include "lomodel.h"
class loItem ;
class loXmlHandler : public QXmlDefaultHandler
{
public:
loXmlHandler(loItem *rootItemArg);
bool startDocument() ;
bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts) ;
bool endElement(const QString &namespaceURI, const QString &localName, const QString &qName) ;
bool characters(const QString &ch) ;
void setFilePath(QString &filePathArg) ;
private:
loItem *rootItem ;
loItem *resourcesItem ;
loItem *currentItem ;
LangString *currentLangString ;
ImsmdMetadata *imsmdData ;
EjmdMetadata *ejmdData ;
ContributeItem *currentContributeItem ;
RequirementData *currentRequirementData ;
FormatData *currentFormatData ;
QStringList context ;
QList<QVariant> imsmdDataList ;
QList<QVariant> ejmdDataList ;
QList<QVariant> resourcesData ;
QString *filePath ;
};
#endif // LOXMLHANDLER_H