18#include <QSharedPointer>
23Q_FORWARD_DECLARE_OBJC_CLASS(VoiceOverObserver);
49#if !defined(Q_OS_ANDROID) && !defined(Q_OS_IOS)
54 QSharedPointer<WorkflowContext> mContext;
55 constexpr static qreal DEFAULT_SCALE_FACTOR = 0.6;
59 QStringList mFeedback;
60 QTimer mFeedbackTimer;
61 const int mFeedbackDisplayLength;
62 bool mIsAppInForeground;
68 VoiceOverObserver*
const mObserver;
70 const QScopedPointer<Private> mPrivate;
75 void onStatusChanged(
const ReaderManagerPlugInInfo& pInfo);
78 void onApplicationStateChanged(Qt::ApplicationState pState);
79 void onWifiEnabledChanged();
114 void resetContext(
const QSharedPointer<WorkflowContext>& pContext = QSharedPointer<WorkflowContext>());
116 [[nodiscard]] Q_INVOKABLE
int randomInt(
int pLowerBound,
int pUpperBound)
const;
141 Q_INVOKABLE
void showFeedback(
const QString& pMessage,
bool pReplaceExisting =
false);
144#if !defined(Q_OS_ANDROID) && !defined(Q_OS_IOS)
145 [[nodiscard]] Q_INVOKABLE QString
onlineHelpUrl(
const QString& pHelpSectionName);
150 [[nodiscard]] Q_INVOKABLE QString
stripHtmlTags(QString pString)
const;
152 Q_INVOKABLE
void showAppStoreRatingDialog();
Definition: ApplicationModel.h:31
Q_INVOKABLE void showFeedback(const QString &pMessage, bool pReplaceExisting=false)
Definition: ApplicationModel.cpp:307
void fireStoreUrlChanged()
Q_INVOKABLE void openOnlineHelp(const QString &pHelpSectionName)
Definition: ApplicationModel.cpp:415
QString storeUrl
Definition: ApplicationModel.h:35
Q_INVOKABLE QStringList getLicenseText() const
Definition: ApplicationModel.cpp:382
qreal getScaleFactor() const
Definition: ApplicationModel.cpp:192
bool isWifiEnabled() const
Definition: ApplicationModel.cpp:186
Q_INVOKABLE QString stripHtmlTags(QString pString) const
Definition: ApplicationModel.cpp:481
QUrl customConfigPath
Definition: ApplicationModel.h:50
void fireCurrentWorkflowChanged()
Q_INVOKABLE bool isReaderTypeAvailable(ReaderManagerPlugInType pPlugInType) const
Definition: ApplicationModel.cpp:249
Q_INVOKABLE void saveEmbeddedConfig(const QUrl &pFilename)
Definition: ApplicationModel.cpp:430
Q_INVOKABLE int randomInt(int pLowerBound, int pUpperBound) const
Definition: ApplicationModel.cpp:103
Q_INVOKABLE QUrl getCustomConfigPath()
Definition: ApplicationModel.cpp:421
Settings
Definition: ApplicationModel.h:86
QString feedback
Definition: ApplicationModel.h:47
void fireApplicationStateChanged(bool pIsAppInForeground)
void fireWifiEnabledChanged()
qreal scaleFactor
Definition: ApplicationModel.h:41
void fireReaderPropertiesUpdated()
void fireScaleFactorChanged()
QmlNfcState
Definition: ApplicationModel.h:106
QmlNfcState nfcState
Definition: ApplicationModel.h:38
Workflow
Definition: ApplicationModel.h:95
@ WORKFLOW_SELF_AUTHENTICATION
@ WORKFLOW_REMOTE_SERVICE
@ WORKFLOW_AUTHENTICATION
Q_INVOKABLE void keepScreenOn(bool pActive)
Definition: ApplicationModel.cpp:359
bool wifiEnabled
Definition: ApplicationModel.h:42
void resetContext(const QSharedPointer< WorkflowContext > &pContext=QSharedPointer< WorkflowContext >())
Definition: ApplicationModel.cpp:85
QUrl getReleaseNotesUrl() const
Definition: ApplicationModel.cpp:131
QUrl releaseNotesUrl
Definition: ApplicationModel.h:36
Workflow getCurrentWorkflow() const
Definition: ApplicationModel.cpp:210
Q_INVOKABLE void enableWifi()
Definition: ApplicationModel.cpp:473
void fireFeedbackChanged()
void onTranslationChanged()
Definition: ApplicationModel.cpp:467
Q_INVOKABLE QString onlineHelpUrl(const QString &pHelpSectionName)
Definition: ApplicationModel.cpp:409
int availableReader
Definition: ApplicationModel.h:45
Q_INVOKABLE void showSettings(const Settings &pAction)
Definition: ApplicationModel_android.cpp:40
Workflow currentWorkflow
Definition: ApplicationModel.h:44
Q_INVOKABLE void onShowNextFeedback()
Definition: ApplicationModel.cpp:289
int getAvailableReader() const
Definition: ApplicationModel.cpp:238
bool isExtendedLengthApdusUnsupported() const
Definition: ApplicationModel.cpp:168
void fireAvailableReaderChanged()
bool extendedLengthApdusUnsupported
Definition: ApplicationModel.h:39
Q_INVOKABLE void setClipboardText(const QString &pText) const
Definition: ApplicationModel.cpp:301
void setScaleFactor(qreal pScaleFactor)
Definition: ApplicationModel.cpp:198
QmlNfcState getNfcState() const
Definition: ApplicationModel.cpp:139
void fireNfcStateChanged()
QString getStoreUrl() const
Definition: ApplicationModel.cpp:110
Q_INVOKABLE bool isScreenReaderRunning() const
Definition: ApplicationModel.cpp:266
QString getFeedback() const
Definition: ApplicationModel.cpp:283
Definition: WifiInfo.h:22
Implementation of GeneralAuthenticate response APDUs.
Definition: CommandApdu.h:16