Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qndefrecord.h File Reference

(664d2a1cf019f76adf433d41b1418e515ffce86c)

#include <QtCore/QSharedDataPointer>
#include <QtCore/QByteArray>
#include <QtNfc/qtnfcglobal.h>
+ Include dependency graph for qndefrecord.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QNdefRecord
 The QNdefRecord class provides an NFC NDEF record. More...
 

Macros

#define Q_DECLARE_NDEF_RECORD(className, typeNameFormat, type, initialPayload)
 
#define Q_DECLARE_ISRECORDTYPE_FOR_NDEF_RECORD(className, typeNameFormat_, type_)
 

Macro Definition Documentation

◆ Q_DECLARE_ISRECORDTYPE_FOR_NDEF_RECORD

#define Q_DECLARE_ISRECORDTYPE_FOR_NDEF_RECORD ( className,
typeNameFormat_,
type_ )
Value:
QT_BEGIN_NAMESPACE \
template<> inline bool QNdefRecord::isRecordType<className>() const\
{ \
return (typeNameFormat() == typeNameFormat_ && type() == type_); \
} \
TypeNameFormat typeNameFormat() const
Returns the type name format of the NDEF record.
QByteArray type() const
Returns the type of the NDEF record.

Definition at line 72 of file qndefrecord.h.

◆ Q_DECLARE_NDEF_RECORD

#define Q_DECLARE_NDEF_RECORD ( className,
typeNameFormat,
type,
initialPayload )
Value:
className() : QNdefRecord(typeNameFormat, type) { setPayload(initialPayload); } \
className(const QNdefRecord &other) : QNdefRecord(other, typeNameFormat, type) { }
The QNdefRecord class provides an NFC NDEF record.
Definition qndefrecord.h:16
GLenum type
const char className[16]
[1]
Definition qwizard.cpp:100
QSharedPointer< T > other(t)
[5]

Definition at line 68 of file qndefrecord.h.

Function Documentation

◆ qHash()

Q_NFC_EXPORT size_t qHash ( const QNdefRecord & key)
related