bool progress(int64_t total, int64_t now) { info->setProgress(now, total); // Abort the download if the user requested it. if(info->checkStatus()) return false; return true; }