17#include <QSharedPointer>
22Q_FORWARD_DECLARE_OBJC_CLASS(VoiceOverObserver);
48#if !defined(Q_OS_ANDROID) && !defined(Q_OS_IOS)
53 QSharedPointer<WorkflowContext> mContext;
54 constexpr static qreal DEFAULT_SCALE_FACTOR = 0.6;
58 QStringList mFeedback;
59 QTimer mFeedbackTimer;
60 const int mFeedbackDisplayLength;
61 bool mIsAppInForeground;
67 VoiceOverObserver*
const mObserver;
69 const QScopedPointer<Private> mPrivate;
74 void onStatusChanged(
const ReaderManagerPlugInInfo& pInfo);
75 ReaderManagerPlugInInfo getFirstPlugInInfo(ReaderManagerPlugInType pType)
const;
78 void onApplicationStateChanged(Qt::ApplicationState pState);
79 void onWifiEnabledChanged();
113 void resetContext(
const QSharedPointer<WorkflowContext>& pContext = QSharedPointer<WorkflowContext>());
115 Q_INVOKABLE
int randomInt(
int pLowerBound,
int pUpperBound)
const;
140 Q_INVOKABLE
void showFeedback(
const QString& pMessage,
bool pReplaceExisting =
false);
143#if !defined(Q_OS_ANDROID) && !defined(Q_OS_IOS)
144 Q_INVOKABLE QString
onlineHelpUrl(
const QString& pHelpSectionName);
151 Q_INVOKABLE
void showAppStoreRatingDialog();
Definition: ApplicationModel.h:30
Q_INVOKABLE void showFeedback(const QString &pMessage, bool pReplaceExisting=false)
Definition: ApplicationModel.cpp:319
void fireStoreUrlChanged()
Q_INVOKABLE void openOnlineHelp(const QString &pHelpSectionName)
Definition: ApplicationModel.cpp:427
QString storeUrl
Definition: ApplicationModel.h:34
Q_INVOKABLE QStringList getLicenseText() const
Definition: ApplicationModel.cpp:394
qreal getScaleFactor() const
Definition: ApplicationModel.cpp:208
bool isWifiEnabled() const
Definition: ApplicationModel.cpp:202
Q_INVOKABLE QString stripHtmlTags(QString pString) const
Definition: ApplicationModel.cpp:493
QUrl customConfigPath
Definition: ApplicationModel.h:49
void fireCurrentWorkflowChanged()
Q_INVOKABLE bool isReaderTypeAvailable(ReaderManagerPlugInType pPlugInType) const
Definition: ApplicationModel.cpp:261
Q_INVOKABLE void saveEmbeddedConfig(const QUrl &pFilename)
Definition: ApplicationModel.cpp:442
Q_INVOKABLE int randomInt(int pLowerBound, int pUpperBound) const
Definition: ApplicationModel.cpp:105
Q_INVOKABLE QUrl getCustomConfigPath()
Definition: ApplicationModel.cpp:433
Settings
Definition: ApplicationModel.h:86
QString feedback
Definition: ApplicationModel.h:46
void fireApplicationStateChanged(bool pIsAppInForeground)
void fireWifiEnabledChanged()
qreal scaleFactor
Definition: ApplicationModel.h:40
void fireReaderPropertiesUpdated()
void fireScaleFactorChanged()
QmlNfcState
Definition: ApplicationModel.h:105
QmlNfcState nfcState
Definition: ApplicationModel.h:37
Workflow
Definition: ApplicationModel.h:95
@ WORKFLOW_SELF_AUTHENTICATION
@ WORKFLOW_AUTHENTICATION
Q_INVOKABLE void keepScreenOn(bool pActive)
Definition: ApplicationModel.cpp:371
bool wifiEnabled
Definition: ApplicationModel.h:41
void resetContext(const QSharedPointer< WorkflowContext > &pContext=QSharedPointer< WorkflowContext >())
Definition: ApplicationModel.cpp:87
QUrl getReleaseNotesUrl() const
Definition: ApplicationModel.cpp:133
QUrl releaseNotesUrl
Definition: ApplicationModel.h:35
Workflow getCurrentWorkflow() const
Definition: ApplicationModel.cpp:226
Q_INVOKABLE void enableWifi()
Definition: ApplicationModel.cpp:485
void fireFeedbackChanged()
void onTranslationChanged()
Definition: ApplicationModel.cpp:479
Q_INVOKABLE QString onlineHelpUrl(const QString &pHelpSectionName)
Definition: ApplicationModel.cpp:421
int availableReader
Definition: ApplicationModel.h:44
Q_INVOKABLE void showSettings(const Settings &pAction)
Definition: ApplicationModel_android.cpp:40
Workflow currentWorkflow
Definition: ApplicationModel.h:43
Q_INVOKABLE void onShowNextFeedback()
Definition: ApplicationModel.cpp:301
int getAvailableReader() const
Definition: ApplicationModel.cpp:250
bool isExtendedLengthApdusUnsupported() const
Definition: ApplicationModel.cpp:184
void fireAvailableReaderChanged()
bool extendedLengthApdusUnsupported
Definition: ApplicationModel.h:38
Q_INVOKABLE void setClipboardText(const QString &pText) const
Definition: ApplicationModel.cpp:313
void setScaleFactor(qreal pScaleFactor)
Definition: ApplicationModel.cpp:214
QmlNfcState getNfcState() const
Definition: ApplicationModel.cpp:155
void fireNfcStateChanged()
QString getStoreUrl() const
Definition: ApplicationModel.cpp:112
Q_INVOKABLE bool isScreenReaderRunning() const
Definition: ApplicationModel.cpp:278
QString getFeedback() const
Definition: ApplicationModel.cpp:295
Definition: WifiInfo.h:20
A simple template renderer.
Definition: ActivationContext.h:15