MCPcopy Create free account
hub / github.com/KDAB/GammaRay / replySslErrors

Method replySslErrors

plugins/network/networkreplymodel.cpp:339–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339void NetworkReplyModel::replySslErrors(QNetworkReply *reply, const QList<QSslError> &errors, QNetworkAccessManager *nam)
340{
341 /// WARNING this runs in the thread of the reply, not the thread of this!
342 ReplyNode node;
343 node.reply = reply;
344 node.displayName = Util::displayString(reply);
345 node.url = reply->url();
346 node.op = reply->operation();
347 node.state |= NetworkReply::Error | NetworkReply::Unencrypted;
348 for (const auto &err : errors) {
349 node.errorMsgs.push_back(err.errorString());
350 }
351
352 // clang-format off
353 QMetaObject::invokeMethod(this, "updateReplyNode", Qt::AutoConnection, Q_ARG(QNetworkAccessManager*, nam), Q_ARG(GammaRay::NetworkReplyModel::ReplyNode, node));
354 // clang-format on
355}
356#endif
357
358void NetworkReplyModel::replyDeleted(QNetworkReply *reply, QNetworkAccessManager *nam)

Callers

nothing calls this directly

Calls 3

displayStringFunction · 0.85
urlMethod · 0.45
errorStringMethod · 0.45

Tested by

no test coverage detected