1*f6dc9357SAndroid Build Coastguard Worker // ProgressUtils.h 2*f6dc9357SAndroid Build Coastguard Worker 3*f6dc9357SAndroid Build Coastguard Worker #ifndef ZIP7_INC_PROGRESS_UTILS_H 4*f6dc9357SAndroid Build Coastguard Worker #define ZIP7_INC_PROGRESS_UTILS_H 5*f6dc9357SAndroid Build Coastguard Worker 6*f6dc9357SAndroid Build Coastguard Worker #include "../../Common/MyCom.h" 7*f6dc9357SAndroid Build Coastguard Worker 8*f6dc9357SAndroid Build Coastguard Worker #include "../ICoder.h" 9*f6dc9357SAndroid Build Coastguard Worker #include "../IProgress.h" 10*f6dc9357SAndroid Build Coastguard Worker 11*f6dc9357SAndroid Build Coastguard Worker Z7_CLASS_IMP_COM_1( 12*f6dc9357SAndroid Build Coastguard Worker CLocalProgress 13*f6dc9357SAndroid Build Coastguard Worker , ICompressProgressInfo 14*f6dc9357SAndroid Build Coastguard Worker ) 15*f6dc9357SAndroid Build Coastguard Worker public: 16*f6dc9357SAndroid Build Coastguard Worker bool SendRatio; 17*f6dc9357SAndroid Build Coastguard Worker bool SendProgress; 18*f6dc9357SAndroid Build Coastguard Worker private: 19*f6dc9357SAndroid Build Coastguard Worker bool _inSizeIsMain; 20*f6dc9357SAndroid Build Coastguard Worker CMyComPtr<IProgress> _progress; 21*f6dc9357SAndroid Build Coastguard Worker CMyComPtr<ICompressProgressInfo> _ratioProgress; 22*f6dc9357SAndroid Build Coastguard Worker public: 23*f6dc9357SAndroid Build Coastguard Worker UInt64 ProgressOffset; 24*f6dc9357SAndroid Build Coastguard Worker UInt64 InSize; 25*f6dc9357SAndroid Build Coastguard Worker UInt64 OutSize; 26*f6dc9357SAndroid Build Coastguard Worker 27*f6dc9357SAndroid Build Coastguard Worker CLocalProgress(); 28*f6dc9357SAndroid Build Coastguard Worker 29*f6dc9357SAndroid Build Coastguard Worker void Init(IProgress *progress, bool inSizeIsMain); 30*f6dc9357SAndroid Build Coastguard Worker HRESULT SetCur(); 31*f6dc9357SAndroid Build Coastguard Worker }; 32*f6dc9357SAndroid Build Coastguard Worker 33*f6dc9357SAndroid Build Coastguard Worker #endif 34