QtMobility Reference Documentation

QNearFieldTagType3 Class Reference

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.

Public Functions

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 )

Reimplemented Public Functions

virtual Type type () const

Reimplemented Protected Functions

virtual bool handleResponse ( const QNearFieldTarget::RequestId & id, const QByteArray & response )

Additional Inherited Members

Detailed Description

The QNearFieldTagType3 class provides an interface for communicating with an NFC Tag Type 3 tag.

Member Function Documentation

QNearFieldTagType3::QNearFieldTagType3 ( QObject * parent = 0 )

Constructs a new tag type 3 near field target with parent.

RequestId QNearFieldTagType3::check ( const QMap<quint16, QList<quint16> > & serviceBlockList ) [virtual]

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().

bool QNearFieldTagType3::handleResponse ( const QNearFieldTarget::RequestId & id, const QByteArray & response ) [virtual protected]

Reimplemented from QNearFieldTarget::handleResponse().

RequestId QNearFieldTagType3::serviceData ( quint16 serviceCode ) [virtual]

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().

int QNearFieldTagType3::serviceMemorySize ( quint16 serviceCode )

Returns the memory size of the service specified by serviceCode.

QList<quint16> QNearFieldTagType3::services ()

Returns a list of available services.

quint16 QNearFieldTagType3::systemCode ()

Returns the system code of the target.

Type QNearFieldTagType3::type () const [virtual]

Reimplemented from QNearFieldTarget::type().

RequestId QNearFieldTagType3::update ( const QMap<quint16, QList<quint16> > & serviceBlockList, const QByteArray & data ) [virtual]

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().

RequestId QNearFieldTagType3::writeServiceData ( quint16 serviceCode, const QByteArray & data ) [virtual]

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().

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.