void DownloadUpdateTask::onDownloadProgress(MCFCore::Misc::ProgressInfo& p) { uint32 prog = p.percent; if (m_uiLastPercent == prog) return; m_uiLastPercent = prog; onDownloadProgressEvent(prog); }
void DownloadUpdateTask::doTask() { try { downloadUpdate(); m_bCompleted = true; } catch (gcException &except) { Warning(gcString("Failed to download " PRODUCT_NAME " Update: {0}.\n", except)); } if (!m_bStopped) { uint32 prog = 0; onDownloadProgressEvent(prog); } onDownloadCompleteEvent.reset(); onDownloadStartEvent.reset(); }
void UMcf::updateAllCB(Prog_s& p) { onDownloadProgressEvent(p); }