2021-10-19 21:27:23 +01:00
|
|
|
// ProgressUtils.h
|
|
|
|
|
|
2023-09-24 03:13:03 +01:00
|
|
|
#ifndef ZIP7_INC_PROGRESS_UTILS_H
|
|
|
|
|
#define ZIP7_INC_PROGRESS_UTILS_H
|
2021-10-19 21:27:23 +01:00
|
|
|
|
|
|
|
|
#include "../../Common/MyCom.h"
|
|
|
|
|
|
|
|
|
|
#include "../ICoder.h"
|
|
|
|
|
#include "../IProgress.h"
|
|
|
|
|
|
2023-09-24 03:13:03 +01:00
|
|
|
Z7_CLASS_IMP_COM_1(
|
|
|
|
|
CLocalProgress
|
|
|
|
|
, ICompressProgressInfo
|
|
|
|
|
)
|
|
|
|
|
public:
|
|
|
|
|
bool SendRatio;
|
|
|
|
|
bool SendProgress;
|
|
|
|
|
private:
|
|
|
|
|
bool _inSizeIsMain;
|
2021-10-19 21:27:23 +01:00
|
|
|
CMyComPtr<IProgress> _progress;
|
|
|
|
|
CMyComPtr<ICompressProgressInfo> _ratioProgress;
|
|
|
|
|
public:
|
|
|
|
|
UInt64 ProgressOffset;
|
|
|
|
|
UInt64 InSize;
|
|
|
|
|
UInt64 OutSize;
|
|
|
|
|
|
|
|
|
|
CLocalProgress();
|
|
|
|
|
|
|
|
|
|
void Init(IProgress *progress, bool inSizeIsMain);
|
|
|
|
|
HRESULT SetCur();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|