AusweisApp2
UIPlugInAutomatic.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
9 #include "UIPlugIn.h"
10 
11 class test_UIPlugInAutomatic;
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  friend class ::test_UIPlugInAutomatic;
23 
24  private:
25  QSharedPointer<WorkflowContext> mContext;
26  QString mDominator;
27  bool mPrevUsedAsSDK;
28 
29  [[nodiscard]] bool isDominated() const;
30  void handleInsertCard();
31  void handlePassword();
32 
33  private Q_SLOTS:
34  void onApplicationStarted() override;
35  void doShutdown() override;
36  void onWorkflowStarted(QSharedPointer<WorkflowContext> pContext) override;
37  void onWorkflowFinished(QSharedPointer<WorkflowContext> pContext) override;
38  void onUiDomination(const UIPlugIn* pUi, const QString& pInformation, bool pAccepted) override;
39  void onUiDominationReleased() override;
40  void onStateChanged(const QString& pState);
41 
42  public:
44  ~UIPlugInAutomatic() override = default;
45 };
46 
47 } // namespace governikus
Definition: UIPlugInAutomatic.h:18
Implementation of GeneralAuthenticate response APDUs.
Definition: CommandApdu.h:16