AusweisApp
Lade ...
Suche ...
Keine Treffer
AuthModel.h
gehe zur Dokumentation dieser Datei
1
5#pragma once
6
7#include "Env.h"
8#include "SingletonCreator.h"
9#include "WorkflowModel.h"
10#include "context/AuthContext.h"
11
12#include <QObject>
13#include <QQmlEngine>
14#include <QSharedPointer>
15#include <QString>
16#include <QtQml/qqmlregistration.h>
17
18
19class test_UiPluginQml;
20
21
22namespace governikus
23{
24
26 : public WorkflowModel
27 , public SingletonCreator<AuthModel>
28{
32
33 friend class Env;
34 friend class ::test_UiPluginQml;
35
41 Q_PROPERTY(QString errorHeader READ getErrorHeader NOTIFY fireResultChanged)
42 Q_PROPERTY(QString errorText READ getErrorText NOTIFY fireResultChanged)
47
48 private:
50 QString mTransactionInfo;
51
53 AuthModel();
55
56 public:
58
63 [[nodiscard]] QString getResultHeader() const;
64 [[nodiscard]] QString getErrorHeader() const;
65 [[nodiscard]] QString getErrorText() const;
70
72
74 void onDidAuthenticateEac1Changed();
75
80};
81
82
83} // namespace governikus
Definition AuthContext.h:44
Definition AuthModel.h:28
int progressValue
Definition AuthModel.h:37
QString resultViewButtonText
Definition AuthModel.h:45
void fireTransactionInfoChanged()
QString getResultHeader() const
Definition AuthModel.cpp:81
QString errorText
Definition AuthModel.h:42
QString getProgressMessage() const
Definition AuthModel.cpp:59
const QString & getTransactionInfo() const
Definition AuthModel.cpp:42
QString getStatusCodeString() const
Definition AuthModel.cpp:144
int getProgressValue() const
Definition AuthModel.cpp:48
void resetAuthContext(const QSharedPointer< AuthContext > &pContext=QSharedPointer< AuthContext >())
Definition AuthModel.cpp:18
QUrl getResultViewButtonLink() const
Definition AuthModel.cpp:182
QString getErrorHeader() const
Definition AuthModel.cpp:105
bool getChangeTransportPin() const
Definition AuthModel.cpp:70
QString resultHeader
Definition AuthModel.h:40
QString resultViewButtonIcon
Definition AuthModel.h:44
QString errorHeader
Definition AuthModel.h:41
QString getResultViewButtonText() const
Definition AuthModel.cpp:166
bool changeTransportPin
Definition AuthModel.h:39
QString statusCodeString
Definition AuthModel.h:43
QString getResultViewButtonIcon() const
Definition AuthModel.cpp:150
QString getErrorText() const
Definition AuthModel.cpp:117
void fireChangeTransportPinChanged()
QString transactionInfo
Definition AuthModel.h:36
QUrl resultViewButtonLink
Definition AuthModel.h:46
QString progressMessage
Definition AuthModel.h:38
Q_INVOKABLE void cancelWorkflowToChangeTransportPin()
Definition AuthModel.cpp:192
Definition Env.h:40
Definition SingletonCreator.h:22
Defines the AccessRight and AccessRole enum.
Definition CommandApdu.h:17
QSharedPointer< T > decodeObject(const QByteArray &pData, bool pLogging=true)
Template function for decoding an OpenSSL type from DER encoded QByteArray.
Definition ASN1TemplateUtil.h:112