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
10QT_FORWARD_DECLARE_CLASS(QUrl)
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
28QT_END_NAMESPACE
29
30Q_DECLARE_ISRECORDTYPE_FOR_NDEF_RECORD(QNdefNfcUriRecord, QNdefRecord::NfcRtd, "U")
31
32#endif // QNDEFNFCURIRECORD_H
33

source code of qtconnectivity/src/nfc/qndefnfcurirecord.h