AusweisApp2
ElementDetector.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
9 #include <QByteArray>
10 #include <QStringList>
11 #include <QXmlStreamReader>
12 
13 namespace governikus
14 {
15 
17 {
18  private:
19  Q_DISABLE_COPY(ElementDetector)
20 
21  protected:
22  QXmlStreamReader mReader;
23  const QByteArray mXmlData;
24 
25  void handleStartElements(const QStringList& pStartElementNames);
26  void detectStartElements(const QStringList& pStartElementNames);
27  virtual bool handleFoundElement(const QString& pElementName, const QString& pValue, const QXmlStreamAttributes& pAttributes) = 0;
28 
29  public:
30  explicit ElementDetector(const QByteArray& pXmlData);
31  virtual ~ElementDetector();
32 };
33 
34 } // namespace governikus
governikus::ElementDetector::handleStartElements
void handleStartElements(const QStringList &pStartElementNames)
Definition: ElementDetector.cpp:45
name
const char * name
Definition: http_parser.cpp:473
governikus::ElementDetector::detectStartElements
void detectStartElements(const QStringList &pStartElementNames)
Definition: ElementDetector.cpp:28
ElementDetector.h
governikus::ElementDetector::ElementDetector
ElementDetector(const QByteArray &pXmlData)
Definition: ElementDetector.cpp:16
governikus::ElementDetector::handleFoundElement
virtual bool handleFoundElement(const QString &pElementName, const QString &pValue, const QXmlStreamAttributes &pAttributes)=0
governikus
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15
governikus::ElementDetector::~ElementDetector
virtual ~ElementDetector()
Definition: ElementDetector.cpp:23
governikus::ElementDetector
Definition: ElementDetector.h:17
governikus::ElementDetector::mXmlData
const QByteArray mXmlData
Definition: ElementDetector.h:23
governikus::ElementDetector::mReader
QXmlStreamReader mReader
Definition: ElementDetector.h:22