AusweisApp2
IfdMessageResponse.h
gehe zur Dokumentation dieser Datei
1 
5 #pragma once
6 
7 #include "ECardApiResult.h"
8 #include "IfdMessage.h"
9 
10 
11 namespace governikus
12 {
14  : public IfdMessage
15 {
16  private:
17  ECardApiResult::Major mResultMajor;
18  ECardApiResult::Minor mResultMinor;
19 
20  protected:
21  [[nodiscard]] QJsonObject createMessageBody(const QString& pContextHandle) const override;
22 
23  public:
24  IfdMessageResponse(IfdMessageType pType, ECardApiResult::Minor pResultMinor);
25  explicit IfdMessageResponse(const QJsonObject& pMessageObject);
26  ~IfdMessageResponse() override = default;
27 
28  [[nodiscard]] bool resultHasError() const;
29  [[nodiscard]] ECardApiResult::Minor getResultMinor() const;
30 };
31 
32 
33 } // namespace governikus
Minor
Definition: ECardApiResult.h:44
Major
Definition: ECardApiResult.h:36
Definition: IfdMessageResponse.h:15
bool resultHasError() const
Definition: IfdMessageResponse.cpp:58
QJsonObject createMessageBody(const QString &pContextHandle) const override
Definition: IfdMessageResponse.cpp:24
IfdMessageResponse(IfdMessageType pType, ECardApiResult::Minor pResultMinor)
Definition: IfdMessageResponse.cpp:34
ECardApiResult::Minor getResultMinor() const
Definition: IfdMessageResponse.cpp:64
~IfdMessageResponse() override=default
A simple template renderer.
Definition: ActivationContext.h:15