bool isEmpty() const noexcept
Returns true if the byte array has size 0; otherwise returns false.
void clear()
Clears the contents of the byte array and makes it null.
unsigned int typeNameFormat
The QNdefRecord class provides an NFC NDEF record.
void setPayload(const QByteArray &payload)
Sets the payload of the NDEF record to payload.
TypeNameFormat typeNameFormat() const
Returns the type name format of the NDEF record.
void setId(const QByteArray &id)
Sets the id of the NDEF record to id.
~QNdefRecord()
Destroys the NDEF record.
QNdefRecord & operator=(const QNdefRecord &other)
Assigns this NDEF record to other.
TypeNameFormat
This enum describes the type name format of an NDEF record.
QByteArray id() const
Returns the id of the NDEF record.
QByteArray type() const
Returns the type of the NDEF record.
QNdefRecord()
Constructs a new empty NDEF record.
bool operator==(const QNdefRecord &other) const
Returns true if other and this NDEF record are the same.
QByteArray payload() const
Returns the payload of the NDEF record.
size_t qHash(const QNdefRecord &key)
\macro Q_DECLARE_NDEF_RECORD(className, typeNameFormat, type, initialPayload)
void setType(const QByteArray &type)
Sets the type of the NDEF record to type.
bool isEmpty() const
Returns true if the NDEF record contains an empty payload; otherwise returns false.
void setTypeNameFormat(TypeNameFormat typeNameFormat)
Sets the type name format of the NDEF record to typeNameFormat.
Combined button and popup list for selecting options.
size_t qHash(const QFileSystemWatcherPathKey &key, size_t seed=0)