MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / curl_progress

Method curl_progress

Tasks/TLEDownloaderTask.cpp:49–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49int
50TLEDownloaderTask::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
65TLEDownloaderTask::TLEDownloaderTask(
66 QString url,

Callers

nothing calls this directly

Calls 2

setStatusMethod · 0.80
setProgressMethod · 0.45

Tested by

no test coverage detected