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"
13
14
15class test_UIPlugInJson;
16class test_MsgHandlerAuth;
17class test_MsgHandlerPersonalization;
18
19
20namespace governikus
21{
22
24 : public UIPlugIn
25{
26 Q_OBJECT
27 Q_PLUGIN_METADATA(IID "governikus.UIPlugIn" FILE "metadata.json")
28 Q_INTERFACES(governikus::UIPlugIn)
29 friend class ::test_UIPlugInJson;
30 friend class ::test_MsgHandlerAuth;
32
33 private:
34 MessageDispatcher mMessageDispatcher;
35 bool mEnabled;
36
37 inline void callFireMessage(const QByteArray& pMsg, bool pLogging = true);
38
39 public:
41 ~UIPlugInJson() override = default;
42
43 void setEnabled(bool pEnable = true);
44 [[nodiscard]] bool isEnabled() const;
45
46 private Q_SLOTS:
47 void doShutdown() override;
48 void onWorkflowStarted(const QSharedPointer<WorkflowRequest>& pRequest) override;
49 void onWorkflowFinished(const QSharedPointer<WorkflowRequest>& pRequest) override;
50 void onCardInfoChanged(const ReaderInfo& pInfo);
51 void onReaderEvent(const ReaderInfo& pInfo);
52 void onCardInserted(const ReaderInfo& pInfo);
53 void onStateChanged(const QString& pNewState);
54 void onProgressChanged();
55
56 public Q_SLOTS:
57 void doMessageProcessing(const QByteArray& pMsg);
58
59 Q_SIGNALS:
60 void fireMessage(const QByteArray& pMsg);
61};
62
63} // namespace governikus
Definition: MessageDispatcher.h:29
Definition: ReaderInfo.h:18
Definition: UIPlugInJson.h:25
void setEnabled(bool pEnable=true)
Definition: UIPlugInJson.cpp:28
void fireMessage(const QByteArray &pMsg)
void doMessageProcessing(const QByteArray &pMsg)
Definition: UIPlugInJson.cpp:145
friend class ::test_MsgHandlerPersonalization
Definition: UIPlugInJson.h:31
friend class ::test_UIPlugInJson
Definition: UIPlugInJson.h:29
bool isEnabled() const
Definition: UIPlugInJson.cpp:54
friend class ::test_MsgHandlerAuth
Definition: UIPlugInJson.h:30
Definition: WorkflowRequest.h:26
Implementation of GeneralAuthenticate response APDUs.
Definition: CommandApdu.h:16