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().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.