6#ifndef QT_NO_DEBUG_STREAM
12static_assert(QT6_ONLY(!)std::is_trivially_copyable_v<QBluetoothAddress>,
13 "Must stay this way until Qt 7 because of BC reasons.");
15QT_IMPL_METATYPE_EXTERN(QBluetoothAddress)
19
20
21
22
23
24
25
29 qRegisterMetaType<QBluetoothAddress>();
31Q_CONSTRUCTOR_FUNCTION(registerQBluetoothAddress)
34
35
36
37
40
41
42
43
46
47
48
49
50
51QBluetoothAddress::QBluetoothAddress(
const QString &address)
56 a.remove(QLatin1Char(
':'));
60 m_address = a.toULongLong(&ok, 16);
69
70
71
72
73
74
77
78
79
80
83
84
85
86
89
90
91
92
95
96
97QString QBluetoothAddress::toString()
const
99 QString s(QStringLiteral(
"%1:%2:%3:%4:%5:%6"));
101 for (
int i = 5; i >= 0; --i) {
102 const quint8 a = (m_address >> (i*8)) & 0xff;
103 s = s.arg(a, 2, 16, QLatin1Char(
'0'));
110
111
112
113
114
117
118
119
120
121
124
125
126
127
128
130#ifndef QT_NO_DEBUG_STREAM
131QDebug QBluetoothAddress::streamingOperator(QDebug debug,
const QBluetoothAddress &address)
133 debug << address.toString();
void registerQBluetoothAddress()