From f2902217b38cf2e16e851ae84d61247f8e828180 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Mon, 25 Mar 2019 17:53:14 +0100 Subject: Update the 7z installer stub source to 18.05. Tag #1022 --- .../7zstub/src/7zip/UI/Common/ArchiverInfo.h | 66 ---------------------- 1 file changed, 66 deletions(-) delete mode 100644 other-licenses/7zstub/src/7zip/UI/Common/ArchiverInfo.h (limited to 'other-licenses/7zstub/src/7zip/UI/Common/ArchiverInfo.h') diff --git a/other-licenses/7zstub/src/7zip/UI/Common/ArchiverInfo.h b/other-licenses/7zstub/src/7zip/UI/Common/ArchiverInfo.h deleted file mode 100644 index 8c42f7c5b..000000000 --- a/other-licenses/7zstub/src/7zip/UI/Common/ArchiverInfo.h +++ /dev/null @@ -1,66 +0,0 @@ -// ArchiverInfo.h - -#ifndef __ARCHIVERINFO_H -#define __ARCHIVERINFO_H - -#include "Common/String.h" -#include "Common/Types.h" -#include "Common/Buffer.h" - -struct CArchiverExtInfo -{ - UString Ext; - UString AddExt; - CArchiverExtInfo() {} - CArchiverExtInfo(const UString &ext): Ext(ext) {} - CArchiverExtInfo(const UString &ext, const UString &addExt): Ext(ext), AddExt(addExt) {} -}; - -struct CArchiverInfo -{ - #ifndef EXCLUDE_COM - UString FilePath; - CLSID ClassID; - #endif - UString Name; - CObjectVector Extensions; - #ifndef _SFX - CByteBuffer StartSignature; - CByteBuffer FinishSignature; - bool Associate; - #endif - int FindExtension(const UString &ext) const - { - for (int i = 0; i < Extensions.Size(); i++) - if (ext.CompareNoCase(Extensions[i].Ext) == 0) - return i; - return -1; - } - UString GetAllExtensions() const - { - UString s; - for (int i = 0; i < Extensions.Size(); i++) - { - if (i > 0) - s += ' '; - s += Extensions[i].Ext; - } - return s; - } - const UString &GetMainExtension() const - { - return Extensions[0].Ext; - } - bool UpdateEnabled; - bool KeepName; - - CArchiverInfo(): UpdateEnabled(false), KeepName(false) - #ifndef _SFX - ,Associate(true) - #endif - {} -}; - -void ReadArchiverInfoList(CObjectVector &archivers); - -#endif -- cgit v1.2.3