AusweisApp
 
Lade ...
Suche ...
Keine Treffer
ChangePinModel.h
gehe zur Dokumentation dieser Datei
1
4
5#pragma once
6
7#include "Env.h"
8#include "SingletonCreator.h"
9#include "WorkflowModel.h"
10#include "WorkflowRequest.h"
12
13#include <QObject>
14#include <QQmlEngine>
15#include <QSharedPointer>
16#include <QString>
17#include <QtQml/qqmlregistration.h>
18
19
20class test_UiPluginQml;
21
22
23namespace governikus
24{
25
26class ChangePinModel
27 : public WorkflowModel
28 , public SingletonCreator<ChangePinModel>
29{
30 Q_OBJECT
31 QML_ELEMENT
32 QML_SINGLETON
33
34 friend class Env;
35 friend class ::test_UiPluginQml;
36 Q_PROPERTY(bool requestTransportPin READ isRequestTransportPin NOTIFY fireWorkflowStarted)
37 Q_PROPERTY(bool onlyCheckPin READ isOnlyCheckPin NOTIFY fireWorkflowStarted)
38
39 private:
40 QSharedPointer<ChangePinContext> mContext;
41 ChangePinModel() = default;
42 ~ChangePinModel() override = default;
43
44 public:
45 void resetChangePinContext(const QSharedPointer<ChangePinContext>& pContext = QSharedPointer<ChangePinContext>());
46
47 Q_INVOKABLE void startWorkflow(bool pRequestTransportPin, bool pActivateUi = true, bool pOnlyCheckPin = false);
48 [[nodiscard]] QString getResultString() const override;
49 [[nodiscard]] QList<ReaderManagerPluginType> getSupportedReaderPluginTypes() const override;
50 [[nodiscard]] GAnimation getStatusCodeAnimation() const override;
51 [[nodiscard]] bool isRequestTransportPin() const;
52 [[nodiscard]] bool isOnlyCheckPin() const;
53
54 Q_SIGNALS:
55 void fireStartWorkflow(const QSharedPointer<WorkflowRequest>& pRequest);
56};
57
58
59} // namespace governikus
Definition ChangePinContext.h:14
QList< ReaderManagerPluginType > getSupportedReaderPluginTypes() const override
Definition ChangePinModel.cpp:45
void resetChangePinContext(const QSharedPointer< ChangePinContext > &pContext=QSharedPointer< ChangePinContext >())
Definition ChangePinModel.cpp:13
bool onlyCheckPin
Definition ChangePinModel.h:37
void fireStartWorkflow(const QSharedPointer< WorkflowRequest > &pRequest)
bool isOnlyCheckPin() const
Definition ChangePinModel.cpp:77
bool isRequestTransportPin() const
Definition ChangePinModel.cpp:67
QString getResultString() const override
Definition ChangePinModel.cpp:34
Q_INVOKABLE void startWorkflow(bool pRequestTransportPin, bool pActivateUi=true, bool pOnlyCheckPin=false)
Definition ChangePinModel.cpp:28
GAnimation getStatusCodeAnimation() const override
Definition ChangePinModel.cpp:56
bool requestTransportPin
Definition ChangePinModel.h:36
Definition SingletonCreator.h:22
Definition WorkflowRequest.h:26
Defines the AccessRight and AccessRole enum.
Definition CommandApdu.h:17