summaryrefslogtreecommitdiffstats
path: root/src/nfc/qnearfieldmanager.h
diff options
context:
space:
mode:
authorLars Schmertmann <Lars.Schmertmann@governikus.de>2020-08-04 09:54:20 +0200
committerLars Schmertmann <Lars.Schmertmann@governikus.de>2020-08-17 14:43:16 +0200
commit21e29ddb71df3511f0fbeb02eb6b13a653f4f29b (patch)
tree7a037699d4c4e39f85ca35a82007ca6337a530ee /src/nfc/qnearfieldmanager.h
parentd9956f03dfc5768a4810a743f92d0a59ef4f3403 (diff)
Extend the interface of QNearFieldManager for iOS
iOS uses a popup when the target detection is running. To change the text of the popup and notify the developer about a stopped detection this extension is required. See for more details: https://developer.apple.com/documentation/corenfc/nfcreadersessionprotocol Task-number: QTBUG-81824 Change-Id: Id723d11e48dc95fa76ae99c8ee99661df13340a2 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/nfc/qnearfieldmanager.h')
-rw-r--r--src/nfc/qnearfieldmanager.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nfc/qnearfieldmanager.h b/src/nfc/qnearfieldmanager.h
index e7cb6176..6165f92a 100644
--- a/src/nfc/qnearfieldmanager.h
+++ b/src/nfc/qnearfieldmanager.h
@@ -72,10 +72,13 @@ public:
bool isSupported() const;
bool startTargetDetection(QNearFieldTarget::AccessMethod accessMethod);
- void stopTargetDetection();
+ void stopTargetDetection(const QString &errorMessage = QString());
+
+ void setUserInformation(const QString &message);
Q_SIGNALS:
void adapterStateChanged(QNearFieldManager::AdapterState state);
+ void targetDetectionStopped();
void targetDetected(QNearFieldTarget *target);
void targetLost(QNearFieldTarget *target);