The QNearFieldTagType4 class provides an interface for communicating with an NFC Tag Type 4 tag. More...
#include <QNearFieldTagType4>
Inherits: QNearFieldTarget.
This class was introduced in Qt Mobility 1.2.
QNearFieldTagType4 ( QObject * parent = 0 ) | |
~QNearFieldTagType4 () | |
virtual RequestId | read ( quint16 length = 0, quint16 startOffset = 0 ) |
virtual RequestId | select ( const QByteArray & name ) |
virtual RequestId | select ( quint16 fileIdentifier ) |
quint8 | version () |
virtual RequestId | write ( const QByteArray & data, quint16 startOffset = 0 ) |
virtual Type | type () const |
virtual bool | handleResponse ( const QNearFieldTarget::RequestId & id, const QByteArray & response ) |
The QNearFieldTagType4 class provides an interface for communicating with an NFC Tag Type 4 tag.
Constructs a new tag type 4 near field target with parent.
Destroys the tag type 4 near field target.
Reimplemented from QNearFieldTarget::handleResponse().
Requests that length bytes be read from the currently selected file starting from startOffset. If length is 0 all data or the maximum read size bytes will be read, whichever is smaller. Returns a request id which can be used to track the completion status of the request.
Once the request completes successfully the response can be retrieved from the requestResponse() function. The response of this request will be a QByteArray.
See also requestCompleted() and waitForRequestCompleted().
Requests that the file specified by name be selected. Upon success calls to read() and write() will act on the selected file. Returns a request id which can be used to track the completion status of the request.
Once the request completes the response can be retrieved from the requestResponse() function. The response of this request will be a boolean value, true for success; otherwise false.
See also requestCompleted() and waitForRequestCompleted().
Requests that the file specified by fileIdentifier be selected. Upon success calls to read() and write() will act on the selected file. Returns a request id which can be used to track the completion status of the request.
Once the request completes the response can be retrieved from the requestResponse() function. The response of this request will be a boolean value, true for success; otherwise false.
See also requestCompleted() and waitForRequestCompleted().
Reimplemented from QNearFieldTarget::type().
Returns the NFC Tag Type 4 specification version number that the tag supports.
Writes data to the currently selected file starting at startOffset. Returns a request id which can be used to track the completion status of the request.
Once the request completes the response can be retrieved from the requestResponse() function. The response of this request will be a boolean value, true for success; otherwise false.
See also requestCompleted() and waitForRequestCompleted().