AusweisApp
Lade ...
Suche ...
Keine Treffer
PaosHandler.h
gehe zur Dokumentation dieser Datei
1
5#pragma once
6
8#include "paos/PaosMessage.h"
9
10#include <QSharedPointer>
11#include <QXmlStreamReader>
12
13namespace governikus
14{
15
17 : private ElementDetector
18{
19 Q_DISABLE_COPY(PaosHandler)
20
21 private:
22 const QByteArray mXmlData;
23 PaosType mDetectedType;
24 QSharedPointer<PaosMessage> mParsedObject;
25
26 void detect();
27 void parse();
28 void setParsedObject(PaosMessage* pParsedObject);
29
30 bool handleFoundElement(QStringView pElementName, const QString& pValue, const QXmlStreamAttributes& pAttributes) override;
31
32 public:
33 explicit PaosHandler(const QByteArray& pXmlData);
34
35 [[nodiscard]] PaosType getDetectedPaosType() const;
36 [[nodiscard]] QSharedPointer<PaosMessage> getPaosMessage() const;
37};
38
39} // namespace governikus
Definition ElementDetector.h:15
Definition PaosHandler.h:18
QSharedPointer< PaosMessage > getPaosMessage() const
Definition PaosHandler.cpp:137
PaosHandler(const QByteArray &pXmlData)
Definition PaosHandler.cpp:21
PaosType getDetectedPaosType() const
Definition PaosHandler.cpp:131
Definition PaosMessage.h:17
Defines the AccessRight and AccessRole enum.
Definition CommandApdu.h:17