QtMobility Reference Documentation

QNearFieldTagType4 Class Reference

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.

Public Functions

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 )

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 QNearFieldTagType4 class provides an interface for communicating with an NFC Tag Type 4 tag.

Member Function Documentation

QNearFieldTagType4::QNearFieldTagType4 ( QObject * parent = 0 )

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

QNearFieldTagType4::~QNearFieldTagType4 ()

Destroys the tag type 4 near field target.

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

Reimplemented from QNearFieldTarget::handleResponse().

RequestId QNearFieldTagType4::read ( quint16 length = 0, quint16 startOffset = 0 ) [virtual]

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

RequestId QNearFieldTagType4::select ( const QByteArray & name ) [virtual]

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

RequestId QNearFieldTagType4::select ( quint16 fileIdentifier ) [virtual]

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

Type QNearFieldTagType4::type () const [virtual]

Reimplemented from QNearFieldTarget::type().

quint8 QNearFieldTagType4::version ()

Returns the NFC Tag Type 4 specification version number that the tag supports.

RequestId QNearFieldTagType4::write ( const QByteArray & data, quint16 startOffset = 0 ) [virtual]

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

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.