aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Symbols/MsiEmbeddedUISymbol.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Data/Symbols/MsiEmbeddedUISymbol.cs')
-rw-r--r--src/WixToolset.Data/Symbols/MsiEmbeddedUISymbol.cs76
1 files changed, 76 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Symbols/MsiEmbeddedUISymbol.cs b/src/WixToolset.Data/Symbols/MsiEmbeddedUISymbol.cs
new file mode 100644
index 00000000..87c9481a
--- /dev/null
+++ b/src/WixToolset.Data/Symbols/MsiEmbeddedUISymbol.cs
@@ -0,0 +1,76 @@
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
3namespace WixToolset.Data
4{
5 using WixToolset.Data.Symbols;
6
7 public static partial class SymbolDefinitions
8 {
9 public static readonly IntermediateSymbolDefinition MsiEmbeddedUI = new IntermediateSymbolDefinition(
10 SymbolDefinitionType.MsiEmbeddedUI,
11 new[]
12 {
13 new IntermediateFieldDefinition(nameof(MsiEmbeddedUISymbolFields.FileName), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(MsiEmbeddedUISymbolFields.EntryPoint), IntermediateFieldType.Bool),
15 new IntermediateFieldDefinition(nameof(MsiEmbeddedUISymbolFields.SupportsBasicUI), IntermediateFieldType.Bool),
16 new IntermediateFieldDefinition(nameof(MsiEmbeddedUISymbolFields.MessageFilter), IntermediateFieldType.Number),
17 new IntermediateFieldDefinition(nameof(MsiEmbeddedUISymbolFields.Source), IntermediateFieldType.Path),
18 },
19 typeof(MsiEmbeddedUISymbol));
20 }
21}
22
23namespace WixToolset.Data.Symbols
24{
25 public enum MsiEmbeddedUISymbolFields
26 {
27 FileName,
28 EntryPoint,
29 SupportsBasicUI,
30 MessageFilter,
31 Source,
32 }
33
34 public class MsiEmbeddedUISymbol : IntermediateSymbol
35 {
36 public MsiEmbeddedUISymbol() : base(SymbolDefinitions.MsiEmbeddedUI, null, null)
37 {
38 }
39
40 public MsiEmbeddedUISymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiEmbeddedUI, sourceLineNumber, id)
41 {
42 }
43
44 public IntermediateField this[MsiEmbeddedUISymbolFields index] => this.Fields[(int)index];
45
46 public string FileName
47 {
48 get => (string)this.Fields[(int)MsiEmbeddedUISymbolFields.FileName];
49 set => this.Set((int)MsiEmbeddedUISymbolFields.FileName, value);
50 }
51
52 public bool EntryPoint
53 {
54 get => this.Fields[(int)MsiEmbeddedUISymbolFields.EntryPoint].AsBool();
55 set => this.Set((int)MsiEmbeddedUISymbolFields.EntryPoint, value);
56 }
57
58 public bool SupportsBasicUI
59 {
60 get => this.Fields[(int)MsiEmbeddedUISymbolFields.SupportsBasicUI].AsBool();
61 set => this.Set((int)MsiEmbeddedUISymbolFields.SupportsBasicUI, value);
62 }
63
64 public int? MessageFilter
65 {
66 get => (int?)this.Fields[(int)MsiEmbeddedUISymbolFields.MessageFilter];
67 set => this.Set((int)MsiEmbeddedUISymbolFields.MessageFilter, value);
68 }
69
70 public string Source
71 {
72 get => (string)this.Fields[(int)MsiEmbeddedUISymbolFields.Source];
73 set => this.Set((int)MsiEmbeddedUISymbolFields.Source, value);
74 }
75 }
76}