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{
27 Q_PLUGIN_METADATA(IID "governikus.UiPlugin" FILE "metadata.json")
28 Q_INTERFACES(governikus::UiPlugin)
32
33 private:
34 MessageDispatcher mMessageDispatcher;
35 bool mEnabled;
36
37 inline void callFireMessage(const QByteArray& pMsg, bool pLogging = true);
38
39 public:
42
43 void setEnabled(bool pEnable = true);
44 [[nodiscard]] bool isEnabled() const;
45
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
58
61};
62
63} // namespace governikus
Definition MessageDispatcher.h:29
Definition ReaderInfo.h:18
Definition UiPluginJson.h:25
bool isEnabled() const
Definition UiPluginJson.cpp:54
friend class ::test_MsgHandlerPersonalization
Definition UiPluginJson.h:31
void setEnabled(bool pEnable=true)
Definition UiPluginJson.cpp:28
friend class ::test_UiPluginJson
Definition UiPluginJson.h:29
void doMessageProcessing(const QByteArray &pMsg)
Definition UiPluginJson.cpp:145
friend class ::test_MsgHandlerAuth
Definition UiPluginJson.h:30
void fireMessage(const QByteArray &pMsg)
Definition WorkflowRequest.h:26
Implementation of GeneralAuthenticate response APDUs.
Definition CommandApdu.h:17
QSharedPointer< T > decodeObject(const QByteArray &pData, bool pLogging=true)
Template function for decoding an OpenSSL type from DER encoded QByteArray.
Definition ASN1TemplateUtil.h:114