view 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 source
1 // ProgressUtils.h
3 #ifndef __PROGRESSUTILS_H
4 #define __PROGRESSUTILS_H
6 #include "../../Common/MyCom.h"
8 #include "../ICoder.h"
9 #include "../IProgress.h"
11 class CLocalProgress:
12 public ICompressProgressInfo,
13 public CMyUnknownImp
14 {
15 CMyComPtr<IProgress> _progress;
16 CMyComPtr<ICompressProgressInfo> _ratioProgress;
17 bool _inSizeIsMain;
18 public:
19 UInt64 ProgressOffset;
20 UInt64 InSize;
21 UInt64 OutSize;
22 bool SendRatio;
23 bool SendProgress;
25 CLocalProgress();
26 void Init(IProgress *progress, bool inSizeIsMain);
27 HRESULT SetCur();
29 MY_UNKNOWN_IMP
31 STDMETHOD(SetRatioInfo)(const UInt64 *inSize, const UInt64 *outSize);
32 };
34 #endif