7#ifndef QT_NO_DEBUG_STREAM
8#include <QtCore/qdebug.h>
10#include <QtCore/qhashfunctions.h>
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
118
119
120
121
122
123
125QSslKeyingMaterial::QSslKeyingMaterial()
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
155QSslKeyingMaterial::QSslKeyingMaterial(
const QByteArray &label, qsizetype size)
157 m_requestedSize(size)
161QSslKeyingMaterial::QSslKeyingMaterial(
const QByteArray &label, qsizetype size,
const QByteArray &context)
164 m_requestedSize(size)
168QSslKeyingMaterial::QSslKeyingMaterial(
const QSslKeyingMaterial &other)
171QSslKeyingMaterial &QSslKeyingMaterial::operator=(
const QSslKeyingMaterial &other)
174QSslKeyingMaterial::~QSslKeyingMaterial()
178
179
180
181
182
183
184
185
187bool QSslKeyingMaterial::isValid()
const noexcept
189 return !m_label.isEmpty() && requestedSize() > 0;
193
194
195
196
197
198
199
200
201
204
205
206
207
208
209
210
211
212
213
214
215
216
219
220
221
222
223
224
225
226
227
228QSslKeyingMaterial QSslKeyingMaterial::clone()
const
230 return QSslKeyingMaterial(m_label, m_requestedSize, m_context);
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
255
256
257
258
259
260
261
262
263
264
267
268
269
272
273
274
275
276size_t qHash(
const QSslKeyingMaterial &material, size_t seed)
noexcept
278 return qHashMulti(seed, material.m_label, material.m_context, material.m_value,
279 material.m_requestedSize);
283bool comparesEqual(
const QSslKeyingMaterial &lhs,
const QSslKeyingMaterial &rhs)
noexcept
285 return lhs.m_requestedSize == rhs.m_requestedSize
286 && lhs.m_label == rhs.m_label
287 && lhs.m_context.isNull() == rhs.m_context.isNull()
288 && lhs.m_context == rhs.m_context
289 && lhs.m_value == rhs.m_value;
292#ifndef QT_NO_DEBUG_STREAM
294
295
296
297
298
299
300
301QDebug operator<<(QDebug debug,
const QSslKeyingMaterial &keying)
303 QDebugStateSaver saver(debug);
304 debug.resetFormat().nospace();
305 debug <<
"QSslKeyingMaterial("
306 << keying.label() <<
',' << keying.context()
307 <<
", requested size: " << keying.requestedSize()
308 <<
", actual size: " << keying.value().size() <<
')';
bool comparesEqual(const QFileInfo &lhs, const QFileInfo &rhs)
constexpr size_t qHash(const QSize &s, size_t seed=0) noexcept