17 #include <QSharedPointer> 18 #include <QStringList> 22 Q_FORWARD_DECLARE_OBJC_CLASS(VoiceOverObserver);
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();
bool bluetoothEnabled
Definition: ApplicationModel.h:42
void setBluetoothEnabled(bool pEnabled)
Definition: ApplicationModel.cpp:235
Q_INVOKABLE QString onlineHelpUrl(const QString &pHelpSectionName)
Definition: ApplicationModel.cpp:528
void fireCertificateRemoved(const QString &pDeviceName)
Q_INVOKABLE bool isScreenReaderRunning() const
Definition: ApplicationModel.cpp:417
bool isWifiEnabled() const
Definition: ApplicationModel.cpp:268
bool wifiEnabled
Definition: ApplicationModel.h:48
bool isBluetoothResponding() const
Definition: ApplicationModel.cpp:223
Q_INVOKABLE void openOnlineHelp(const QString &pHelpSectionName)
Definition: ApplicationModel.cpp:534
QString getCurrentWorkflow() const
Definition: ApplicationModel.cpp:292
void fireBluetoothReaderChanged()
bool isNfcEnabled() const
Definition: ApplicationModel.cpp:160
QString currentWorkflow
Definition: ApplicationModel.h:50
void fireCurrentWorkflowChanged()
int getAvailableReader() const
Definition: ApplicationModel.cpp:310
QUrl getReleaseNotesUrl() const
Definition: ApplicationModel.cpp:126
Q_INVOKABLE QString stripHtmlTags(QString pString) const
Definition: ApplicationModel.cpp:566
void setScaleFactor(qreal pScaleFactor)
Definition: ApplicationModel.cpp:280
void setNfcRunning(bool pRunning)
Definition: ApplicationModel.cpp:178
qreal getScaleFactor() const
Definition: ApplicationModel.cpp:274
Q_INVOKABLE void keepScreenOn(bool pActive)
Definition: ApplicationModel.cpp:504
void fireBluetoothEnabledChanged()
qreal scaleFactor
Definition: ApplicationModel.h:47
Q_INVOKABLE void showFeedback(const QString &pMessage, bool pReplaceExisting=false)
Definition: ApplicationModel.cpp:451
QString feedback
Definition: ApplicationModel.h:53
bool nfcAvailable
Definition: ApplicationModel.h:38
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:14
bool isNfcRunning() const
Definition: ApplicationModel.cpp:172
ApplicationModel()
Definition: ApplicationModel.cpp:63
void fireScaleFactorChanged()
void fireReaderPropertiesUpdated()
Definition: WorkflowContext.h:21
void fireNfcEnabledChanged()
int availableReader
Definition: ApplicationModel.h:51
static ApplicationModel & getInstance()
Definition: ApplicationModel.cpp:560
void resetContext(const QSharedPointer< WorkflowContext > &pContext=QSharedPointer< WorkflowContext >())
Definition: ApplicationModel.cpp:96
void fireAvailableReaderChanged()
Settings
Definition: ApplicationModel.h:88
bool isExtendedLengthApdusUnsupported() const
Definition: ApplicationModel.cpp:191
Q_INVOKABLE void enableWifi()
Definition: ApplicationModel.cpp:550
Q_INVOKABLE void onShowNextFeedback()
Definition: ApplicationModel.cpp:439
~ApplicationModel() override=default
void fireFeedbackChanged()
QString getPackageName() const
Definition: ApplicationModel.cpp:114
bool bluetoothAvailable
Definition: ApplicationModel.h:44
Q_INVOKABLE void showSettings(const Settings &pAction)
Definition: ApplicationModel.cpp:337
Q_INVOKABLE void stopNfcScanWithError(const QString &pError) const
Definition: ApplicationModel.cpp:210
void fireBluetoothRespondingChanged()
bool isNfcAvailable() const
Definition: ApplicationModel.cpp:148
bool locationPermissionRequired() const
Definition: ApplicationModel.h:28
Q_INVOKABLE bool isReaderTypeAvailable(ReaderManagerPlugInType pPlugInType) const
Definition: ApplicationModel.cpp:321
bool bluetoothResponding
Definition: ApplicationModel.h:43
bool nfcRunning
Definition: ApplicationModel.h:39
Definition: WifiInfo.h:22
QUrl releaseNotesUrl
Definition: ApplicationModel.h:35
bool nfcEnabled
Definition: ApplicationModel.h:37
QString getFeedback() const
Definition: ApplicationModel.cpp:433
bool isBluetoothAvailable() const
Definition: ApplicationModel.cpp:217
bool isBluetoothEnabled() const
Definition: ApplicationModel.cpp:229
void fireNfcRunningChanged()
bool extendedLengthApdusUnsupported
Definition: ApplicationModel.h:40
void fireWifiEnabledChanged()
QString packageName
Definition: ApplicationModel.h:34