mirror of
https://github.com/love2d/megasource.git
synced 2026-08-20 12:40:06 +02:00
Add PhysFS 2.0.3.
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
// IFileExtractCallback.h
|
||||
|
||||
#ifndef __IFILEEXTRACTCALLBACK_H
|
||||
#define __IFILEEXTRACTCALLBACK_H
|
||||
|
||||
#include "Common/MyString.h"
|
||||
#include "../../IDecl.h"
|
||||
|
||||
namespace NOverwriteAnswer
|
||||
{
|
||||
enum EEnum
|
||||
{
|
||||
kYes,
|
||||
kYesToAll,
|
||||
kNo,
|
||||
kNoToAll,
|
||||
kAutoRename,
|
||||
kCancel
|
||||
};
|
||||
}
|
||||
|
||||
DECL_INTERFACE_SUB(IFolderArchiveExtractCallback, IProgress, 0x01, 0x07)
|
||||
{
|
||||
public:
|
||||
STDMETHOD(AskOverwrite)(
|
||||
const wchar_t *existName, const FILETIME *existTime, const UInt64 *existSize,
|
||||
const wchar_t *newName, const FILETIME *newTime, const UInt64 *newSize,
|
||||
Int32 *answer) PURE;
|
||||
STDMETHOD(PrepareOperation)(const wchar_t *name, bool isFolder, Int32 askExtractMode, const UInt64 *position) PURE;
|
||||
STDMETHOD(MessageError)(const wchar_t *message) PURE;
|
||||
STDMETHOD(SetOperationResult)(Int32 operationResult, bool encrypted) PURE;
|
||||
};
|
||||
|
||||
struct IExtractCallbackUI: IFolderArchiveExtractCallback
|
||||
{
|
||||
virtual HRESULT BeforeOpen(const wchar_t *name) = 0;
|
||||
virtual HRESULT OpenResult(const wchar_t *name, HRESULT result, bool encrypted) = 0;
|
||||
virtual HRESULT ThereAreNoFiles() = 0;
|
||||
virtual HRESULT ExtractResult(HRESULT result) = 0;
|
||||
virtual HRESULT SetPassword(const UString &password) = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user