AusweisApp
Lade ...
Suche ...
Keine Treffer
SelfAuthModel.h
gehe zur Dokumentation dieser Datei
1
9#pragma once
10
11#include "Env.h"
13#include "SingletonCreator.h"
14#include "WorkflowRequest.h"
15
16#include <QAbstractListModel>
17#include <QEvent>
18#include <QSharedPointer>
19#include <QString>
20#include <QtQml/qqmlregistration.h>
21
22
23class test_UiPluginQml;
24
25
26namespace governikus
27{
28
29class SelfAuthContext;
30
32 : public QAbstractListModel
33 , public SingletonCreator<SelfAuthModel>
34{
38
39 friend class Env;
40 friend class ::test_UiPluginQml;
41
43
44 private:
46
49
50 private Q_SLOTS:
51 void onSelfAuthenticationDataChanged();
52
53 public:
55 {
56 NAME = Qt::UserRole + 1,
57 VALUE
58 };
59
61
62 Q_INVOKABLE void startWorkflow(bool pActivateUi = true);
64 [[nodiscard]] bool isWorkflowCancelled() const;
65 [[nodiscard]] Q_INVOKABLE bool isBasicReader() const;
66
67 [[nodiscard]] int rowCount(const QModelIndex& = QModelIndex()) const override;
68 [[nodiscard]] QVariant data(const QModelIndex& pIndex, int pRole = Qt::DisplayRole) const override;
69 [[nodiscard]] QHash<int, QByteArray> roleNames() const override;
70
71 [[nodiscard]] bool event(QEvent* pEvent) override;
72
76};
77
78
79} // namespace governikus
Definition Env.h:42
Definition SelfAuthModel.h:34
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:55
@ VALUE
Definition SelfAuthModel.h:57
@ NAME
Definition SelfAuthModel.h:56
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:42
void fireStartWorkflow(const QSharedPointer< WorkflowRequest > &pRequest)
QList< QPair< QString, QString > > OrderedSelfData
Definition SelfAuthenticationData.h:63
Definition SingletonCreator.h:22
Implementation of GeneralAuthenticate response APDUs.
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:114