-
Notifications
You must be signed in to change notification settings - Fork 28
/
OPFReader.h
46 lines (35 loc) · 890 Bytes
/
OPFReader.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
40
41
42
43
44
45
46
#pragma once
#ifndef OPFREADER_H
#define OPFREADER_H
#include <QString>
#include <QStringList>
#include <QDir>
#include <QMap>
class QXmlStreamReader;
class QDir;
class OPFReader : QObject
{
Q_OBJECT
public:
OPFReader();
~OPFReader() { };
void parseOPF(const QString& opfpath);
QStringList GetSpineFilePathList();
QStringList GetAudioFilePathList();
QStringList GetVideoFilePathList();
QStringList GetImageFilePathList();
QStringList GetSVGFilePathList();
QStringList GetCSSFilePathList();
QStringList GetManifestFilePathList();
protected:
void ReadManifestItemElement(QXmlStreamReader *opf_reader);
void ReadSpineItemRef(QXmlStreamReader *opf_reader);
private:
QDir m_opfDir;
QStringList m_ManifestFilePaths;
QMap<QString,QString> m_IDMap;
QMap<QString,QString> m_FileMimeTypes;
QStringList m_SpineFilePaths;
QString m_opfpath;
};
#endif