HRESULT CUpdateCallbackGUI::FinishScanning(const CDirItemsStat &st) { CProgressSync &sync = ProgressDialog->Sync; RINOK(ProgressDialog->Sync.ScanProgress(st.NumFiles + st.NumAltStreams, st.GetTotalBytes(), FString(), true)); sync.Set_Status(L""); return S_OK; }
HRESULT CExtractScanConsole::ScanProgress(const CDirItemsStat &st, const FString &path, bool /* isDir */) { if (NeedPercents()) { _percent.Files = st.NumDirs + st.NumFiles; _percent.Completed = st.GetTotalBytes(); _percent.FileName = fs2us(path); _percent.Print(); } return CheckBreak2(); }
HRESULT CUpdateCallbackGUI::ScanProgress(const CDirItemsStat &st, const FString &path, bool isDir) { return ProgressDialog->Sync.ScanProgress(st.NumFiles + st.NumAltStreams, st.GetTotalBytes(), path, isDir); }