The QNdefMessage class provides an NFC NDEF message. More...
#include <QNdefMessage>
Inherits: QList<QNdefRecord>.
This class was introduced in Qt Mobility 1.2.
QNdefMessage () | |
QNdefMessage ( const QNdefRecord & record ) | |
QNdefMessage ( const QNdefMessage & message ) | |
QNdefMessage ( const QList<QNdefRecord> & records ) | |
QByteArray | toByteArray () const |
bool | operator== ( const QNdefMessage & other ) const |
QNdefMessage | fromByteArray ( const QByteArray & message ) |
The QNdefMessage class provides an NFC NDEF message.
A QNdefMessage is a collection of 0 or more QNdefRecords. QNdefMessage inherits from QList<QNdefRecord> and therefore the standard QList functions can be used to manipulate the NDEF records in the message.
NDEF messages can be parsed from a byte array conforming to the NFC Data Exchange Format technical specification by using the fromByteArray() static function. Conversely QNdefMessages can be converted into a byte array with the toByteArray() function.
Constructs a new empty NDEF message.
Constructs a new NDEF message containing a single record record.
Constructs a new NDEF message that is a copy of message.
Constructs a new NDEF message that contains all of the records in records.
Returns an NDEF message parsed from the contents of message.
The message parameter is interpreted as the raw message format defined in the NFC Data Exchange Format technical specification.
If a parse error occurs an empty NDEF message is returned.
Returns the NDEF message as a byte array.
The return value of this function conforms to the format defined in the NFC Data Exchange Format technical specification.
Returns true if this NDEF message is equivalent to other; otherwise returns false.
An empty message (i.e. isEmpty() returns true) is equivalent to a NDEF message containing a single record of type QNdefRecord::Empty.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.