AusweisApp2
Lade ...
Suche ...
Keine Treffer
UIPlugInJson.h
gehe zur Dokumentation dieser Datei
1
7#pragma once
8
10#include "MessageDispatcher.h"
11#include "UIPlugIn.h"
12
13namespace governikus
14{
15
17 : public UIPlugIn
18{
19 Q_OBJECT
20 Q_PLUGIN_METADATA(IID "governikus.UIPlugIn" FILE "metadata.json")
21 Q_INTERFACES(governikus::UIPlugIn)
22
23 private:
24 MessageDispatcher mMessageDispatcher;
25 bool mEnabled;
26
27 inline void callFireMessage(const QByteArray& pMsg, bool pLogging = true);
28
29 public:
31 ~UIPlugInJson() override = default;
32
33 void setEnabled(bool pEnable = true);
34 [[nodiscard]] bool isEnabled() const;
35
36 private Q_SLOTS:
37 void doShutdown() override;
38 void onWorkflowStarted(QSharedPointer<WorkflowContext> pContext) override;
39 void onWorkflowFinished(QSharedPointer<WorkflowContext> pContext) override;
40 void onReaderEvent(const ReaderInfo& pInfo);
41 void onStateChanged(const QString& pNewState);
42
43 public Q_SLOTS:
44 void doMessageProcessing(const QByteArray& pMsg);
45
46 Q_SIGNALS:
47 void fireMessage(const QByteArray& pMsg);
48};
49
50} // namespace governikus
Definition: MessageDispatcher.h:26
Definition: ReaderInfo.h:17
Definition: UIPlugInJson.h:18
void setEnabled(bool pEnable=true)
Definition: UIPlugInJson.cpp:27
~UIPlugInJson() override=default
UIPlugInJson()
Definition: UIPlugInJson.cpp:19
void fireMessage(const QByteArray &pMsg)
void doMessageProcessing(const QByteArray &pMsg)
Definition: UIPlugInJson.cpp:110
bool isEnabled() const
Definition: UIPlugInJson.cpp:51
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15