AusweisApp2
UIPlugInJson.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
9 #include "context/AuthContext.h"
10 #include "MessageDispatcher.h"
11 #include "UIPlugIn.h"
12 
13 namespace 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:
30  UIPlugInJson();
31  virtual ~UIPlugInJson() override = default;
32 
33  void setEnabled(bool pEnable = true);
34  bool isEnabled() const;
35 
36  private Q_SLOTS:
37  virtual void doShutdown() override;
38  virtual void onWorkflowStarted(QSharedPointer<WorkflowContext> pContext) override;
39  virtual void onWorkflowFinished(QSharedPointer<WorkflowContext> pContext) override;
40  void onReaderEvent(const QString& pName);
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: UIPlugInJson.h:16
UIPlugInJson()
Definition: UIPlugInJson.cpp:17
void fireMessage(const QByteArray &pMsg)
Definition: moc_UIPlugInJson.cpp:187
void setEnabled(bool pEnable=true)
Definition: UIPlugInJson.cpp:25
virtual ~UIPlugInJson() override=default
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:14
bool isEnabled() const
Definition: UIPlugInJson.cpp:47
Definition: MessageDispatcher.h:24
void doMessageProcessing(const QByteArray &pMsg)
Definition: UIPlugInJson.cpp:106