The QNearFieldShareTarget class transfers data to remote device over NFC. More...
Header: | #include <QNearFieldShareTarget> |
qmake: | QT += nfc |
Since: | Qt 5.3 |
Inherits: | QObject |
virtual | ~QNearFieldShareTarget() |
void | cancel() |
bool | isShareInProgress() const |
bool | share(const QNdefMessage &message) |
bool | share(const QList<QFileInfo> &files) |
QNearFieldShareManager::ShareError | shareError() const |
QNearFieldShareManager::ShareModes | shareModes() const |
void | error(QNearFieldShareManager::ShareError error) |
void | shareFinished() |
The QNearFieldShareTarget class transfers data to remote device over NFC.
The QNearFieldShareTarget class can be used for sharing NDEF message or files to a remote NFC enabled device supporting the same protocol.
See also QNearFieldShareManager.
[virtual]
QNearFieldShareTarget::~QNearFieldShareTarget()Destroys the near field share target.
Cancel the data or file sharing in progress.
[signal]
void QNearFieldShareTarget::error(QNearFieldShareManager::ShareError
error)This signal is emitted whenever an error occurs during transfer.
Returns true if data or file sharing is in progress, otherwise returns false.
Share the NDEF message via the share target. This method starts sharing asynchronously and returns immediately. The method returns true if the request is accepted, otherwise returns false. Sharing is completed when the shareFinished() signal is emitted.
Share the files via the share target. This method starts sharing asynchronously and returns immediately. The method returns true if the request is accepted, otherwise returns false. Sharing is completed when the shareFinished() signal is emitted.
Returns the error code of the error that occurred.
[signal]
void QNearFieldShareTarget::shareFinished()This signal is emitted whenever a data or file transfer has completed successfully.
Returns the share mode supported by the share target.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: