AusweisApp2
ActivationHandler.h
gehe zur Dokumentation dieser Datei
1 
5 #pragma once
6 
7 #include "EnumHelper.h"
8 #include "UIPlugIn.h"
9 
10 #include <QMap>
11 #include <QUrl>
12 
13 namespace governikus
14 {
15 
16 class ActivationContext;
17 
21 defineEnumType(StatusFormat,
22  PLAIN,
23  JSON
24  )
25 
26 
27 
34 class ActivationHandler
35  : public QObject
36 {
37  Q_OBJECT
38 
39  protected:
40  ActivationHandler() = default;
41  ~ActivationHandler() override = default;
42 
43  public:
44  virtual bool start() = 0;
45  virtual void stop() = 0;
46 
47  public Q_SLOTS:
48  virtual void onApplicationActivated();
49 
50  Q_SIGNALS:
51  void fireShowUserInformation(const QString& pErrorMessage = QString());
52  void fireShowUiRequest(UiModule pModule);
53  void fireAuthenticationRequest(const QSharedPointer<ActivationContext>& pActivationContext);
54 };
55 
56 } // namespace governikus
57 
58 Q_DECLARE_INTERFACE(governikus::ActivationHandler, "governikus.ActivationHandler")
ActivationContext.h
Initializer.h
governikus
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15
governikus::defineEnumType
defineEnumType(KeyAgreementType, DH, ECDH) defineEnumType(MappingType
Method used for key agreement:
INIT_FUNCTION
INIT_FUNCTION([] { qRegisterMetaType< UiModule >("UiModule");qRegisterMetaType< QSharedPointer< ActivationContext > >("QSharedPointer<ActivationContext>");}) void ActivationHandler
Definition: ActivationHandler.cpp:12
EnumHelper.h
UIPlugIn.h
ActivationHandler.h