Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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"
19
#
include
"qndefnfcsmartposterrecord.h"
20
#
include
"qndefnfctextrecord.h"
21
#
include
"qndefnfcurirecord.h"
22
23
#
include
<
optional
>
24
25
QT_BEGIN_NAMESPACE
26
27
class
QNdefNfcActRecord :
public
QNdefRecord
28
{
29
public
:
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
36
class
QNdefNfcSizeRecord
:
public
QNdefRecord
37
{
38
public
:
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
45
class
QNdefNfcTypeRecord
:
public
QNdefRecord
46
{
47
public
:
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
54
class
QNdefNfcSmartPosterRecordPrivate
:
public
QSharedData
55
{
56
public
:
57
QNdefNfcSmartPosterRecordPrivate
() {}
58
~
QNdefNfcSmartPosterRecordPrivate
();
59
60
void
cleanup
();
61
62
public
:
63
QList
<
QNdefNfcTextRecord
>
m_titleList
;
64
std
::
optional
<
QNdefNfcUriRecord
>
m_uri
;
65
std
::optional<QNdefNfcActRecord>
m_action
;
66
QList
<
QNdefNfcIconRecord
>
m_iconList
;
67
std
::optional<
QNdefNfcSizeRecord
>
m_size
;
68
std
::optional<
QNdefNfcTypeRecord
>
m_type
;
69
};
70
71
QT_END_NAMESPACE
72
73
Q_DECLARE_ISRECORDTYPE_FOR_NDEF_RECORD
(QNdefNfcActRecord, QNdefRecord::NfcRtd,
"act"
)
74
Q_DECLARE_ISRECORDTYPE_FOR_NDEF_RECORD
(QNdefNfcSizeRecord, QNdefRecord::NfcRtd,
"s"
)
75
Q_DECLARE_ISRECORDTYPE_FOR_NDEF_RECORD
(QNdefNfcTypeRecord, QNdefRecord::NfcRtd,
"t"
)
76
77
#
endif
// QNDEFNFCSMARTPOSTERRECORD_P_H
QNdefNfcIconRecord
The QNdefNfcIconRecord class provides an NFC MIME record to hold an icon.
Definition
qndefnfcsmartposterrecord.h:33
QNdefNfcSizeRecord
Definition
qndefnfcsmartposterrecord_p.h:37
QNdefNfcSizeRecord::size
quint32 size() const
Definition
qndefnfcsmartposterrecord.cpp:766
QNdefNfcSmartPosterRecordPrivate
Definition
qndefnfcsmartposterrecord_p.h:55
QNdefNfcSmartPosterRecordPrivate::m_type
std::optional< QNdefNfcTypeRecord > m_type
Definition
qndefnfcsmartposterrecord_p.h:68
QNdefNfcSmartPosterRecordPrivate::cleanup
void cleanup()
Definition
qndefnfcsmartposterrecord.cpp:66
QNdefNfcSmartPosterRecordPrivate::m_action
std::optional< QNdefNfcActRecord > m_action
Definition
qndefnfcsmartposterrecord_p.h:65
QNdefNfcSmartPosterRecordPrivate::m_size
std::optional< QNdefNfcSizeRecord > m_size
Definition
qndefnfcsmartposterrecord_p.h:67
QNdefNfcSmartPosterRecordPrivate::m_titleList
QList< QNdefNfcTextRecord > m_titleList
Definition
qndefnfcsmartposterrecord_p.h:63
QNdefNfcSmartPosterRecordPrivate::m_iconList
QList< QNdefNfcIconRecord > m_iconList
Definition
qndefnfcsmartposterrecord_p.h:66
QNdefNfcSmartPosterRecordPrivate::QNdefNfcSmartPosterRecordPrivate
QNdefNfcSmartPosterRecordPrivate()
Definition
qndefnfcsmartposterrecord_p.h:57
QNdefNfcSmartPosterRecordPrivate::m_uri
std::optional< QNdefNfcUriRecord > m_uri
Definition
qndefnfcsmartposterrecord_p.h:64
QNdefNfcSmartPosterRecordPrivate::~QNdefNfcSmartPosterRecordPrivate
~QNdefNfcSmartPosterRecordPrivate()
Definition
qndefnfcsmartposterrecord.cpp:62
QNdefNfcSmartPosterRecord
The QNdefNfcSmartPosterRecord class provides an NFC RTD-SmartPoster.
Definition
qndefnfcsmartposterrecord.h:42
QNdefNfcTypeRecord
Definition
qndefnfcsmartposterrecord_p.h:46
QNdefNfcTypeRecord::typeInfo
QString typeInfo() const
Definition
qndefnfcsmartposterrecord.cpp:782
QUrl
\inmodule QtCore
Definition
qurl.h:95
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
Q_DECLARE_ISRECORDTYPE_FOR_MIME_NDEF_RECORD
#define Q_DECLARE_ISRECORDTYPE_FOR_MIME_NDEF_RECORD(className)
Definition
qndefnfcsmartposterrecord.h:20
Q_DECLARE_MIME_NDEF_RECORD
#define Q_DECLARE_MIME_NDEF_RECORD(className, initialPayload)
Definition
qndefnfcsmartposterrecord.h:28
Q_DECLARE_ISRECORDTYPE_FOR_NDEF_RECORD
#define Q_DECLARE_ISRECORDTYPE_FOR_NDEF_RECORD(className, typeNameFormat_, type_)
Definition
qndefrecord.h:72
Q_DECLARE_NDEF_RECORD
#define Q_DECLARE_NDEF_RECORD(className, typeNameFormat, type, initialPayload)
Definition
qndefrecord.h:68
qtconnectivity
src
nfc
qndefnfcsmartposterrecord_p.h
Generated on
for Qt by
1.18.0