Qt Mobility Reference Documentation

QNearFieldTagType2 Class Reference

The QNearFieldTagType2 class provides an interface for communicating with an NFC Tag Type 2 tag. More...

 #include <QNearFieldTagType2>

Inherits QNearFieldTarget.

Public Functions

QNearFieldTagType2 ( QObject * parent = 0 )
int memorySize ()
virtual QByteArray readBlock ( quint8 blockAddress )
virtual bool selectSector ( quint8 sector )
quint8 version ()
virtual bool writeBlock ( quint8 blockAddress, const QByteArray & data )

Reimplemented Public Functions

virtual Type type () const

Additional Inherited Members

Detailed Description

The QNearFieldTagType2 class provides an interface for communicating with an NFC Tag Type 2 tag.

Member Function Documentation

QNearFieldTagType2::QNearFieldTagType2 ( QObject * parent = 0 )

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

int QNearFieldTagType2::memorySize ()

Returns the memory size in bytes of the tag.

QByteArray QNearFieldTagType2::readBlock ( quint8 blockAddress ) [virtual]

Reads and returns 4 bytes of data from the block specified by blockAddress. An empty byte array is returned if an error occurs.

bool QNearFieldTagType2::selectSector ( quint8 sector ) [virtual]

Selects the sector upon which subsequent readBlock() and writeBlock() operations will act.

Returns true on success; otherwise returns false.

Type QNearFieldTagType2::type () const [virtual]

Reimplemented from QNearFieldTarget::type().

quint8 QNearFieldTagType2::version ()

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

bool QNearFieldTagType2::writeBlock ( quint8 blockAddress, const QByteArray & data ) [virtual]

Writes 4 bytes of data to the block specified by blockAddress.

Returns true on success; otherwise returns false.

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.