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
qndefnfcsmartposterrecord_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 - 2012 Research In Motion
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 QNDEFNFCSMARTPOSTERRECORD_P_H
5#define QNDEFNFCSMARTPOSTERRECORD_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "qndefrecord.h"
22
23#include <optional>
24
25QT_BEGIN_NAMESPACE
26
27class QNdefNfcActRecord : public QNdefRecord
28{
29public:
30 Q_DECLARE_NDEF_RECORD(QNdefNfcActRecord, QNdefRecord::NfcRtd, "act", QByteArray(0, char(0)))
31
32 void setAction(QNdefNfcSmartPosterRecord::Action action);
33 QNdefNfcSmartPosterRecord::Action action() const;
34};
35
37{
38public:
39 Q_DECLARE_NDEF_RECORD(QNdefNfcSizeRecord, QNdefRecord::NfcRtd, "s", QByteArray(0, char(0)))
40
41 void setSize(quint32 size);
42 quint32 size() const;
43};
44
46{
47public:
48 Q_DECLARE_NDEF_RECORD(QNdefNfcTypeRecord, QNdefRecord::NfcRtd, "t", QByteArray(0, char(0)))
49
50 void setTypeInfo(const QString &type);
51 QString typeInfo() const;
52};
53
70
72
73Q_DECLARE_ISRECORDTYPE_FOR_NDEF_RECORD(QNdefNfcActRecord, QNdefRecord::NfcRtd, "act")
74Q_DECLARE_ISRECORDTYPE_FOR_NDEF_RECORD(QNdefNfcSizeRecord, QNdefRecord::NfcRtd, "s")
75Q_DECLARE_ISRECORDTYPE_FOR_NDEF_RECORD(QNdefNfcTypeRecord, QNdefRecord::NfcRtd, "t")
76
77#endif // QNDEFNFCSMARTPOSTERRECORD_P_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.
\inmodule QtCore
Definition qurl.h:95
Combined button and popup list for selecting options.
#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