1 // IFileExtractCallback.h
3 #ifndef __IFILEEXTRACTCALLBACK_H
4 #define __IFILEEXTRACTCALLBACK_H
6 #include "Common/MyString.h"
7 #include "../../IDecl.h"
9 namespace NOverwriteAnswer
22 DECL_INTERFACE_SUB(IFolderArchiveExtractCallback, IProgress, 0x01, 0x07)
25 STDMETHOD(AskOverwrite)(
26 const wchar_t *existName, const FILETIME *existTime, const UInt64 *existSize,
27 const wchar_t *newName, const FILETIME *newTime, const UInt64 *newSize,
29 STDMETHOD(PrepareOperation)(const wchar_t *name, bool isFolder, Int32 askExtractMode, const UInt64 *position) PURE;
30 STDMETHOD(MessageError)(const wchar_t *message) PURE;
31 STDMETHOD(SetOperationResult)(Int32 operationResult, bool encrypted) PURE;
34 struct IExtractCallbackUI: IFolderArchiveExtractCallback
36 virtual HRESULT BeforeOpen(const wchar_t *name) = 0;
37 virtual HRESULT OpenResult(const wchar_t *name, HRESULT result, bool encrypted) = 0;
38 virtual HRESULT ThereAreNoFiles() = 0;
39 virtual HRESULT ExtractResult(HRESULT result) = 0;
40 virtual HRESULT SetPassword(const UString &password) = 0;