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  ChangePinModel() = default;
30  ~ChangePinModel() override = default;
31 
32  public:
33  void resetChangePinContext(const QSharedPointer<ChangePinContext>& pContext = QSharedPointer<ChangePinContext>());
34 
35  Q_INVOKABLE void startWorkflow(bool pRequestTransportPin);
36  QString getResultString() const override;
37 
38  private Q_SLOTS:
39  void onPaceResultUpdated();
40 
41  Q_SIGNALS:
42  void fireStartWorkflow(bool pRequestTransportPin);
45 };
46 
47 
48 } // namespace governikus
governikus::ChangePinModel::fireStartWorkflow
void fireStartWorkflow(bool pRequestTransportPin)
ReaderManager.h
governikus::ChangePinModel::getResultString
QString getResultString() const override
Definition: ChangePinModel.cpp:33
governikus::WorkflowModel::isError
bool isError() const
Definition: WorkflowModel.cpp:71
governikus::ChangePinModel::fireOnPinUnlocked
void fireOnPinUnlocked()
governikus::Env
Definition: Env.h:44
governikus::WorkflowContext::firePaceResultUpdated
void firePaceResultUpdated()
governikus::ChangePinModel::startWorkflow
Q_INVOKABLE void startWorkflow(bool pRequestTransportPin)
Definition: ChangePinModel.cpp:27
governikus::WorkflowModel::resetWorkflowContext
void resetWorkflowContext(const QSharedPointer< WorkflowContext > &pContext=QSharedPointer< WorkflowContext >())
Definition: WorkflowModel.cpp:39
governikus::WorkflowModel::getResultString
virtual QString getResultString() const
Definition: WorkflowModel.cpp:65
ChangePinContext.h
governikus::WorkflowModel::fireResultChanged
void fireResultChanged()
governikus::ChangePinContext::fireSuccessMessageChanged
void fireSuccessMessageChanged()
governikus
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15
governikus::ChangePinModel::fireNewContextSet
void fireNewContextSet()
Env.h
governikus::ChangePinModel::resetChangePinContext
void resetChangePinContext(const QSharedPointer< ChangePinContext > &pContext=QSharedPointer< ChangePinContext >())
Definition: ChangePinModel.cpp:12
WorkflowModel.h
governikus::ChangePinModel
Definition: ChangePinModel.h:23
ChangePinModel.h
governikus::WorkflowModel
Definition: WorkflowModel.h:23