15#include <QAbstractListModel>
17#include <QSharedPointer>
21class test_UIPlugInQml;
30 :
public QAbstractListModel
34 friend class ::test_UIPlugInQml;
41 QSharedPointer<SelfAuthContext> mContext;
45 void onSelfAuthenticationDataChanged();
54 void resetContext(
const QSharedPointer<SelfAuthContext>& pContext = QSharedPointer<SelfAuthContext>());
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;
65 [[nodiscard]]
bool event(QEvent* pEvent)
override;
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
void fireCancelWorkflow()
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