| 337 | } |
| 338 | |
| 339 | void 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 | |
| 358 | void NetworkReplyModel::replyDeleted(QNetworkReply *reply, QNetworkAccessManager *nam) |
nothing calls this directly
no test coverage detected