mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-12 03:09:57 -06:00
15.05
This commit is contained in:
committed by
Kornel Lesiński
parent
0713a3ab80
commit
54490d51d5
@@ -11,40 +11,29 @@
|
||||
|
||||
#include "ProgressBox.h"
|
||||
|
||||
class CExtractCallBackImp:
|
||||
class CExtractCallbackImp:
|
||||
public IFolderArchiveExtractCallback,
|
||||
public IFolderArchiveExtractCallback2,
|
||||
public ICryptoGetTextPassword,
|
||||
public CMyUnknownImp
|
||||
{
|
||||
public:
|
||||
MY_UNKNOWN_IMP1(ICryptoGetTextPassword)
|
||||
MY_UNKNOWN_IMP2(ICryptoGetTextPassword, IFolderArchiveExtractCallback2)
|
||||
|
||||
// IProgress
|
||||
STDMETHOD(SetTotal)(UInt64 size);
|
||||
STDMETHOD(SetCompleted)(const UInt64 *completeValue);
|
||||
|
||||
// IExtractCallBack
|
||||
STDMETHOD(AskOverwrite)(
|
||||
const wchar_t *existName, const FILETIME *existTime, const UInt64 *existSize,
|
||||
const wchar_t *newName, const FILETIME *newTime, const UInt64 *newSize,
|
||||
Int32 *result);
|
||||
STDMETHOD (PrepareOperation)(const wchar_t *name, bool isFolder, Int32 askExtractMode, const UInt64 *position);
|
||||
INTERFACE_IFolderArchiveExtractCallback(;)
|
||||
INTERFACE_IFolderArchiveExtractCallback2(;)
|
||||
|
||||
STDMETHOD(MessageError)(const wchar_t *message);
|
||||
STDMETHOD(SetOperationResult)(Int32 resultEOperationResult, bool encrypted);
|
||||
// ICryptoGetTextPassword
|
||||
STDMETHOD(CryptoGetTextPassword)(BSTR *password);
|
||||
|
||||
private:
|
||||
UInt64 _total;
|
||||
UInt64 _processed;
|
||||
|
||||
bool _totalIsDefined;
|
||||
bool _processedIsDefined;
|
||||
|
||||
UString m_CurrentFilePath;
|
||||
|
||||
CProgressBox *m_ProgressBox;
|
||||
CProgressBox *_percent;
|
||||
UINT m_CodePage;
|
||||
|
||||
bool m_PasswordIsDefined;
|
||||
@@ -58,8 +47,8 @@ private:
|
||||
*/
|
||||
void AddErrorMessage(LPCTSTR message);
|
||||
public:
|
||||
CExtractCallBackImp(): _totalIsDefined(false), _processedIsDefined(false) {}
|
||||
~CExtractCallBackImp();
|
||||
// CExtractCallbackImp() {}
|
||||
~CExtractCallbackImp();
|
||||
void Init(UINT codePage,
|
||||
CProgressBox *progressBox,
|
||||
bool passwordIsDefined, const UString &password);
|
||||
|
||||
Reference in New Issue
Block a user