7#include <QtCore/QSharedDataPointer>
8#include <QtCore/QByteArray>
9#include <QtNfc/qtnfcglobal.h>
33 void setTypeNameFormat(TypeNameFormat typeNameFormat);
34 TypeNameFormat typeNameFormat()
const;
51 return (typeNameFormat() == dummy.typeNameFormat() &&
type() == dummy.type());
68#define Q_DECLARE_NDEF_RECORD(className, typeNameFormat, type, initialPayload) \
69 className() : QNdefRecord(typeNameFormat, type) { setPayload(initialPayload); } \
70 className(const QNdefRecord &other) : QNdefRecord(other, typeNameFormat, type) { }
72#define Q_DECLARE_ISRECORDTYPE_FOR_NDEF_RECORD(className, typeNameFormat_, type_) \
74 template<> inline bool QNdefRecord::isRecordType<className>() const\
76 return (typeNameFormat() == typeNameFormat_ && type() == type_); \
The QNdefRecord class provides an NFC NDEF record.
bool isRecordType() const
Returns true if the NDEF record is of the specified record type; otherwise returns false.
bool operator!=(const QNdefRecord &other) const
Returns true if this NDEF record does not equal other; otherwise return false.
TypeNameFormat
This enum describes the type name format of an NDEF record.
Combined button and popup list for selecting options.
Q_NFC_EXPORT size_t qHash(const QNdefRecord &key)
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
proxy setType(QNetworkProxy::Socks5Proxy)