other-licenses/7zstub/src/7zip/Common/ProgressUtils.h

branch
TOR_BUG_9701
changeset 8
97036ab72558
equal deleted inserted replaced
-1:000000000000 0:34c54f961152
1 // ProgressUtils.h
2
3 #ifndef __PROGRESSUTILS_H
4 #define __PROGRESSUTILS_H
5
6 #include "../../Common/MyCom.h"
7
8 #include "../ICoder.h"
9 #include "../IProgress.h"
10
11 class CLocalCompressProgressInfo:
12 public ICompressProgressInfo,
13 public CMyUnknownImp
14 {
15 CMyComPtr<ICompressProgressInfo> _progress;
16 bool _inStartValueIsAssigned;
17 bool _outStartValueIsAssigned;
18 UInt64 _inStartValue;
19 UInt64 _outStartValue;
20 public:
21 void Init(ICompressProgressInfo *progress,
22 const UInt64 *inStartValue, const UInt64 *outStartValue);
23
24 MY_UNKNOWN_IMP
25
26 STDMETHOD(SetRatioInfo)(const UInt64 *inSize, const UInt64 *outSize);
27 };
28
29 class CLocalProgress:
30 public ICompressProgressInfo,
31 public CMyUnknownImp
32 {
33 CMyComPtr<IProgress> _progress;
34 bool _inSizeIsMain;
35 public:
36 void Init(IProgress *progress, bool inSizeIsMain);
37
38 MY_UNKNOWN_IMP
39
40 STDMETHOD(SetRatioInfo)(const UInt64 *inSize, const UInt64 *outSize);
41 };
42
43 #endif

mercurial