IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QNearFieldShareTarget Class

The QNearFieldShareTarget class transfers data to remote device over NFC.

This class was introduced in Qt 5.3.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QNearFieldShareTarget Class

  • Header: QNearFieldShareTarget

  • Since: Qt 5.3

  • qmake: QT += nfc

  • Inherits: QObject

  • Group: QNearFieldShareTarget is part of connectivity-nfc

Detailed Description

The QNearFieldShareTarget class can be used for sharing NDEF message or files to a remote NFC enabled device supporting the same protocol.

See Also

Member Function Documentation

 

[virtual] QNearFieldShareTarget::~QNearFieldShareTarget()

Destroys the near field share target.

void QNearFieldShareTarget::cancel()

Cancel the data or file sharing in progress.

void QNearFieldShareTarget::error(QNearFieldShareManager::ShareError error)

This signal is emitted whenever an error occurs during transfer.

bool QNearFieldShareTarget::isShareInProgress() const

Returns true if data or file sharing is in progress, otherwise returns false.

bool QNearFieldShareTarget::share(const QNdefMessage &message)

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.

bool QNearFieldShareTarget::share(const QList<QFileInfo> &files)

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.

QNearFieldShareManager::ShareError QNearFieldShareTarget::shareError() const

Returns the error code of the error that occurred.

void QNearFieldShareTarget::shareFinished()

This signal is emitted whenever a data or file transfer has completed successfully.

QNearFieldShareManager::ShareModes QNearFieldShareTarget::shareModes() const

Returns the share mode supported by the share target.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+