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