| 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.ComPlus |
| 4 | { |
| 5 | using WixToolset.Data; |
| 6 | using WixToolset.ComPlus.Symbols; |
| 7 | |
| 8 | public static partial class ComPlusSymbolDefinitions |
| 9 | { |
| 10 | public static readonly IntermediateSymbolDefinition ComPlusSubscription = new IntermediateSymbolDefinition( |
| 11 | ComPlusSymbolDefinitionType.ComPlusSubscription.ToString(), |
| 12 | new[] |
| 13 | { |
| 14 | new IntermediateFieldDefinition(nameof(ComPlusSubscriptionSymbolFields.Subscription), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(ComPlusSubscriptionSymbolFields.ComPlusComponentRef), IntermediateFieldType.String), |
| 16 | new IntermediateFieldDefinition(nameof(ComPlusSubscriptionSymbolFields.ComponentRef), IntermediateFieldType.String), |
| 17 | new IntermediateFieldDefinition(nameof(ComPlusSubscriptionSymbolFields.SubscriptionId), IntermediateFieldType.String), |
| 18 | new IntermediateFieldDefinition(nameof(ComPlusSubscriptionSymbolFields.Name), IntermediateFieldType.String), |
| 19 | new IntermediateFieldDefinition(nameof(ComPlusSubscriptionSymbolFields.EventCLSID), IntermediateFieldType.String), |
| 20 | new IntermediateFieldDefinition(nameof(ComPlusSubscriptionSymbolFields.PublisherID), IntermediateFieldType.String), |
| 21 | }, |
| 22 | typeof(ComPlusSubscriptionSymbol)); |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | namespace WixToolset.ComPlus.Symbols |
| 27 | { |
| 28 | using WixToolset.Data; |
| 29 | |
| 30 | public enum ComPlusSubscriptionSymbolFields |
| 31 | { |
| 32 | Subscription, |
| 33 | ComPlusComponentRef, |
| 34 | ComponentRef, |
| 35 | SubscriptionId, |
| 36 | Name, |
| 37 | EventCLSID, |
| 38 | PublisherID, |
| 39 | } |
| 40 | |
| 41 | public class ComPlusSubscriptionSymbol : IntermediateSymbol |
| 42 | { |
| 43 | public ComPlusSubscriptionSymbol() : base(ComPlusSymbolDefinitions.ComPlusSubscription, null, null) |
| 44 | { |
| 45 | } |
| 46 | |
| 47 | public ComPlusSubscriptionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(ComPlusSymbolDefinitions.ComPlusSubscription, sourceLineNumber, id) |
| 48 | { |
| 49 | } |
| 50 | |
| 51 | public IntermediateField this[ComPlusSubscriptionSymbolFields index] => this.Fields[(int)index]; |
| 52 | |
| 53 | public string Subscription |
| 54 | { |
| 55 | get => this.Fields[(int)ComPlusSubscriptionSymbolFields.Subscription].AsString(); |
| 56 | set => this.Set((int)ComPlusSubscriptionSymbolFields.Subscription, value); |
| 57 | } |
| 58 | |
| 59 | public string ComPlusComponentRef |
| 60 | { |
| 61 | get => this.Fields[(int)ComPlusSubscriptionSymbolFields.ComPlusComponentRef].AsString(); |
| 62 | set => this.Set((int)ComPlusSubscriptionSymbolFields.ComPlusComponentRef, value); |
| 63 | } |
| 64 | |
| 65 | public string ComponentRef |
| 66 | { |
| 67 | get => this.Fields[(int)ComPlusSubscriptionSymbolFields.ComponentRef].AsString(); |
| 68 | set => this.Set((int)ComPlusSubscriptionSymbolFields.ComponentRef, value); |
| 69 | } |
| 70 | |
| 71 | public string SubscriptionId |
| 72 | { |
| 73 | get => this.Fields[(int)ComPlusSubscriptionSymbolFields.SubscriptionId].AsString(); |
| 74 | set => this.Set((int)ComPlusSubscriptionSymbolFields.SubscriptionId, value); |
| 75 | } |
| 76 | |
| 77 | public string Name |
| 78 | { |
| 79 | get => this.Fields[(int)ComPlusSubscriptionSymbolFields.Name].AsString(); |
| 80 | set => this.Set((int)ComPlusSubscriptionSymbolFields.Name, value); |
| 81 | } |
| 82 | |
| 83 | public string EventCLSID |
| 84 | { |
| 85 | get => this.Fields[(int)ComPlusSubscriptionSymbolFields.EventCLSID].AsString(); |
| 86 | set => this.Set((int)ComPlusSubscriptionSymbolFields.EventCLSID, value); |
| 87 | } |
| 88 | |
| 89 | public string PublisherID |
| 90 | { |
| 91 | get => this.Fields[(int)ComPlusSubscriptionSymbolFields.PublisherID].AsString(); |
| 92 | set => this.Set((int)ComPlusSubscriptionSymbolFields.PublisherID, value); |
| 93 | } |
| 94 | } |
| 95 | } |