Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qndefnfcurirecord.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QNDEFNFCURIRECORD_H
5#define QNDEFNFCURIRECORD_H
6
7#include <QtNfc/qtnfcglobal.h>
8#include <QtNfc/QNdefRecord>
9
11
12QT_BEGIN_NAMESPACE
13
14class Q_NFC_EXPORT QNdefNfcUriRecord : public QNdefRecord
15{
16public:
17#ifndef Q_QDOC
18 Q_DECLARE_NDEF_RECORD(QNdefNfcUriRecord, QNdefRecord::NfcRtd, "U", QByteArray(0, char(0)))
19#else
20 QNdefNfcUriRecord();
21 QNdefNfcUriRecord(const QNdefRecord& other);
22#endif
23
24 QUrl uri() const;
25 void setUri(const QUrl &uri);
26};
27
29
30Q_DECLARE_ISRECORDTYPE_FOR_NDEF_RECORD(QNdefNfcUriRecord, QNdefRecord::NfcRtd, "U")
31
32#endif // QNDEFNFCURIRECORD_H
The QNdefNfcIconRecord class provides an NFC MIME record to hold an icon.
std::optional< QNdefNfcTypeRecord > m_type
std::optional< QNdefNfcActRecord > m_action
std::optional< QNdefNfcSizeRecord > m_size
std::optional< QNdefNfcUriRecord > m_uri
The QNdefNfcSmartPosterRecord class provides an NFC RTD-SmartPoster.
The QNdefNfcTextRecord class provides an NFC RTD-Text.
\inmodule QtCore
Definition qurl.h:95
Combined button and popup list for selecting options.
QT_FORWARD_DECLARE_CLASS(QCocoaMenuItem)
#define Q_DECLARE_ISRECORDTYPE_FOR_MIME_NDEF_RECORD(className)
#define Q_DECLARE_MIME_NDEF_RECORD(className, initialPayload)
#define Q_DECLARE_ISRECORDTYPE_FOR_NDEF_RECORD(className, typeNameFormat_, type_)
Definition qndefrecord.h:72
#define Q_DECLARE_NDEF_RECORD(className, typeNameFormat, type, initialPayload)
Definition qndefrecord.h:68