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