16#include <QSharedPointer>
19class test_WorkflowModel;
48 QSharedPointer<WorkflowContext> mContext;
50 bool mRemoteScanWasRunning;
52 void insertCard(ReaderManagerPlugInType pType)
const;
58 void resetWorkflowContext(
const QSharedPointer<WorkflowContext>& pContext = QSharedPointer<WorkflowContext>());
62 [[nodiscard]]
bool isError()
const;
70 [[nodiscard]]
bool hasCard()
const;
99 [[nodiscard]] Q_INVOKABLE QString
getEmailBody(
bool pPercentEncoding =
false,
bool pAddLogNotice =
false)
const;
105 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:48
~WorkflowModel() override=default
QString getStatusCodeImage() const
Definition WorkflowModel.cpp:252
void fireReaderPlugInTypeChanged(bool pExplicitStart=false)
void fireIsCurrentSmartCardAllowedChanged()
bool isCurrentSmartCardAllowed
Definition WorkflowModel.h:37
Q_INVOKABLE void insertSmartCard()
Definition WorkflowModel.cpp:136
bool isError() const
Definition WorkflowModel.cpp:88
Q_INVOKABLE void insertSimulator()
Definition WorkflowModel.cpp:142
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:43
QString getCurrentState() const
Definition WorkflowModel.cpp:76
bool isSmartSupported
Definition WorkflowModel.h:33
Q_INVOKABLE QString getEmailBody(bool pPercentEncoding=false, bool pAddLogNotice=false) const
Definition WorkflowModel.cpp:436
QString getStatusHintActionText() const
Definition WorkflowModel.cpp:325
QString eidTypeMismatchError
Definition WorkflowModel.h:38
Q_INVOKABLE bool shouldSkipResultView() const
Definition WorkflowModel.cpp:403
void fireSupportedPlugInTypesChanged()
Q_INVOKABLE void setInitialPluginType()
Definition WorkflowModel.cpp:379
Q_INVOKABLE bool invokeStatusHintAction()
Definition WorkflowModel.cpp:345
void fireNextWorkflowPendingChanged()
void setReaderPlugInType(ReaderManagerPlugInType pReaderPlugInType)
Definition WorkflowModel.cpp:111
void fireCurrentStateChanged(const QString &pState)
GlobalStatus::Code getStatusCode() const
Definition WorkflowModel.cpp:246
Q_INVOKABLE void startScanExplicitly()
Definition WorkflowModel.cpp:166
QList< ReaderManagerPlugInType > supportedPlugInTypes
Definition WorkflowModel.h:34
QString currentState
Definition WorkflowModel.h:28
void fireShowUiRequest(UiModule pModule)
Q_INVOKABLE void continueWorkflow()
Definition WorkflowModel.cpp:148
void setRemoveCardFeedback(bool pEnabled)
Definition WorkflowModel.cpp:370
Q_INVOKABLE void sendResultMail() const
Definition WorkflowModel.cpp:448
QString statusCodeImage
Definition WorkflowModel.h:42
Q_INVOKABLE QString getEmailHeader() const
Definition WorkflowModel.cpp:425
QString getStatusHintText() const
Definition WorkflowModel.cpp:302
Q_INVOKABLE bool isCancellationByUser() const
Definition WorkflowModel.cpp:415
bool hasNextWorkflowPending
Definition WorkflowModel.h:39
bool isBasicReader
Definition WorkflowModel.h:35
void fireStateEntered(const QString &pState)
void fireEidTypeMismatchErrorChanged()
void fireSelectedReaderChanged()
bool isMaskedError() const
Definition WorkflowModel.cpp:94
virtual QString getResultString() const
Definition WorkflowModel.cpp:82
virtual QList< ReaderManagerPlugInType > getSupportedReaderPlugInTypes() const
Definition WorkflowModel.cpp:223
ReaderManagerPlugInType getReaderPlugInType() const
Definition WorkflowModel.cpp:100
friend class ::test_WorkflowModel
Definition WorkflowModel.h:45
WorkflowModel(QObject *pParent=nullptr)
bool isRemoteReader
Definition WorkflowModel.h:36
QString statusHintText
Definition WorkflowModel.h:40
Q_INVOKABLE void cancelWorkflow()
Definition WorkflowModel.cpp:157
void fireReaderImageChanged()
QString statusHintActionText
Definition WorkflowModel.h:41
bool hasCard
Definition WorkflowModel.h:44
bool getNextWorkflowPending() const
Definition WorkflowModel.cpp:240
void fireWorkflowStarted()
void fireRemoveCardFeedbackChanged()
Implementation of GeneralAuthenticate response APDUs.
Definition CommandApdu.h:16