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  Q_DISABLE_COPY(ElementDetector)
19 
20  protected:
21  QXmlStreamReader mReader;
22  const QByteArray mXmlData;
23 
24  void handleStartElements(const QStringList& pStartElementNames);
25  void detectStartElements(const QStringList& pStartElementNames);
26  virtual bool handleFoundElement(const QString& pElementName, const QString& pValue, const QXmlStreamAttributes& pAttributes) = 0;
27 
28  public:
29  explicit ElementDetector(const QByteArray& pXmlData);
30  virtual ~ElementDetector();
31 };
32 
33 } // namespace governikus
Definition: ElementDetector.h:17
void handleStartElements(const QStringList &pStartElementNames)
Definition: ElementDetector.cpp:43
void detectStartElements(const QStringList &pStartElementNames)
Definition: ElementDetector.cpp:26
QXmlStreamReader mReader
Definition: ElementDetector.h:21
virtual bool handleFoundElement(const QString &pElementName, const QString &pValue, const QXmlStreamAttributes &pAttributes)=0
const QByteArray mXmlData
Definition: ElementDetector.h:22
ElementDetector(const QByteArray &pXmlData)
Definition: ElementDetector.cpp:16
Implementation of GeneralAuthenticate response APDUs.
Definition: CommandApdu.h:16