aboutsummaryrefslogtreecommitdiff
path: root/src/wixext/Tuples/WixInternetShortcutTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wixext/Tuples/WixInternetShortcutTuple.cs')
-rw-r--r--src/wixext/Tuples/WixInternetShortcutTuple.cs103
1 files changed, 103 insertions, 0 deletions
diff --git a/src/wixext/Tuples/WixInternetShortcutTuple.cs b/src/wixext/Tuples/WixInternetShortcutTuple.cs
new file mode 100644
index 00000000..5c29cda6
--- /dev/null
+++ b/src/wixext/Tuples/WixInternetShortcutTuple.cs
@@ -0,0 +1,103 @@
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.Util
4{
5 using WixToolset.Data;
6 using WixToolset.Util.Tuples;
7
8 public static partial class UtilTupleDefinitions
9 {
10 public static readonly IntermediateTupleDefinition WixInternetShortcut = new IntermediateTupleDefinition(
11 UtilTupleDefinitionType.WixInternetShortcut.ToString(),
12 new[]
13 {
14 new IntermediateFieldDefinition(nameof(WixInternetShortcutTupleFields.WixInternetShortcut), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(WixInternetShortcutTupleFields.Component_), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(WixInternetShortcutTupleFields.Directory_), IntermediateFieldType.String),
17 new IntermediateFieldDefinition(nameof(WixInternetShortcutTupleFields.Name), IntermediateFieldType.String),
18 new IntermediateFieldDefinition(nameof(WixInternetShortcutTupleFields.Target), IntermediateFieldType.String),
19 new IntermediateFieldDefinition(nameof(WixInternetShortcutTupleFields.Attributes), IntermediateFieldType.Number),
20 new IntermediateFieldDefinition(nameof(WixInternetShortcutTupleFields.IconFile), IntermediateFieldType.String),
21 new IntermediateFieldDefinition(nameof(WixInternetShortcutTupleFields.IconIndex), IntermediateFieldType.Number),
22 },
23 typeof(WixInternetShortcutTuple));
24 }
25}
26
27namespace WixToolset.Util.Tuples
28{
29 using WixToolset.Data;
30
31 public enum WixInternetShortcutTupleFields
32 {
33 WixInternetShortcut,
34 Component_,
35 Directory_,
36 Name,
37 Target,
38 Attributes,
39 IconFile,
40 IconIndex,
41 }
42
43 public class WixInternetShortcutTuple : IntermediateTuple
44 {
45 public WixInternetShortcutTuple() : base(UtilTupleDefinitions.WixInternetShortcut, null, null)
46 {
47 }
48
49 public WixInternetShortcutTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.WixInternetShortcut, sourceLineNumber, id)
50 {
51 }
52
53 public IntermediateField this[WixInternetShortcutTupleFields index] => this.Fields[(int)index];
54
55 public string WixInternetShortcut
56 {
57 get => this.Fields[(int)WixInternetShortcutTupleFields.WixInternetShortcut].AsString();
58 set => this.Set((int)WixInternetShortcutTupleFields.WixInternetShortcut, value);
59 }
60
61 public string Component_
62 {
63 get => this.Fields[(int)WixInternetShortcutTupleFields.Component_].AsString();
64 set => this.Set((int)WixInternetShortcutTupleFields.Component_, value);
65 }
66
67 public string Directory_
68 {
69 get => this.Fields[(int)WixInternetShortcutTupleFields.Directory_].AsString();
70 set => this.Set((int)WixInternetShortcutTupleFields.Directory_, value);
71 }
72
73 public string Name
74 {
75 get => this.Fields[(int)WixInternetShortcutTupleFields.Name].AsString();
76 set => this.Set((int)WixInternetShortcutTupleFields.Name, value);
77 }
78
79 public string Target
80 {
81 get => this.Fields[(int)WixInternetShortcutTupleFields.Target].AsString();
82 set => this.Set((int)WixInternetShortcutTupleFields.Target, value);
83 }
84
85 public int Attributes
86 {
87 get => this.Fields[(int)WixInternetShortcutTupleFields.Attributes].AsNumber();
88 set => this.Set((int)WixInternetShortcutTupleFields.Attributes, value);
89 }
90
91 public string IconFile
92 {
93 get => this.Fields[(int)WixInternetShortcutTupleFields.IconFile].AsString();
94 set => this.Set((int)WixInternetShortcutTupleFields.IconFile, value);
95 }
96
97 public int IconIndex
98 {
99 get => this.Fields[(int)WixInternetShortcutTupleFields.IconIndex].AsNumber();
100 set => this.Set((int)WixInternetShortcutTupleFields.IconIndex, value);
101 }
102 }
103} \ No newline at end of file