MCPcopy Create free account
hub / github.com/bumptop/BumpTop / downloadError

Method downloadError

trunk/win/Source/BT_JavaScriptAPI.cpp:151–158  ·  view source on GitHub ↗

This slot is connected to a QNetworkReply, probably started by downloadFile()

Source from the content-addressed store, hash-verified

149
150// This slot is connected to a QNetworkReply, probably started by downloadFile()
151void JavaScriptAPI::downloadError( QNetworkReply::NetworkError error)
152{
153 consoleWrite(QString("Download error!\n"));
154 QNetworkReply *reply = (QNetworkReply *)sender();
155 QString callbackName = reply->request().attribute(QNetworkRequest::User).toString();
156 if (!callbackName.isNull())
157 _page->evaluateJavaScript(callbackName + "(false);");
158}
159
160// Upload one or more files using an HTTP post request.
161// 'opts' is a JS object where the keys and values represent the non-file parameters of the POST request.

Callers

nothing calls this directly

Calls 8

consoleWriteFunction · 0.85
attributeMethod · 0.80
evaluateJavaScriptMethod · 0.80
QStringFunction · 0.50
senderFunction · 0.50
toStringMethod · 0.45
requestMethod · 0.45
isNullMethod · 0.45

Tested by

no test coverage detected