MCPcopy Create free account
hub / github.com/comaps/comaps / OnDownloadFinished

Method OnDownloadFinished

libs/platform/http_thread_qt.cpp:128–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void HttpThread::OnDownloadFinished()
129{
130 if (m_reply->error() != QNetworkReply::NetworkError::NoError)
131 {
132 auto const httpStatusCode = m_reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
133 LOG(LWARNING, ("Download has finished with code:", httpStatusCode, "error:", m_reply->errorString().toStdString()));
134 m_callback.OnFinish(httpStatusCode, m_begRange, m_endRange);
135 }
136 else
137 {
138 m_callback.OnFinish(200, m_begRange, m_endRange);
139 }
140}
141
142namespace downloader
143{

Callers

nothing calls this directly

Calls 2

toIntMethod · 0.80
OnFinishMethod · 0.45

Tested by

no test coverage detected