diff options
Diffstat (limited to 'src/WixToolset.Data.WindowsInstaller/Rows/ComponentRow.cs')
-rw-r--r-- | src/WixToolset.Data.WindowsInstaller/Rows/ComponentRow.cs | 245 |
1 files changed, 0 insertions, 245 deletions
diff --git a/src/WixToolset.Data.WindowsInstaller/Rows/ComponentRow.cs b/src/WixToolset.Data.WindowsInstaller/Rows/ComponentRow.cs deleted file mode 100644 index 3ff10175..00000000 --- a/src/WixToolset.Data.WindowsInstaller/Rows/ComponentRow.cs +++ /dev/null | |||
@@ -1,245 +0,0 @@ | |||
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.Data.Rows | ||
4 | { | ||
5 | using System; | ||
6 | using WixToolset.Data.Msi; | ||
7 | |||
8 | /// <summary> | ||
9 | /// Specialization of a row for the Component table. | ||
10 | /// </summary> | ||
11 | public sealed class ComponentRow : Row | ||
12 | { | ||
13 | private string sourceFile; | ||
14 | |||
15 | /// <summary> | ||
16 | /// Creates a Control row that belongs to a table. | ||
17 | /// </summary> | ||
18 | /// <param name="sourceLineNumbers">Original source lines for this row.</param> | ||
19 | /// <param name="table">Table this Component row belongs to and should get its column definitions from.</param> | ||
20 | public ComponentRow(SourceLineNumber sourceLineNumbers, Table table) : | ||
21 | base(sourceLineNumbers, table) | ||
22 | { | ||
23 | } | ||
24 | |||
25 | /// <summary> | ||
26 | /// Gets or sets the identifier for this Component row. | ||
27 | /// </summary> | ||
28 | /// <value>Identifier for this Component row.</value> | ||
29 | public string Component | ||
30 | { | ||
31 | get { return (string)this.Fields[0].Data; } | ||
32 | set { this.Fields[0].Data = value; } | ||
33 | } | ||
34 | |||
35 | /// <summary> | ||
36 | /// Gets or sets the ComponentId for this Component row. | ||
37 | /// </summary> | ||
38 | /// <value>guid for this Component row.</value> | ||
39 | public string Guid | ||
40 | { | ||
41 | get { return (string)this.Fields[1].Data; } | ||
42 | set { this.Fields[1].Data = value; } | ||
43 | } | ||
44 | |||
45 | /// <summary> | ||
46 | /// Gets or sets the Directory_ of the Component. | ||
47 | /// </summary> | ||
48 | /// <value>Directory of the Component.</value> | ||
49 | public string Directory | ||
50 | { | ||
51 | get { return (string)this.Fields[2].Data; } | ||
52 | set { this.Fields[2].Data = value; } | ||
53 | } | ||
54 | |||
55 | /// <summary> | ||
56 | /// Gets or sets the local only attribute of the Component. | ||
57 | /// </summary> | ||
58 | /// <value>Local only attribute of the component.</value> | ||
59 | public bool IsLocalOnly | ||
60 | { | ||
61 | get { return MsiInterop.MsidbComponentAttributesLocalOnly == ((int)this.Fields[3].Data & MsiInterop.MsidbComponentAttributesLocalOnly); } | ||
62 | set | ||
63 | { | ||
64 | if (value) | ||
65 | { | ||
66 | this.Fields[3].Data = (int)this.Fields[3].Data | MsiInterop.MsidbComponentAttributesLocalOnly; | ||
67 | } | ||
68 | else | ||
69 | { | ||
70 | this.Fields[3].Data = (int)this.Fields[3].Data & ~MsiInterop.MsidbComponentAttributesLocalOnly; | ||
71 | } | ||
72 | } | ||
73 | } | ||
74 | |||
75 | /// <summary> | ||
76 | /// Gets or sets the source only attribute of the Component. | ||
77 | /// </summary> | ||
78 | /// <value>Source only attribute of the component.</value> | ||
79 | public bool IsSourceOnly | ||
80 | { | ||
81 | get { return MsiInterop.MsidbComponentAttributesSourceOnly == ((int)this.Fields[3].Data & MsiInterop.MsidbComponentAttributesSourceOnly); } | ||
82 | set | ||
83 | { | ||
84 | if (value) | ||
85 | { | ||
86 | this.Fields[3].Data = (int)this.Fields[3].Data | MsiInterop.MsidbComponentAttributesSourceOnly; | ||
87 | } | ||
88 | else | ||
89 | { | ||
90 | this.Fields[3].Data = (int)this.Fields[3].Data & ~MsiInterop.MsidbComponentAttributesSourceOnly; | ||
91 | } | ||
92 | } | ||
93 | } | ||
94 | |||
95 | /// <summary> | ||
96 | /// Gets or sets the optional attribute of the Component. | ||
97 | /// </summary> | ||
98 | /// <value>Optional attribute of the component.</value> | ||
99 | public bool IsOptional | ||
100 | { | ||
101 | get { return MsiInterop.MsidbComponentAttributesOptional == ((int)this.Fields[3].Data & MsiInterop.MsidbComponentAttributesOptional); } | ||
102 | set | ||
103 | { | ||
104 | if (value) | ||
105 | { | ||
106 | this.Fields[3].Data = (int)this.Fields[3].Data | MsiInterop.MsidbComponentAttributesOptional; | ||
107 | } | ||
108 | else | ||
109 | { | ||
110 | this.Fields[3].Data = (int)this.Fields[3].Data & ~MsiInterop.MsidbComponentAttributesOptional; | ||
111 | } | ||
112 | } | ||
113 | } | ||
114 | |||
115 | /// <summary> | ||
116 | /// Gets or sets the registry key path attribute of the Component. | ||
117 | /// </summary> | ||
118 | /// <value>Registry key path attribute of the component.</value> | ||
119 | public bool IsRegistryKeyPath | ||
120 | { | ||
121 | get { return MsiInterop.MsidbComponentAttributesRegistryKeyPath == ((int)this.Fields[3].Data & MsiInterop.MsidbComponentAttributesRegistryKeyPath); } | ||
122 | set | ||
123 | { | ||
124 | if (value) | ||
125 | { | ||
126 | this.Fields[3].Data = (int)this.Fields[3].Data | MsiInterop.MsidbComponentAttributesRegistryKeyPath; | ||
127 | } | ||
128 | else | ||
129 | { | ||
130 | this.Fields[3].Data = (int)this.Fields[3].Data & ~MsiInterop.MsidbComponentAttributesRegistryKeyPath; | ||
131 | } | ||
132 | } | ||
133 | } | ||
134 | |||
135 | /// <summary> | ||
136 | /// Gets or sets the shared dll ref count attribute of the Component. | ||
137 | /// </summary> | ||
138 | /// <value>Shared dll ref countattribute of the component.</value> | ||
139 | public bool IsSharedDll | ||
140 | { | ||
141 | get { return MsiInterop.MsidbComponentAttributesSharedDllRefCount == ((int)this.Fields[3].Data & MsiInterop.MsidbComponentAttributesSharedDllRefCount); } | ||
142 | set | ||
143 | { | ||
144 | if (value) | ||
145 | { | ||
146 | this.Fields[3].Data = (int)this.Fields[3].Data | MsiInterop.MsidbComponentAttributesSharedDllRefCount; | ||
147 | } | ||
148 | else | ||
149 | { | ||
150 | this.Fields[3].Data = (int)this.Fields[3].Data & ~MsiInterop.MsidbComponentAttributesSharedDllRefCount; | ||
151 | } | ||
152 | } | ||
153 | } | ||
154 | |||
155 | /// <summary> | ||
156 | /// Gets or sets the permanent attribute of the Component. | ||
157 | /// </summary> | ||
158 | /// <value>Permanent attribute of the component.</value> | ||
159 | public bool IsPermanent | ||
160 | { | ||
161 | get { return MsiInterop.MsidbComponentAttributesPermanent == ((int)this.Fields[3].Data & MsiInterop.MsidbComponentAttributesPermanent); } | ||
162 | set | ||
163 | { | ||
164 | if (value) | ||
165 | { | ||
166 | this.Fields[3].Data = (int)this.Fields[3].Data | MsiInterop.MsidbComponentAttributesPermanent; | ||
167 | } | ||
168 | else | ||
169 | { | ||
170 | this.Fields[3].Data = (int)this.Fields[3].Data & ~MsiInterop.MsidbComponentAttributesPermanent; | ||
171 | } | ||
172 | } | ||
173 | } | ||
174 | |||
175 | /// <summary> | ||
176 | /// Gets or sets the ODBC data source key path attribute of the Component. | ||
177 | /// </summary> | ||
178 | /// <value>ODBC data source key path attribute of the component.</value> | ||
179 | public bool IsOdbcDataSourceKeyPath | ||
180 | { | ||
181 | get { return MsiInterop.MsidbComponentAttributesODBCDataSource == ((int)this.Fields[3].Data & MsiInterop.MsidbComponentAttributesODBCDataSource); } | ||
182 | set | ||
183 | { | ||
184 | if (value) | ||
185 | { | ||
186 | this.Fields[3].Data = (int)this.Fields[3].Data | MsiInterop.MsidbComponentAttributesODBCDataSource; | ||
187 | } | ||
188 | else | ||
189 | { | ||
190 | this.Fields[3].Data = (int)this.Fields[3].Data & ~MsiInterop.MsidbComponentAttributesODBCDataSource; | ||
191 | } | ||
192 | } | ||
193 | } | ||
194 | |||
195 | /// <summary> | ||
196 | /// Gets or sets the 64 bit attribute of the Component. | ||
197 | /// </summary> | ||
198 | /// <value>64-bitness of the component.</value> | ||
199 | public bool Is64Bit | ||
200 | { | ||
201 | get { return MsiInterop.MsidbComponentAttributes64bit == ((int)this.Fields[3].Data & MsiInterop.MsidbComponentAttributes64bit); } | ||
202 | set | ||
203 | { | ||
204 | if (value) | ||
205 | { | ||
206 | this.Fields[3].Data = (int)this.Fields[3].Data | MsiInterop.MsidbComponentAttributes64bit; | ||
207 | } | ||
208 | else | ||
209 | { | ||
210 | this.Fields[3].Data = (int)this.Fields[3].Data & ~MsiInterop.MsidbComponentAttributes64bit; | ||
211 | } | ||
212 | } | ||
213 | } | ||
214 | |||
215 | /// <summary> | ||
216 | /// Gets or sets the condition of the Component. | ||
217 | /// </summary> | ||
218 | /// <value>Condition of the Component.</value> | ||
219 | public string Condition | ||
220 | { | ||
221 | get { return (string)this.Fields[4].Data; } | ||
222 | set { this.Fields[4].Data = value; } | ||
223 | } | ||
224 | |||
225 | /// <summary> | ||
226 | /// Gets or sets the key path of the Component. | ||
227 | /// </summary> | ||
228 | /// <value>Key path of the Component.</value> | ||
229 | public string KeyPath | ||
230 | { | ||
231 | get { return (string)this.Fields[5].Data; } | ||
232 | set { this.Fields[5].Data = value; } | ||
233 | } | ||
234 | |||
235 | /// <summary> | ||
236 | /// Gets or sets the source location to the file to fill in the Text of the control. | ||
237 | /// </summary> | ||
238 | /// <value>Source location to the file to fill in the Text of the control.</value> | ||
239 | public string SourceFile | ||
240 | { | ||
241 | get { return this.sourceFile; } | ||
242 | set { this.sourceFile = value; } | ||
243 | } | ||
244 | } | ||
245 | } | ||