16#include <QSharedPointer>
19class test_WorkflowModel;
49 QSharedPointer<WorkflowContext> mContext;
52 bool mRemoteScanWasRunning;
54 void insertCard(ReaderManagerPlugInType pType)
const;
60 void resetWorkflowContext(
const QSharedPointer<WorkflowContext>& pContext = QSharedPointer<WorkflowContext>());
64 [[nodiscard]]
bool isError()
const;
72 [[nodiscard]]
bool hasCard()
const;
102 [[nodiscard]] Q_INVOKABLE QString
getEmailBody(
bool pPercentEncoding =
false,
bool pAddLogNotice =
false)
const;
108 void onApplicationStateChanged(
bool pIsAppInForeground);
Code
Definition: GlobalStatus.h:28
Definition: WorkflowModel.h:26
void fireWorkflowFinished()
void resetWorkflowContext(const QSharedPointer< WorkflowContext > &pContext=QSharedPointer< WorkflowContext >())
Definition: WorkflowModel.cpp:50
~WorkflowModel() override=default
QString getStatusCodeImage() const
Definition: WorkflowModel.cpp:260
void fireReaderPlugInTypeChanged(bool pExplicitStart=false)
QVector< ReaderManagerPlugInType > supportedPlugInTypes
Definition: WorkflowModel.h:34
void fireIsCurrentSmartCardAllowedChanged()
bool isCurrentSmartCardAllowed
Definition: WorkflowModel.h:37
Q_INVOKABLE void insertSmartCard()
Definition: WorkflowModel.cpp:138
bool isError() const
Definition: WorkflowModel.cpp:90
Q_INVOKABLE void insertSimulator()
Definition: WorkflowModel.cpp:144
bool error
Definition: WorkflowModel.h:30
QString resultString
Definition: WorkflowModel.h:29
bool errorIsMasked
Definition: WorkflowModel.h:31
void fireHasCardChanged()
ReaderManagerPlugInType readerPlugInType
Definition: WorkflowModel.h:32
bool showRemoveCardFeedback
Definition: WorkflowModel.h:44
QString getCurrentState() const
Definition: WorkflowModel.cpp:78
bool isSmartSupported
Definition: WorkflowModel.h:33
Q_INVOKABLE QString getEmailBody(bool pPercentEncoding=false, bool pAddLogNotice=false) const
Definition: WorkflowModel.cpp:444
QString getStatusHintActionText() const
Definition: WorkflowModel.cpp:333
QString eidTypeMismatchError
Definition: WorkflowModel.h:38
Q_INVOKABLE bool shouldSkipResultView() const
Definition: WorkflowModel.cpp:411
void fireSupportedPlugInTypesChanged()
Q_INVOKABLE void setInitialPluginType()
Definition: WorkflowModel.cpp:387
Q_INVOKABLE bool invokeStatusHintAction()
Definition: WorkflowModel.cpp:353
virtual QVector< ReaderManagerPlugInType > getSupportedReaderPlugInTypes() const
Definition: WorkflowModel.cpp:225
void fireNextWorkflowPendingChanged()
void setReaderPlugInType(ReaderManagerPlugInType pReaderPlugInType)
Definition: WorkflowModel.cpp:113
void fireCurrentStateChanged(const QString &pState)
GlobalStatus::Code getStatusCode() const
Definition: WorkflowModel.cpp:248
Q_INVOKABLE void startScanExplicitly()
Definition: WorkflowModel.cpp:168
QString currentState
Definition: WorkflowModel.h:28
void fireShowUiRequest(UiModule pModule)
Q_INVOKABLE void continueWorkflow()
Definition: WorkflowModel.cpp:150
void setRemoveCardFeedback(bool pEnabled)
Definition: WorkflowModel.cpp:378
Q_INVOKABLE void sendResultMail() const
Definition: WorkflowModel.cpp:456
QString statusCodeImage
Definition: WorkflowModel.h:43
Q_INVOKABLE QString getEmailHeader() const
Definition: WorkflowModel.cpp:433
QString getStatusHintText() const
Definition: WorkflowModel.cpp:310
QString readerImage
Definition: WorkflowModel.h:39
Q_INVOKABLE bool isCancellationByUser() const
Definition: WorkflowModel.cpp:423
bool hasNextWorkflowPending
Definition: WorkflowModel.h:40
QString getReaderImage() const
Definition: WorkflowModel.cpp:254
bool isBasicReader
Definition: WorkflowModel.h:35
void fireStateEntered(const QString &pState)
void fireEidTypeMismatchErrorChanged()
void fireSelectedReaderChanged()
bool isMaskedError() const
Definition: WorkflowModel.cpp:96
virtual QString getResultString() const
Definition: WorkflowModel.cpp:84
ReaderManagerPlugInType getReaderPlugInType() const
Definition: WorkflowModel.cpp:102
friend class ::test_WorkflowModel
Definition: WorkflowModel.h:46
void onReaderManagerSignal()
Definition: WorkflowModel.cpp:497
WorkflowModel(QObject *pParent=nullptr)
bool isRemoteReader
Definition: WorkflowModel.h:36
QString statusHintText
Definition: WorkflowModel.h:41
Q_INVOKABLE void cancelWorkflow()
Definition: WorkflowModel.cpp:159
void fireReaderImageChanged()
QString statusHintActionText
Definition: WorkflowModel.h:42
bool hasCard
Definition: WorkflowModel.h:45
bool getNextWorkflowPending() const
Definition: WorkflowModel.cpp:242
void fireWorkflowStarted()
void fireRemoveCardFeedbackChanged()
Implementation of GeneralAuthenticate response APDUs.
Definition: CommandApdu.h:16