Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / other-licenses / 7zstub / src / 7zip / Archive / 7z / 7zCompressionMode.h
blob215d5cbfb46e18aefaf2b0a0cc5e200f2343f25c
1 // 7zCompressionMode.h
3 #ifndef __7Z_COMPRESSION_MODE_H
4 #define __7Z_COMPRESSION_MODE_H
6 #include "../../../Windows/PropVariant.h"
8 #include "7zMethodID.h"
10 namespace NArchive {
11 namespace N7z {
13 struct CProperty
15 PROPID PropID;
16 NWindows::NCOM::CPropVariant Value;
19 struct CMethodFull
21 CMethodID MethodID;
22 UInt32 NumInStreams;
23 UInt32 NumOutStreams;
24 bool IsSimpleCoder() const
25 { return (NumInStreams == 1) && (NumOutStreams == 1); }
27 #ifdef EXCLUDE_COM
28 #else
29 CLSID EncoderClassID;
30 CSysString FilePath;
31 #endif
33 CObjectVector<CProperty> CoderProperties;
36 struct CBind
38 UInt32 InCoder;
39 UInt32 InStream;
40 UInt32 OutCoder;
41 UInt32 OutStream;
44 struct CCompressionMethodMode
46 CObjectVector<CMethodFull> Methods;
47 CRecordVector<CBind> Binds;
48 #ifdef COMPRESS_MT
49 UInt32 NumThreads;
50 #endif
51 bool PasswordIsDefined;
52 UString Password;
54 bool IsEmpty() const { return (Methods.IsEmpty() && !PasswordIsDefined); }
55 CCompressionMethodMode(): PasswordIsDefined(false)
56 #ifdef COMPRESS_MT
57 , NumThreads(1)
58 #endif
64 #endif