diff options
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Bind/CabinetWorkItem.cs')
-rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Bind/CabinetWorkItem.cs | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/CabinetWorkItem.cs b/src/WixToolset.Core.WindowsInstaller/Bind/CabinetWorkItem.cs new file mode 100644 index 00000000..dcafcd36 --- /dev/null +++ b/src/WixToolset.Core.WindowsInstaller/Bind/CabinetWorkItem.cs | |||
@@ -0,0 +1,79 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | |||
3 | namespace WixToolset.Core.WindowsInstaller.Databases | ||
4 | { | ||
5 | using System.Collections.Generic; | ||
6 | using WixToolset.Core.Bind; | ||
7 | using WixToolset.Data; | ||
8 | using WixToolset.Data.Rows; | ||
9 | |||
10 | /// <summary> | ||
11 | /// A cabinet builder work item. | ||
12 | /// </summary> | ||
13 | internal sealed class CabinetWorkItem | ||
14 | { | ||
15 | private string cabinetFile; | ||
16 | private CompressionLevel compressionLevel; | ||
17 | //private BinderFileManager binderFileManager; | ||
18 | private int maxThreshold; | ||
19 | |||
20 | /// <summary> | ||
21 | /// Instantiate a new CabinetWorkItem. | ||
22 | /// </summary> | ||
23 | /// <param name="fileFacades">The collection of files in this cabinet.</param> | ||
24 | /// <param name="cabinetFile">The cabinet file.</param> | ||
25 | /// <param name="maxThreshold">Maximum threshold for each cabinet.</param> | ||
26 | /// <param name="compressionLevel">The compression level of the cabinet.</param> | ||
27 | /// <param name="binderFileManager">The binder file manager.</param> | ||
28 | public CabinetWorkItem(IEnumerable<FileFacade> fileFacades, string cabinetFile, int maxThreshold, CompressionLevel compressionLevel /*, BinderFileManager binderFileManager*/) | ||
29 | { | ||
30 | this.cabinetFile = cabinetFile; | ||
31 | this.compressionLevel = compressionLevel; | ||
32 | this.FileFacades = fileFacades; | ||
33 | //this.binderFileManager = binderFileManager; | ||
34 | this.maxThreshold = maxThreshold; | ||
35 | } | ||
36 | |||
37 | /// <summary> | ||
38 | /// Gets the cabinet file. | ||
39 | /// </summary> | ||
40 | /// <value>The cabinet file.</value> | ||
41 | public string CabinetFile | ||
42 | { | ||
43 | get { return this.cabinetFile; } | ||
44 | } | ||
45 | |||
46 | /// <summary> | ||
47 | /// Gets the compression level of the cabinet. | ||
48 | /// </summary> | ||
49 | /// <value>The compression level of the cabinet.</value> | ||
50 | public CompressionLevel CompressionLevel | ||
51 | { | ||
52 | get { return this.compressionLevel; } | ||
53 | } | ||
54 | |||
55 | /// <summary> | ||
56 | /// Gets the collection of files in this cabinet. | ||
57 | /// </summary> | ||
58 | /// <value>The collection of files in this cabinet.</value> | ||
59 | public IEnumerable<FileFacade> FileFacades { get; private set; } | ||
60 | |||
61 | /// <summary> | ||
62 | /// Gets the binder file manager. | ||
63 | /// </summary> | ||
64 | /// <value>The binder file manager.</value> | ||
65 | //public BinderFileManager BinderFileManager | ||
66 | //{ | ||
67 | // get { return this.binderFileManager; } | ||
68 | //} | ||
69 | |||
70 | /// <summary> | ||
71 | /// Gets the max threshold. | ||
72 | /// </summary> | ||
73 | /// <value>The maximum threshold for a folder in a cabinet.</value> | ||
74 | public int MaxThreshold | ||
75 | { | ||
76 | get { return this.maxThreshold; } | ||
77 | } | ||
78 | } | ||
79 | } | ||