This slot is connected to a QNetworkReply, probably started by downloadFile()
| 149 | |
| 150 | // This slot is connected to a QNetworkReply, probably started by downloadFile() |
| 151 | void 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. |
nothing calls this directly
no test coverage detected