| 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.Util |
| 4 | { |
| 5 | using WixToolset.Data; |
| 6 | using WixToolset.Util.Symbols; |
| 7 | |
| 8 | public static partial class UtilSymbolDefinitions |
| 9 | { |
| 10 | public static readonly IntermediateSymbolDefinition WixCloseApplication = new IntermediateSymbolDefinition( |
| 11 | UtilSymbolDefinitionType.WixCloseApplication.ToString(), |
| 12 | new[] |
| 13 | { |
| 14 | new IntermediateFieldDefinition(nameof(WixCloseApplicationSymbolFields.Target), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(WixCloseApplicationSymbolFields.Description), IntermediateFieldType.String), |
| 16 | new IntermediateFieldDefinition(nameof(WixCloseApplicationSymbolFields.Condition), IntermediateFieldType.String), |
| 17 | new IntermediateFieldDefinition(nameof(WixCloseApplicationSymbolFields.Attributes), IntermediateFieldType.Number), |
| 18 | new IntermediateFieldDefinition(nameof(WixCloseApplicationSymbolFields.Sequence), IntermediateFieldType.Number), |
| 19 | new IntermediateFieldDefinition(nameof(WixCloseApplicationSymbolFields.Property), IntermediateFieldType.String), |
| 20 | new IntermediateFieldDefinition(nameof(WixCloseApplicationSymbolFields.TerminateExitCode), IntermediateFieldType.Number), |
| 21 | new IntermediateFieldDefinition(nameof(WixCloseApplicationSymbolFields.Timeout), IntermediateFieldType.Number), |
| 22 | }, |
| 23 | typeof(WixCloseApplicationSymbol)); |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | namespace WixToolset.Util.Symbols |
| 28 | { |
| 29 | using WixToolset.Data; |
| 30 | |
| 31 | public enum WixCloseApplicationSymbolFields |
| 32 | { |
| 33 | Target, |
| 34 | Description, |
| 35 | Condition, |
| 36 | Attributes, |
| 37 | Sequence, |
| 38 | Property, |
| 39 | TerminateExitCode, |
| 40 | Timeout, |
| 41 | } |
| 42 | |
| 43 | public class WixCloseApplicationSymbol : IntermediateSymbol |
| 44 | { |
| 45 | public WixCloseApplicationSymbol() : base(UtilSymbolDefinitions.WixCloseApplication, null, null) |
| 46 | { |
| 47 | } |
| 48 | |
| 49 | public WixCloseApplicationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilSymbolDefinitions.WixCloseApplication, sourceLineNumber, id) |
| 50 | { |
| 51 | } |
| 52 | |
| 53 | public IntermediateField this[WixCloseApplicationSymbolFields index] => this.Fields[(int)index]; |
| 54 | |
| 55 | public string Target |
| 56 | { |
| 57 | get => this.Fields[(int)WixCloseApplicationSymbolFields.Target].AsString(); |
| 58 | set => this.Set((int)WixCloseApplicationSymbolFields.Target, value); |
| 59 | } |
| 60 | |
| 61 | public string Description |
| 62 | { |
| 63 | get => this.Fields[(int)WixCloseApplicationSymbolFields.Description].AsString(); |
| 64 | set => this.Set((int)WixCloseApplicationSymbolFields.Description, value); |
| 65 | } |
| 66 | |
| 67 | public string Condition |
| 68 | { |
| 69 | get => this.Fields[(int)WixCloseApplicationSymbolFields.Condition].AsString(); |
| 70 | set => this.Set((int)WixCloseApplicationSymbolFields.Condition, value); |
| 71 | } |
| 72 | |
| 73 | public int Attributes |
| 74 | { |
| 75 | get => this.Fields[(int)WixCloseApplicationSymbolFields.Attributes].AsNumber(); |
| 76 | set => this.Set((int)WixCloseApplicationSymbolFields.Attributes, value); |
| 77 | } |
| 78 | |
| 79 | public int? Sequence |
| 80 | { |
| 81 | get => this.Fields[(int)WixCloseApplicationSymbolFields.Sequence].AsNullableNumber(); |
| 82 | set => this.Set((int)WixCloseApplicationSymbolFields.Sequence, value); |
| 83 | } |
| 84 | |
| 85 | public string Property |
| 86 | { |
| 87 | get => this.Fields[(int)WixCloseApplicationSymbolFields.Property].AsString(); |
| 88 | set => this.Set((int)WixCloseApplicationSymbolFields.Property, value); |
| 89 | } |
| 90 | |
| 91 | public int? TerminateExitCode |
| 92 | { |
| 93 | get => this.Fields[(int)WixCloseApplicationSymbolFields.TerminateExitCode].AsNullableNumber(); |
| 94 | set => this.Set((int)WixCloseApplicationSymbolFields.TerminateExitCode, value); |
| 95 | } |
| 96 | |
| 97 | public int? Timeout |
| 98 | { |
| 99 | get => this.Fields[(int)WixCloseApplicationSymbolFields.Timeout].AsNullableNumber(); |
| 100 | set => this.Set((int)WixCloseApplicationSymbolFields.Timeout, value); |
| 101 | } |
| 102 | } |
| 103 | } |