AusweisApp2
UIPlugInJson.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
9 #include "MessageDispatcher.h"
10 #include "UIPlugIn.h"
12 
13 class test_MsgHandlerAuth;
14 class test_MsgHandlerPersonalization;
15 
16 namespace governikus
17 {
18 
20  : public UIPlugIn
21 {
22  Q_OBJECT
23  Q_PLUGIN_METADATA(IID "governikus.UIPlugIn" FILE "metadata.json")
24  Q_INTERFACES(governikus::UIPlugIn)
25  friend class ::test_MsgHandlerAuth;
26  friend class ::test_MsgHandlerPersonalization;
27 
28  private:
29  MessageDispatcher mMessageDispatcher;
30  bool mEnabled;
31 
32  inline void callFireMessage(const QByteArray& pMsg, bool pLogging = true);
33 
34  public:
35  UIPlugInJson();
36  ~UIPlugInJson() override = default;
37 
38  void setEnabled(bool pEnable = true);
39  [[nodiscard]] bool isEnabled() const;
40 
41  private Q_SLOTS:
42  void doShutdown() override;
43  void onWorkflowStarted(QSharedPointer<WorkflowContext> pContext) override;
44  void onWorkflowFinished(QSharedPointer<WorkflowContext> pContext) override;
45  void onCardInfoChanged(const ReaderInfo& pInfo);
46  void onReaderEvent(const ReaderInfo& pInfo);
47  void onStateChanged(const QString& pNewState);
48  void onProgressChanged();
49 
50  public Q_SLOTS:
51  void doMessageProcessing(const QByteArray& pMsg);
52 
53  Q_SIGNALS:
54  void fireMessage(const QByteArray& pMsg);
55 };
56 
57 } // namespace governikus
Definition: MessageDispatcher.h:27
Definition: ReaderInfo.h:18
Definition: UIPlugInJson.h:21
void setEnabled(bool pEnable=true)
Definition: UIPlugInJson.cpp:27
void fireMessage(const QByteArray &pMsg)
void doMessageProcessing(const QByteArray &pMsg)
Definition: UIPlugInJson.cpp:132
bool isEnabled() const
Definition: UIPlugInJson.cpp:53
Implementation of GeneralAuthenticate response APDUs.
Definition: CommandApdu.h:16