00001
00002
00003
00004
00005 #ifndef __IFILEEXTRACTCALLBACK_H
00006 #define __IFILEEXTRACTCALLBACK_H
00007
00008 #include "String.h"
00009
00010 namespace NOverwriteAnswer
00011 {
00012 enum EEnum
00013 {
00014 kYes,
00015 kYesToAll,
00016 kNo,
00017 kNoToAll,
00018 kAutoRename,
00019 kCancel,
00020 };
00021 }
00022
00023 DEFINE_GUID(IID_IFolderArchiveExtractCallback,
00024 0x23170F69, 0x40C1, 0x278A, 0x00, 0x00, 0x00, 0x01, 0x00, 0x07, 0x00, 0x00);
00025 MIDL_INTERFACE("23170F69-40C1-278A-0000-000100070000")
00026 IFolderArchiveExtractCallback: public IProgress
00027 {
00028 public:
00029 STDMETHOD(AskOverwrite)(
00030 const wchar_t *existName, const FILETIME *existTime, const UInt64 *existSize,
00031 const wchar_t *newName, const FILETIME *newTime, const UInt64 *newSize,
00032 Int32 *answer) PURE;
00033 STDMETHOD(PrepareOperation)(const wchar_t *name, Int32 askExtractMode, const UInt64 *position) PURE;
00034 STDMETHOD(MessageError)(const wchar_t *message) PURE;
00035 STDMETHOD(SetOperationResult)(Int32 operationResult) PURE;
00036 };
00037
00038 struct IExtractCallbackUI: IFolderArchiveExtractCallback
00039 {
00040 virtual HRESULT BeforeOpen(const wchar_t *name) = 0;
00041 virtual HRESULT OpenResult(const wchar_t *name, HRESULT result) = 0;
00042 virtual HRESULT ThereAreNoFiles() = 0;
00043 virtual HRESULT ExtractResult(HRESULT result) = 0;
00044 virtual HRESULT SetPassword(const UString &password) = 0;
00045 };
00046
00047 #endif