AusweisApp2
ChangePinModel.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
10 #include "Env.h"
11 #include "WorkflowModel.h"
12 
13 #include <QObject>
14 #include <QQmlEngine>
15 #include <QSharedPointer>
16 #include <QString>
17 
18 namespace governikus
19 {
20 
22  : public WorkflowModel
23 {
24  Q_OBJECT
25  friend class Env;
26 
27  private:
28  QSharedPointer<ChangePinContext> mContext;
29 
30  protected:
31  ChangePinModel() = default;
32  ~ChangePinModel() override = default;
33  static ChangePinModel& getInstance();
34 
35  public:
36  void resetContext(const QSharedPointer<ChangePinContext>& pContext = QSharedPointer<ChangePinContext>());
37 
38  virtual QString getResultString() const override;
39 
40  private Q_SLOTS:
41  void onPaceResultUpdated();
42 
43  Q_SIGNALS:
44  void fireNewContextSet();
45  void fireOnPinUnlocked();
46 };
47 
48 
49 } // namespace governikus
Definition: ChangePinModel.h:21
~ChangePinModel() override=default
static ChangePinModel & getInstance()
Definition: ChangePinModel.cpp:42
void resetContext(const QSharedPointer< ChangePinContext > &pContext=QSharedPointer< ChangePinContext >())
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:14
virtual QString getResultString() const override
Definition: ChangePinModel.cpp:31
Definition: Env.h:38
Definition: WorkflowModel.h:21