AusweisApp
Lade ...
Suche ...
Keine Treffer
AuthModel.h
gehe zur Dokumentation dieser Datei
1
9#pragma once
10
11#include "Env.h"
12#include "WorkflowModel.h"
13#include "context/AuthContext.h"
14
15#include <QObject>
16#include <QQmlEngine>
17#include <QSharedPointer>
18#include <QString>
19
20
21class test_UIPlugInQml;
22
23
24namespace governikus
25{
26
28 : public WorkflowModel
29{
30 Q_OBJECT
31 friend class Env;
32 friend class ::test_UIPlugInQml;
33
35 Q_PROPERTY(int progressValue READ getProgressValue NOTIFY fireProgressChanged)
36 Q_PROPERTY(QString progressMessage READ getProgressMessage NOTIFY fireProgressChanged)
38 Q_PROPERTY(QString errorHeader READ getErrorHeader NOTIFY fireResultChanged)
39 Q_PROPERTY(QString errorText READ getErrorText NOTIFY fireResultChanged)
40 Q_PROPERTY(QString statusCodeString READ getStatusCodeString NOTIFY fireResultChanged)
41
42 private:
43 QSharedPointer<AuthContext> mContext;
44 QString mTransactionInfo;
45
46 protected:
47 AuthModel();
48 ~AuthModel() override = default;
49
50 public:
51 void resetAuthContext(const QSharedPointer<AuthContext>& pContext = QSharedPointer<AuthContext>());
52
53 [[nodiscard]] const QString& getTransactionInfo() const;
54 [[nodiscard]] int getProgressValue() const;
55 [[nodiscard]] QString getProgressMessage() const;
56 [[nodiscard]] bool getShowChangePinView() const;
57 [[nodiscard]] QString getErrorHeader() const;
58 [[nodiscard]] QString getErrorText() const;
59 [[nodiscard]] QString getStatusCodeString() const;
60
61 Q_INVOKABLE void cancelWorkflowToChangePin();
62
63 private Q_SLOTS:
64 void onDidAuthenticateEac1Changed();
65
66 Q_SIGNALS:
70};
71
72
73} // namespace governikus
Definition: AuthModel.h:29
int progressValue
Definition: AuthModel.h:35
void fireShowChangePinViewChanged()
void fireTransactionInfoChanged()
Q_INVOKABLE void cancelWorkflowToChangePin()
Definition: AuthModel.cpp:125
QString errorText
Definition: AuthModel.h:39
QString getProgressMessage() const
Definition: AuthModel.cpp:58
const QString & getTransactionInfo() const
Definition: AuthModel.cpp:41
QString getStatusCodeString() const
Definition: AuthModel.cpp:119
int getProgressValue() const
Definition: AuthModel.cpp:47
void resetAuthContext(const QSharedPointer< AuthContext > &pContext=QSharedPointer< AuthContext >())
Definition: AuthModel.cpp:17
QString getErrorHeader() const
Definition: AuthModel.cpp:80
QString errorHeader
Definition: AuthModel.h:38
~AuthModel() override=default
QString statusCodeString
Definition: AuthModel.h:40
bool showChangePinView
Definition: AuthModel.h:37
AuthModel()
Definition: AuthModel.cpp:9
bool getShowChangePinView() const
Definition: AuthModel.cpp:69
QString getErrorText() const
Definition: AuthModel.cpp:92
QString transactionInfo
Definition: AuthModel.h:34
QString progressMessage
Definition: AuthModel.h:36
Definition: Env.h:42
Definition: WorkflowModel.h:26
Implementation of GeneralAuthenticate response APDUs.
Definition: CommandApdu.h:16