AusweisApp
Lade ...
Suche ...
Keine Treffer
SelfAuthModel.h
gehe zur Dokumentation dieser Datei
1
9#pragma once
10
11#include "Env.h"
13#include "WorkflowRequest.h"
14
15#include <QAbstractListModel>
16#include <QEvent>
17#include <QSharedPointer>
18#include <QString>
19
20
21class test_UIPlugInQml;
22
23
24namespace governikus
25{
26
27class SelfAuthContext;
28
30 : public QAbstractListModel
31{
33 friend class Env;
34 friend class ::test_UIPlugInQml;
35
37
38 private:
40
43
44 private Q_SLOTS:
45 void onSelfAuthenticationDataChanged();
46
47 public:
49 {
50 NAME = Qt::UserRole + 1,
51 VALUE
52 };
53
55
56 Q_INVOKABLE void startWorkflow(bool pActivateUi = true);
58 [[nodiscard]] bool isWorkflowCancelled() const;
59 [[nodiscard]] Q_INVOKABLE bool isBasicReader() const;
60
61 [[nodiscard]] int rowCount(const QModelIndex& = QModelIndex()) const override;
62 [[nodiscard]] QVariant data(const QModelIndex& pIndex, int pRole = Qt::DisplayRole) const override;
63 [[nodiscard]] QHash<int, QByteArray> roleNames() const override;
64
65 [[nodiscard]] bool event(QEvent* pEvent) override;
66
70};
71
72
73} // namespace governikus
Definition Env.h:42
Definition SelfAuthModel.h:31
int rowCount(const QModelIndex &=QModelIndex()) const override
Definition SelfAuthModel.cpp:97
void resetContext(const QSharedPointer< SelfAuthContext > &pContext=QSharedPointer< SelfAuthContext >())
Definition SelfAuthModel.cpp:49
Q_INVOKABLE bool isBasicReader() const
Definition SelfAuthModel.cpp:86
DataRoles
Definition SelfAuthModel.h:49
@ VALUE
Definition SelfAuthModel.h:51
@ NAME
Definition SelfAuthModel.h:50
bool isWorkflowCancelled() const
Definition SelfAuthModel.cpp:76
Q_INVOKABLE void startWorkflow(bool pActivateUi=true)
Definition SelfAuthModel.cpp:61
QHash< int, QByteArray > roleNames() const override
Definition SelfAuthModel.cpp:121
QVariant data(const QModelIndex &pIndex, int pRole=Qt::DisplayRole) const override
Definition SelfAuthModel.cpp:103
bool event(QEvent *pEvent) override
Definition SelfAuthModel.cpp:130
Q_INVOKABLE void cancelWorkflow()
Definition SelfAuthModel.cpp:67
bool workflowCancelled
Definition SelfAuthModel.h:36
void fireStartWorkflow(const QSharedPointer< WorkflowRequest > &pRequest)
QList< QPair< QString, QString > > OrderedSelfData
Definition SelfAuthenticationData.h:63
Implementation of GeneralAuthenticate response APDUs.
Definition CommandApdu.h:16
QSharedPointer< T > decodeObject(const QByteArray &pData, bool pLogging=true)
Template function for decoding an OpenSSL type from DER encoded QByteArray.
Definition ASN1TemplateUtil.h:114