The QNearFieldTagType3 class provides an interface for communicating with an NFC Tag Type 3 tag. More...
#include <QNearFieldTagType3>
Inherits: QNearFieldTarget.
This class was introduced in Qt Mobility 1.2.
QNearFieldTagType3 ( QObject * parent = 0 ) | |
virtual RequestId | check ( const QMap<quint16, QList<quint16> > & serviceBlockList ) |
virtual RequestId | serviceData ( quint16 serviceCode ) |
int | serviceMemorySize ( quint16 serviceCode ) |
QList<quint16> | services () |
quint16 | systemCode () |
virtual RequestId | update ( const QMap<quint16, QList<quint16> > & serviceBlockList, const QByteArray & data ) |
virtual RequestId | writeServiceData ( quint16 serviceCode, const QByteArray & data ) |
virtual Type | type () const |
virtual bool | handleResponse ( const QNearFieldTarget::RequestId & id, const QByteArray & response ) |
The QNearFieldTagType3 class provides an interface for communicating with an NFC Tag Type 3 tag.
Constructs a new tag type 3 near field target with parent.
Sends the check request to the target. Requests the service data blocks specified by serviceBlockList. Returns a request id which can be used to track the completion status of the request.
The serviceBlockList parameter is a map with the key being the service code and the value being a list of block indexes to retrieve.
Once the request completes the response can be retrieved from the requestResponse() function. The response of this request will be a QMap<quint16, QByteArray>, with the key being the service code and the value being the concatenated blocks retrieved for that service.
This is a low level function, to retrieve the entire data contents of a service use serviceData().
See also requestCompleted() and waitForRequestCompleted().
Reimplemented from QNearFieldTarget::handleResponse().
Requests the data contents of the service specified by serviceCode. Returns a request id which can be used to track the completion status of the request.
Once the request completes successfully the service data can be retrieved from the requestResponse() function. The response of this request will be a QByteArray.
See also requestCompleted() and waitForRequestCompleted().
Returns the memory size of the service specified by serviceCode.
Returns a list of available services.
Returns the system code of the target.
Reimplemented from QNearFieldTarget::type().
Sends the update request to the target. Writes data to the services and block indexes sepecified by serviceBlockList. Returns a request id which can be used to track the completion status of the request.
The serviceBlockList parameter is a map with the key being the service code and the value being a list of block indexes to write to.
Once the request completes the response can be retried from the requestResponse() function. The response of this request will be a boolean value, true for success; otherwise false.
This is a low level function, to write the entire data contents of a service use writeServiceData().
See also requestCompleted() and waitForRequestCompleted().
Writes data to the the service specified by serviceCode. 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().