AusweisApp2
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
20namespace governikus
21{
22
24 : public WorkflowModel
25{
26 Q_OBJECT
27 friend class Env;
28
30 Q_PROPERTY(int progressValue READ getProgressValue NOTIFY fireProgressChanged)
31 Q_PROPERTY(QString progressMessage READ getProgressMessage NOTIFY fireProgressChanged)
33 Q_PROPERTY(QString errorHeader READ getErrorHeader NOTIFY fireResultChanged)
34 Q_PROPERTY(QString errorText READ getErrorText NOTIFY fireResultChanged)
35 Q_PROPERTY(QString statusCodeString READ getStatusCodeString NOTIFY fireResultChanged)
36
37 private:
38 QSharedPointer<AuthContext> mContext;
39 QString mTransactionInfo;
40
41 protected:
42 AuthModel();
43 ~AuthModel() override = default;
44
45 public:
46 void resetAuthContext(const QSharedPointer<AuthContext>& pContext = QSharedPointer<AuthContext>());
47
48 [[nodiscard]] const QString& getTransactionInfo() const;
49 [[nodiscard]] int getProgressValue() const;
50 [[nodiscard]] QString getProgressMessage() const;
51 [[nodiscard]] bool getShowChangePinView() const;
52 [[nodiscard]] QString getErrorHeader() const;
53 [[nodiscard]] QString getErrorText() const;
54 [[nodiscard]] QString getStatusCodeString() const;
55
56 Q_INVOKABLE void cancelWorkflowToChangePin();
57
58 private Q_SLOTS:
59 void onDidAuthenticateEac1Changed();
60
61 Q_SIGNALS:
65};
66
67
68} // namespace governikus
Definition AuthModel.h:25
int progressValue
Definition AuthModel.h:30
void fireShowChangePinViewChanged()
void fireTransactionInfoChanged()
Q_INVOKABLE void cancelWorkflowToChangePin()
Definition AuthModel.cpp:125
QString errorText
Definition AuthModel.h:34
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:33
~AuthModel() override=default
QString statusCodeString
Definition AuthModel.h:35
bool showChangePinView
Definition AuthModel.h:32
AuthModel()
Definition AuthModel.cpp:9
bool getShowChangePinView() const
Definition AuthModel.cpp:69
QString getErrorText() const
Definition AuthModel.cpp:92
QString transactionInfo
Definition AuthModel.h:29
QString progressMessage
Definition AuthModel.h:31
Definition Env.h:46
Definition WorkflowModel.h:25
Implementation of GeneralAuthenticate response APDUs.
Definition CommandApdu.h:16