Mercurial > vba-linux
diff src/win32/7zip/7z/CPP/7zip/Common/ProgressUtils.h @ 1:f9f4f1b99eed
importing src directory
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:27 -0600 |
parents | |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/win32/7zip/7z/CPP/7zip/Common/ProgressUtils.h Sat Mar 03 10:31:27 2012 -0600 1.3 @@ -0,0 +1,34 @@ 1.4 +// ProgressUtils.h 1.5 + 1.6 +#ifndef __PROGRESSUTILS_H 1.7 +#define __PROGRESSUTILS_H 1.8 + 1.9 +#include "../../Common/MyCom.h" 1.10 + 1.11 +#include "../ICoder.h" 1.12 +#include "../IProgress.h" 1.13 + 1.14 +class CLocalProgress: 1.15 + public ICompressProgressInfo, 1.16 + public CMyUnknownImp 1.17 +{ 1.18 + CMyComPtr<IProgress> _progress; 1.19 + CMyComPtr<ICompressProgressInfo> _ratioProgress; 1.20 + bool _inSizeIsMain; 1.21 +public: 1.22 + UInt64 ProgressOffset; 1.23 + UInt64 InSize; 1.24 + UInt64 OutSize; 1.25 + bool SendRatio; 1.26 + bool SendProgress; 1.27 + 1.28 + CLocalProgress(); 1.29 + void Init(IProgress *progress, bool inSizeIsMain); 1.30 + HRESULT SetCur(); 1.31 + 1.32 + MY_UNKNOWN_IMP 1.33 + 1.34 + STDMETHOD(SetRatioInfo)(const UInt64 *inSize, const UInt64 *outSize); 1.35 +}; 1.36 + 1.37 +#endif