AusweisApp
Lade ...
Suche ...
Keine Treffer
UiPluginJson.h
gehe zur Dokumentation dieser Datei
1
5#pragma once
6
7#include "MessageDispatcher.h"
8#include "UiPlugin.h"
9
10
11class test_UiPluginJson;
12class test_MsgHandlerAuth;
13class test_MsgHandlerPersonalization;
14
15
16namespace governikus
17{
18
20 : public UiPlugin
21{
23 Q_PLUGIN_METADATA(IID "governikus.UiPlugin" FILE "metadata.json")
24 Q_INTERFACES(governikus::UiPlugin)
28
29 private:
30 MessageDispatcher mMessageDispatcher;
31 bool mEnabled;
32
33 inline void callFireMessage(const QByteArray& pMsg, bool pLogging = true);
34
35 public:
38
39 void setEnabled(bool pEnable = true);
40 [[nodiscard]] bool isEnabled() const;
41
43 void doShutdown() override;
44 void onWorkflowStarted(const QSharedPointer<WorkflowRequest>& pRequest) override;
45 void onWorkflowFinished(const QSharedPointer<WorkflowRequest>& pRequest) override;
46 void onCardInfoChanged(const ReaderInfo& pInfo);
47 void onReaderEvent(const ReaderInfo& pInfo);
48 void onCardInserted(const ReaderInfo& pInfo);
49 void onStateChanged(const QString& pNewState);
50 void onProgressChanged();
51
54
57};
58
59} // namespace governikus
Definition MessageDispatcher.h:25
Definition ReaderInfo.h:18
Definition UiPluginJson.h:21
bool isEnabled() const
Definition UiPluginJson.cpp:54
friend class ::test_MsgHandlerPersonalization
Definition UiPluginJson.h:27
void setEnabled(bool pEnable=true)
Definition UiPluginJson.cpp:28
friend class ::test_UiPluginJson
Definition UiPluginJson.h:25
void doMessageProcessing(const QByteArray &pMsg)
Definition UiPluginJson.cpp:145
friend class ::test_MsgHandlerAuth
Definition UiPluginJson.h:26
void fireMessage(const QByteArray &pMsg)
Definition WorkflowRequest.h:26
Defines the AccessRight and AccessRole enum.
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:112