00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00014
00015
00022 #if !defined(ZIPARCHIVE_ZIPCOMPATIBILITY_DOT_H)
00023 #define ZIPARCHIVE_ZIPCOMPATIBILITY_DOT_H
00024
00025 #if _MSC_VER > 1000
00026 #pragma once
00027 #endif
00028
00029 class CZipAutoBuffer;
00030 class CZipFileHeader;
00031
00032 #include "ZipString.h"
00033 #include "ZipPlatform.h"
00038 namespace ZipCompatibility
00039 {
00050 enum ZipPlatforms
00051 {
00052 zcDosFat,
00053 zcAmiga,
00054 zcVaxVms,
00055 zcUnix,
00056 zcVmCms,
00057 zcAtari,
00058 zcOs2Hpfs,
00059 zcMacintosh,
00060 zcZsystem,
00061 zcCpm,
00062 zcTops20,
00063 zcNtfs,
00064 zcQDos,
00065 zcAcorn,
00066 ZcMvs,
00067 zcVfat,
00068 zcAtheOS,
00069 zcBeOS,
00070 zcTandem,
00071 zcTheos,
00072 zcMacDarwin
00073 };
00074
00084 ZIP_API bool IsPlatformSupported(int iCode);
00085
00105 ZIP_API DWORD ConvertToSystem(DWORD uAttr, int iFromSystem, int iToSystem);
00106
00119 ZIP_API void ConvertBufferToString(CZipString& szString, const CZipAutoBuffer& buffer, UINT uCodePage);
00120
00133 ZIP_API void ConvertStringToBuffer(LPCTSTR lpszString, CZipAutoBuffer& buffer, UINT uCodePage);
00134
00144 void SlashBackslashChg(CZipString& szFileName, bool bReplaceSlash);
00145
00155 ZIP_API UINT GetDefaultNameCodePage(int iPlatform);
00156
00157
00164 ZIP_API UINT GetDefaultNameCodePage();
00165
00175 ZIP_API UINT GetDefaultCommentCodePage(int iPlatform);
00176
00186 ZIP_API UINT GetDefaultPasswordCodePage(int iPlatform);
00187
00194 ZIP_API UINT GetDefaultCommentCodePage();
00195 };
00196
00197 #endif // !defined(ZIPARCHIVE_ZIPCOMPATIBILITY_DOT_H)