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 | |
10 | QT_FORWARD_DECLARE_CLASS(QUrl) |
11 | |
12 | QT_BEGIN_NAMESPACE |
13 | |
14 | class Q_NFC_EXPORT QNdefNfcUriRecord : public QNdefRecord |
15 | { |
16 | public: |
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 | |
28 | QT_END_NAMESPACE |
29 | |
30 | Q_DECLARE_ISRECORDTYPE_FOR_NDEF_RECORD(QNdefNfcUriRecord, QNdefRecord::NfcRtd, "U") |
31 | |
32 | #endif // QNDEFNFCURIRECORD_H |
33 |