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
66
67
68
69
70
71
73QSslKeyingMaterial::QSslKeyingMaterial()
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
103QSslKeyingMaterial::QSslKeyingMaterial(
const QByteArray &label, qsizetype size)
105 m_requestedSize(size)
109QSslKeyingMaterial::QSslKeyingMaterial(
const QByteArray &label, qsizetype size,
const QByteArray &context)
112 m_requestedSize(size)
116QSslKeyingMaterial::QSslKeyingMaterial(
const QSslKeyingMaterial &other)
119QSslKeyingMaterial &QSslKeyingMaterial::operator=(
const QSslKeyingMaterial &other)
122QSslKeyingMaterial::~QSslKeyingMaterial()
126
127
128
129
130
131
132
133
135bool QSslKeyingMaterial::isValid()
const noexcept
137 return !m_label.isEmpty() && requestedSize() > 0;
141
142
143
144
145
146
147
148
149
152
153
154
155
156
157
158
159
160
161
162
163
164
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
185
186
187
188
189
190
191
192
193
194
197
198
199
202
203
204
205
206size_t qHash(
const QSslKeyingMaterial &material, size_t seed)
noexcept
208 return qHashMulti(seed, material.m_label, material.m_context, material.m_value,
209 material.m_requestedSize);
213bool comparesEqual(
const QSslKeyingMaterial &lhs,
const QSslKeyingMaterial &rhs)
noexcept
215 return lhs.m_requestedSize == rhs.m_requestedSize
216 && lhs.m_label == rhs.m_label
217 && lhs.m_context == rhs.m_context
218 && lhs.m_value == rhs.m_value;
221#ifndef QT_NO_DEBUG_STREAM
223
224
225
226
227
228
229
230QDebug operator<<(QDebug debug,
const QSslKeyingMaterial &keying)
232 QDebugStateSaver saver(debug);
233 debug.resetFormat().nospace();
234 debug <<
"QSslKeyingMaterial("
235 << keying.label() <<
',' << keying.context()
236 <<
", requested size: " << keying.requestedSize()
237 <<
", 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