Fix forward navigation control on Linux.
[dorian] / model / containerhandler.h
1 #ifndef CONTAINERHANDLER_H
2 #define CONTAINERHANDLER_H
3
4 #include "xmlhandler.h"
5
6 /** XML content handler for EPUB container format. */
7 class ContainerHandler: public XmlHandler
8 {
9 public:
10     bool endElement(const QString &, const QString &, const QString &) {
11         return true;
12     }
13
14     bool startElement(const QString &namespaceUri, const QString &name,
15                       const QString &qName, const QXmlAttributes &attrs)
16     {
17         (void)namespaceUri;
18         (void)qName;
19         if (name == "rootfile") {
20             rootFile = attrs.value("full-path");
21         }
22         return true;
23     }
24
25     QString rootFile;
26 };
27
28 #endif // CONTAINERHANDLER_H