17 #include <QSharedPointer>
18 #include <QStringList>
22 Q_FORWARD_DECLARE_OBJC_CLASS(VoiceOverObserver);
55 QSharedPointer<WorkflowContext> mContext;
57 void onStatusChanged(
const ReaderManagerPlugInInfo& pInfo);
58 ReaderManagerPlugInInfo getFirstPlugInInfo(ReaderManagerPlugInType pType)
const;
61 constexpr
static qreal DEFAULT_SCALE_FACTOR = 0.6;
65 bool mBluetoothResponding;
66 QStringList mFeedback;
67 QTimer mFeedbackTimer;
68 const int mFeedbackDisplayLength;
74 VoiceOverObserver*
const mObserver;
76 const QScopedPointer<Private> mPrivate;
80 void onWifiEnabledChanged();
97 void resetContext(
const QSharedPointer<WorkflowContext>& pContext = QSharedPointer<WorkflowContext>());
133 Q_INVOKABLE
void showFeedback(
const QString& pMessage,
bool pReplaceExisting =
false);
135 #if !defined(Q_OS_ANDROID) && !defined(Q_OS_IOS)
136 Q_INVOKABLE QString
onlineHelpUrl(
const QString& pHelpSectionName);
141 Q_INVOKABLE
void showAppStoreRatingDialog();
Definition: ApplicationModel.h:30
void fireBluetoothReaderChanged()
QString currentWorkflow
Definition: ApplicationModel.h:50
Q_INVOKABLE void showFeedback(const QString &pMessage, bool pReplaceExisting=false)
Definition: ApplicationModel.cpp:455
Q_INVOKABLE void openOnlineHelp(const QString &pHelpSectionName)
Definition: ApplicationModel.cpp:538
bool bluetoothEnabled
Definition: ApplicationModel.h:42
bool isBluetoothEnabled() const
Definition: ApplicationModel.cpp:233
~ApplicationModel() override=default
qreal getScaleFactor() const
Definition: ApplicationModel.cpp:278
bool isWifiEnabled() const
Definition: ApplicationModel.cpp:272
bool bluetoothResponding
Definition: ApplicationModel.h:43
Q_INVOKABLE QString stripHtmlTags(QString pString) const
Definition: ApplicationModel.cpp:570
QString getPackageName() const
Definition: ApplicationModel.cpp:114
bool isNfcAvailable() const
Definition: ApplicationModel.cpp:148
void fireCurrentWorkflowChanged()
Q_INVOKABLE bool isReaderTypeAvailable(ReaderManagerPlugInType pPlugInType) const
Definition: ApplicationModel.cpp:325
ApplicationModel()
Definition: ApplicationModel.cpp:63
bool locationPermissionRequired
Definition: ApplicationModel.h:45
void fireNfcRunningChanged()
bool isBluetoothResponding() const
Definition: ApplicationModel.cpp:227
void fireBluetoothRespondingChanged()
bool isBluetoothAvailable() const
Definition: ApplicationModel.cpp:221
Settings
Definition: ApplicationModel.h:89
QString feedback
Definition: ApplicationModel.h:53
void setNfcRunning(bool pRunning)
Definition: ApplicationModel.cpp:178
void fireWifiEnabledChanged()
qreal scaleFactor
Definition: ApplicationModel.h:47
QString packageName
Definition: ApplicationModel.h:34
void fireReaderPropertiesUpdated()
bool nfcEnabled
Definition: ApplicationModel.h:37
bool nfcRunning
Definition: ApplicationModel.h:39
void fireScaleFactorChanged()
static ApplicationModel & getInstance()
Definition: ApplicationModel.cpp:564
bool bluetoothAvailable
Definition: ApplicationModel.h:44
Q_INVOKABLE void keepScreenOn(bool pActive)
Definition: ApplicationModel.cpp:508
bool wifiEnabled
Definition: ApplicationModel.h:48
void fireBluetoothEnabledChanged()
void resetContext(const QSharedPointer< WorkflowContext > &pContext=QSharedPointer< WorkflowContext >())
Definition: ApplicationModel.cpp:96
QUrl getReleaseNotesUrl() const
Definition: ApplicationModel.cpp:126
bool nfcAvailable
Definition: ApplicationModel.h:38
bool isNfcEnabled() const
Definition: ApplicationModel.cpp:160
QUrl releaseNotesUrl
Definition: ApplicationModel.h:35
Q_INVOKABLE void enableWifi()
Definition: ApplicationModel.cpp:554
void fireFeedbackChanged()
bool isNfcRunning() const
Definition: ApplicationModel.cpp:172
Q_INVOKABLE void stopNfcScanWithError(const QString &pError) const
Definition: ApplicationModel.cpp:214
Q_INVOKABLE QString onlineHelpUrl(const QString &pHelpSectionName)
Definition: ApplicationModel.cpp:532
int availableReader
Definition: ApplicationModel.h:51
void fireNfcEnabledChanged()
Q_INVOKABLE void showSettings(const Settings &pAction)
Definition: ApplicationModel.cpp:341
Q_INVOKABLE void onShowNextFeedback()
Definition: ApplicationModel.cpp:443
int getAvailableReader() const
Definition: ApplicationModel.cpp:314
bool isExtendedLengthApdusUnsupported() const
Definition: ApplicationModel.cpp:195
void fireAvailableReaderChanged()
bool extendedLengthApdusUnsupported
Definition: ApplicationModel.h:40
void setScaleFactor(qreal pScaleFactor)
Definition: ApplicationModel.cpp:284
void setBluetoothEnabled(bool pEnabled)
Definition: ApplicationModel.cpp:239
void fireCertificateRemoved(const QString &pDeviceName)
Q_INVOKABLE bool isScreenReaderRunning() const
Definition: ApplicationModel.cpp:421
QString getCurrentWorkflow() const
Definition: ApplicationModel.cpp:296
QString getFeedback() const
Definition: ApplicationModel.cpp:437
Definition: WifiInfo.h:24
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15