QNdefMessage
Since: 1.2
#include <QtNfcSubset/QNdefMessage>
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.
Overview
Public Types Index
Only has inherited public types
const value_type * | const_pointer |
const value_type & | const_reference |
const_iterator | ConstIterator |
qptrdiff | difference_type |
iterator | Iterator |
value_type * | pointer |
value_type & | reference |
int | size_type |
T | value_type |
Public Attributes Index
Only has inherited public attributes
QListData::Data * | d![]() |
QListData | p![]() |
Public Functions Index
QNdefMessage () | |
QNdefMessage (const QNdefRecord &record) | |
QNdefMessage (const QNdefMessage &message) | |
QNdefMessage (const QList< QNdefRecord > &records) | |
bool | operator== (const QNdefMessage &other) const |
QByteArray | toByteArray () const |
void | append (const T &t)![]() |
void | append (const QList< T > &t)![]() |
const T & | at (int i) const ![]() |
T & | back ()![]() |
const T & | back () const ![]() |
iterator | begin ()![]() |
const_iterator | begin () const ![]() |
void | clear ()![]() |
const_iterator | constBegin () const ![]() |
const_iterator | constEnd () const ![]() |
QBool | contains (const T &t) const ![]() |
int | count (const T &t) const ![]() |
int | count () const ![]() |
void | detach ()![]() |
void | detachShared ()![]() |
bool | empty () const ![]() |
iterator | end ()![]() |
const_iterator | end () const ![]() |
bool | endsWith (const T &t) const ![]() |
iterator | erase (iterator pos)![]() |
iterator | erase (iterator first, iterator last)![]() |
T & | first ()![]() |
const T & | first () const ![]() |
T & | front ()![]() |
const T & | front () const ![]() |
int | indexOf (const T &t, int from=0) const ![]() |
void | insert (int i, const T &t)![]() |
iterator | insert (iterator before, const T &t)![]() |
bool | isDetached () const ![]() |
bool | isEmpty () const ![]() |
bool | isSharedWith (const QList< T > &other) const ![]() |
T & | last ()![]() |
const T & | last () const ![]() |
int | lastIndexOf (const T &t, int from=-1) const ![]() |
int | length () const ![]() |
QList< T > | mid (int pos, int length=-1) const ![]() |
void | move (int from, int to)![]() |
bool | operator!= (const QList< T > &l) const ![]() |
QList< T > | operator+ (const QList< T > &l) const ![]() |
QList< T > & | operator+= (const QList< T > &l)![]() |
QList< T > & | operator+= (const T &t)![]() |
QList< T > & | operator<< (const T &t)![]() |
QList< T > & | operator<< (const QList< T > &l)![]() |
QList< T > & | operator= (const QList< T > &l)![]() |
bool | operator== (const QList< T > &l) const ![]() |
const T & | operator[] (int i) const ![]() |
T & | operator[] (int i)![]() |
void | pop_back ()![]() |
void | pop_front ()![]() |
void | prepend (const T &t)![]() |
void | push_back (const T &t)![]() |
void | push_front (const T &t)![]() |
QList ()![]() | |
QList (const QList< T > &l)![]() | |
int | removeAll (const T &t)![]() |
void | removeAt (int i)![]() |
void | removeFirst ()![]() |
void | removeLast ()![]() |
bool | removeOne (const T &t)![]() |
void | replace (int i, const T &t)![]() |
void | reserve (int size)![]() |
void | setSharable (bool sharable)![]() |
int | size () const ![]() |
bool | startsWith (const T &t) const ![]() |
void | swap (QList< T > &other)![]() |
void | swap (int i, int j)![]() |
T | takeAt (int i)![]() |
T | takeFirst ()![]() |
T | takeLast ()![]() |
QSet< T > | toSet () const ![]() |
std::list< T > | toStdList () const ![]() |
QVector< T > | toVector () const ![]() |
T | value (int i) const ![]() |
T | value (int i, const T &defaultValue) const ![]() |
Static Public Functions Index
QNdefMessage | fromByteArray (const QByteArray &message) |
QList< T > | fromSet (const QSet< T > &set)![]() |
QList< T > | fromStdList (const std::list< T > &list)![]() |
QList< T > | fromVector (const QVector< T > &vector)![]() |
Public Types
(Only has inherited public types)
typedef const value_type * 
typedef const value_type & 
typedef const_iterator 
typedef qptrdiff 
typedef iterator 
typedef value_type * 
typedef value_type & 
typedef int 
typedef T 
Public Functions
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.
bool
Returns true if this NDEF message is equivalent to other; otherwise returns false.
Parameters | |
---|---|
other |
The NDEF message to compare |
QByteArray
Returns the NDEF message as a byte array.
void 
void 
const T & 
T & 
const T & 
void 
QBool 
int 
int 
void 
bool 
bool 
T & 
const T & 
T & 
const T & 
int 
void 
bool 
bool 
T & 
const T & 
int 
int 
QList< T > 
void 
bool 
QList< T > 
QList< T > & 
QList< T > & 
QList< T > & 
QList< T > & 
QList< T > & 
bool 
const T & 
T & 
void 
void 
void 
void 
void 
int 
void 
void 
void 
bool 
void 
void 
void 
int 
bool 
void 
void 
T 
T 
T 
QSet< T > 
std::list< T > 
QVector< T > 
T 
T 
Static Public Functions
QNdefMessage
Returns an NDEF message parsed from the contents of message.
Parameters | |
---|---|
message |
The message parameter is interpreted as the raw message format defined in the NFC Data Exchange Format technical specification. |
QList< T > 
QList< T > 
QList< T > 
© 2013 Digia Plc and/or its subsidiaries. Documentation contributions included herein are the copyrights of their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Documentation sources may be obtained from www.qt-project.org.
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. Privacy Policy