~ubuntu-branches/ubuntu/karmic/mono-addins/karmic

« back to all changes in this revision

Viewing changes to Test/SystemInfoExtension/SystemInfoExtension.addin.xml

  • Committer: Bazaar Package Importer
  • Author(s): Mirco Bauer
  • Date: 2007-07-14 12:07:48 UTC
  • Revision ID: james.westby@ubuntu.com-20070714120748-2elczfsjlrdsrpms
Tags: upstream-0.2
ImportĀ upstreamĀ versionĀ 0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<Addin id          = "SystemInfoExtension"
 
2
       namespace   = "SimpleApp"
 
3
       name        = "SystemInfoExtension"
 
4
       author      = "Lluis Sanchez"
 
5
       copyright   = "GPL"
 
6
       description = "SystemInfoExtension"
 
7
           category    = "SimpleApp/Extensions"
 
8
       version     = "0.1.0">
 
9
 
 
10
        <Runtime>
 
11
                <Import assembly="SystemInfoExtension.dll"/>
 
12
        </Runtime>
 
13
        
 
14
        <Dependencies>
 
15
                <Addin id="Core" version="0.1.0" />
 
16
                <Addin id="CommandExtension" version="0.1.0" />
 
17
        </Dependencies>
 
18
        
 
19
        <ExtensionPoint path = "/SystemInformation/Modules" name = "Modules">
 
20
                <Description>Module information providers.</Description>
 
21
                <ExtensionNode name="Module" type="SystemInfoExtension.ModuleExtensionNode"/>
 
22
        </ExtensionPoint>
 
23
 
 
24
        <!-- Extensions -->
 
25
        
 
26
        <Extension path = "/SimpleApp/Writers">
 
27
                <Type id="SystemInfoExtension.SystemInfoWriter" />
 
28
                <Command title="System Name" command="uname -a" />
 
29
        </Extension>
 
30
        
 
31
        <Extension path = "/SimpleApp/ExtraWriters">
 
32
                <Command title="Command" command="ca1" />
 
33
                <Command id="first" title="Command" command="ca2" />
 
34
                
 
35
                <Condition id="GlobalInfo" value="no">
 
36
                        <Command title="Command" command="cn1" />
 
37
                        <Command title="Command" command="cn2" />
 
38
                        <Command title="Command" command="cn3" />
 
39
                </Condition>
 
40
        
 
41
                <Condition id="InputParameter" value="simple">
 
42
                        <Command title="Command" command="sim1" />
 
43
                        <Command title="Command" command="sim2" />
 
44
                </Condition>
 
45
                
 
46
                <ComplexCondition>
 
47
                        <Or>
 
48
                                <Condition id="InputParameter" value="x" />
 
49
                                <Condition id="InputParameter" value="y" />
 
50
                                <Condition id="GlobalInfo" value="yes" />
 
51
                        </Or>
 
52
                        <Command title="Command1" command="c1 x or y or yes" />
 
53
                        <Command title="Command2" command="c2 x or y or yes" />
 
54
                </ComplexCondition>
 
55
                
 
56
                <ComplexCondition>
 
57
                        <And>
 
58
                                <Condition id="InputParameter" value="x1" />
 
59
                                <Condition id="GlobalInfo" value="yes1" />
 
60
                        </And>
 
61
                        <Command title="Command3" command="c3 x1 and yes1" />
 
62
                        <Command title="Command4" command="c4 x1 and yes1" />
 
63
                </ComplexCondition>
 
64
                
 
65
                <ComplexCondition>
 
66
                        <Or>
 
67
                                <And>
 
68
                                        <Condition id="InputParameter" value="nx" />
 
69
                                        <Or>
 
70
                                                <Condition id="GlobalInfo" value="nx1" />
 
71
                                                <Condition id="GlobalInfo" value="nx2" />
 
72
                                        </Or>
 
73
                                </And>
 
74
                                <And>
 
75
                                        <Condition id="InputParameter" value="ny" />
 
76
                                        <Or>
 
77
                                                <Condition id="GlobalInfo" value="ny1" />
 
78
                                                <Condition id="GlobalInfo" value="ny2" />
 
79
                                        </Or>
 
80
                                </And>
 
81
                        </Or>
 
82
                        <Command title="Command5" command="cc5" />
 
83
                        <Command title="Command6" command="cc6" />
 
84
                </ComplexCondition>
 
85
                
 
86
                <Condition id="GlobalInfo" value="cnes">
 
87
                        <Command title="Command" command="cnes1" />
 
88
                        <Command title="Command" command="cnes2" />
 
89
                        <Condition id="InputParameter" value="ines1">
 
90
                                <Command title="Command" command="ines1" />
 
91
                                <Command title="Command" command="ines2" />
 
92
                        </Condition>
 
93
                </Condition>
 
94
                
 
95
                <Condition id="GlobalInfo" value="cnesOr">
 
96
                        <Command title="Command" command="cnesOr1" />
 
97
                        <Command title="Command" command="cnesOr2" />
 
98
                        <ComplexCondition>
 
99
                                <Or>
 
100
                                        <Condition id="InputParameter" value="inesOr" />
 
101
                                        <Condition id="InputParameter" value="inesOr" />
 
102
                                </Or>
 
103
                                <Command title="Command" command="inesOr1" />
 
104
                                <Command title="Command" command="inesOr2" />
 
105
                        </ComplexCondition>
 
106
                </Condition>
 
107
                
 
108
                <Condition id="GlobalInfo" value="cnesAnd">
 
109
                        <Command title="Command" command="cnesAnd1" />
 
110
                        <Command title="Command" command="cnesAnd2" />
 
111
                        <ComplexCondition>
 
112
                                <Or>
 
113
                                        <Condition id="InputParameter" value="inesAnd" />
 
114
                                        <Condition id="InputParameter" value="inesAnd" />
 
115
                                </Or>
 
116
                                <Command title="Command" command="inesAnd1" />
 
117
                                <Command title="Command" command="inesAnd2" />
 
118
                        </ComplexCondition>
 
119
                </Condition>
 
120
        </Extension>
 
121
        
 
122
        <Extension path = "/SystemInformation/Modules">
 
123
                <Module name="System information" />
 
124
        </Extension>
 
125
 
 
126
        <Extension path = "/SimpleApp/Writers2">
 
127
                <Command id="c1" title="Command" command="w1" />
 
128
                <Command id="c2" title="Command" command="w2" />
 
129
                <Condition id="GlobalInfo" value="yes2">
 
130
                        <Command id="c3" title="Command" command="cw1" />
 
131
                        <Command id="c4" title="Command" command="cw2" />
 
132
                </Condition>
 
133
        </Extension>
 
134
 
 
135
        <Extension path="/SimpleApp/NodeWithChildren/node1">
 
136
                <Child id="child1.1" type="test" insertafter="child1"/>
 
137
        </Extension>
 
138
        
 
139
</Addin>