AusweisApp2
 Alle Klassen Namensbereiche Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Propertys Freundbeziehungen Makrodefinitionen
IntentActivationHandler.h
gehe zur Dokumentation dieser Datei
1 
5 #pragma once
6 
7 #include "ActivationHandler.h"
8 
9 #ifdef Q_OS_ANDROID
10 #include <jni.h>
11 
12 
13 extern "C"
14 {
15 JNIEXPORT void JNICALL Java_com_governikus_ausweisapp2_MainActivity_triggerActivation(JNIEnv* env, jobject obj, jstring lastIntent);
16 }
17 #endif
18 
19 
20 namespace governikus
21 {
22 
29  : public ActivationHandler
30 {
31  Q_OBJECT
32  Q_PLUGIN_METADATA(IID "governikus.ActivationHandler" FILE "metadata.json")
33  Q_INTERFACES(governikus::ActivationHandler)
34 
35 #ifdef Q_OS_ANDROID
36  friend void ::Java_com_governikus_ausweisapp2_MainActivity_triggerActivation(JNIEnv*, jobject, jstring);
37 #endif
38 
39  private:
40  void onIntent(const QUrl& pUrl);
41 
42  public:
43  IntentActivationHandler() = default;
44 
45  virtual bool start() override;
46  virtual void stop() override;
47 };
48 
49 } /* namespace governikus */
virtual void stop() override
Definition: IntentActivationHandler.cpp:71
The ActivationHandler is beside the UI another API of the application.
Definition: ActivationHandler.h:45
virtual bool start() override
Definition: IntentActivationHandler.cpp:52
This ActivationHandler implements an API by opening custom URLs registered in the Android manifest...
Definition: IntentActivationHandler.h:28