| 47 | } |
| 48 | |
| 49 | int |
| 50 | TLEDownloaderTask::curl_progress( |
| 51 | void *self, |
| 52 | double dltotal, |
| 53 | double dlnow, |
| 54 | double, |
| 55 | double) |
| 56 | { |
| 57 | TLEDownloaderTask *task = reinterpret_cast<TLEDownloaderTask *>(self); |
| 58 | |
| 59 | task->setStatus("Downloading data"); |
| 60 | task->setProgress(dlnow / dltotal); |
| 61 | |
| 62 | return 0; |
| 63 | } |
| 64 | |
| 65 | TLEDownloaderTask::TLEDownloaderTask( |
| 66 | QString url, |
nothing calls this directly
no test coverage detected