The QNearFieldTagType2 class provides an interface for communicating with an NFC Tag Type 2 tag. More...
#include <QNearFieldTagType2>
Inherits QNearFieldTarget.
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 ) |
virtual Type | type () const |
The QNearFieldTagType2 class provides an interface for communicating with an NFC Tag Type 2 tag.
Constructs a new tag type 2 near field target with parent.
Returns the memory size in bytes of the tag.
Reads and returns 4 bytes of data from the block specified by blockAddress. An empty byte array is returned if an error occurs.
Selects the sector upon which subsequent readBlock() and writeBlock() operations will act.
Returns true on success; otherwise returns false.
Reimplemented from QNearFieldTarget::type().
Returns the NFC Tag Type 2 specification version number that the tag supports.
Writes 4 bytes of data to the block specified by blockAddress.
Returns true on success; otherwise returns false.