7#include <QtCore/QSharedDataPointer>
8#include <QtCore/QByteArray>
9#include <QtNfc/qtnfcglobal.h>
13class QNdefRecordPrivate;
30 QNdefRecord(
const QNdefRecord &other);
31 QNdefRecord &operator=(
const QNdefRecord &other);
33 void setTypeNameFormat(TypeNameFormat typeNameFormat);
34 TypeNameFormat typeNameFormat()
const;
36 void setType(
const QByteArray &type);
37 QByteArray type()
const;
39 void setId(
const QByteArray &id);
40 QByteArray id()
const;
42 void setPayload(
const QByteArray &payload);
43 QByteArray payload()
const;
48 inline bool isRecordType()
const
51 return (typeNameFormat() == dummy.typeNameFormat() && type() == dummy.type());
54 bool operator==(
const QNdefRecord &other)
const;
55 inline bool operator!=(
const QNdefRecord &other)
const {
return !operator==(other); }
60 QNdefRecord(
const QNdefRecord &other, TypeNameFormat typeNameFormat,
const QByteArray &type);
61 QNdefRecord(
const QNdefRecord &other, TypeNameFormat typeNameFormat);
62 QNdefRecord(TypeNameFormat typeNameFormat,
const QByteArray &type);
65 QSharedDataPointer<QNdefRecordPrivate> d;
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_);
80Q_NFC_EXPORT size_t qHash(
const QNdefRecord &key);
The QNdefRecord class provides an NFC NDEF record.
bool isEnabled() const override
void didInvalidateWithError(bool doRestart)
bool isSupported(QNearFieldTarget::AccessMethod accessMethod) const override
bool startTargetDetection(QNearFieldTarget::AccessMethod accessMethod) override
void setUserInformation(const QString &message) override
~QNearFieldManagerPrivateImpl()
void stopTargetDetection(const QString &errorMessage) override
API_AVAILABLE(ios(13.4)) Qt
Q_FORWARD_DECLARE_OBJC_CLASS(QT_MANGLE_NAMESPACE(RunLoopModeTracker))
QT_NAMESPACE_ALIAS_OBJC_CLASS(QIosNfcNdefSessionDelegate)