AusweisApp2
PaosHandler.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
9 #include "paos/ElementDetector.h"
10 #include "paos/PaosMessage.h"
11 
12 #include <QSharedPointer>
13 #include <QXmlStreamReader>
14 
15 namespace governikus
16 {
17 
19  : private ElementDetector
20 {
21  Q_DISABLE_COPY(PaosHandler)
22 
23  private:
24  PaosType mDetectedType;
25  QSharedPointer<PaosMessage> mParsedObject;
26 
27  void detect();
28  void parse();
29  void setParsedObject(PaosMessage* pParsedObject);
30 
31  bool handleFoundElement(const QString& pElementName, const QString& pValue, const QXmlStreamAttributes& pAttributes) override;
32 
33  public:
34  explicit PaosHandler(const QByteArray& pXmlData);
35 
36  [[nodiscard]] PaosType getDetectedPaosType() const;
37  [[nodiscard]] QSharedPointer<PaosMessage> getPaosMessage() const;
38 };
39 
40 } // namespace governikus
Definition: ElementDetector.h:17
Definition: PaosHandler.h:20
QSharedPointer< PaosMessage > getPaosMessage() const
Definition: PaosHandler.cpp:131
PaosHandler(const QByteArray &pXmlData)
Definition: PaosHandler.cpp:17
PaosType getDetectedPaosType() const
Definition: PaosHandler.cpp:125
Definition: PaosMessage.h:19
Implementation of GeneralAuthenticate response APDUs.
Definition: CommandApdu.h:16