Debian Codegraph @

xbmc/addons/gui/skin/test/testdata/Timers.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <timers>
3 <timer>
4 <name>timer1</name>
5 <description>This is a valid timer with multiple actions and resets everytime it is started</description>
6 <start reset="true">true</start>
7 <reset>true</reset>
8 <stop>true</stop>
9 <onstart>Notification(timer1, notification 1, 1000)</onstart>
10 <onstart>Notification(timer1, notification 2, 1000)</onstart>
11 <onstop>Notification(timer1, notification 3, 1000)</onstop>
12 <onstop>Notification(timer1, notification 4, 1000)</onstop>
13 </timer>
14 <timer>
15 <name>timer2</name>
16 <description>This is a valid timer without reset on start</description>
17 <start>true</start>
18 <reset>true</reset>
19 <stop>true</stop>
20 <onstart>Notification(timer1, notification 1, 1000)</onstart>
21 <onstop>Notification(timer1, notification 2, 1000)</onstop>
22 </timer>
23 <timer>
24 <name>timer3</name>
25 <description>This is a valid timer fully managed from builtins</description>
26 </timer>
27 <timer>
28 <name>timer4</name>
29 <description>This is a valid timer fully managed from builtins (and executes a few bultins)</description>
30 <onstart>Notification(timer1, notification 1, 1000)</onstart>
31 <onstop>Notification(timer1, notification 2, 1000)</onstop>
32 </timer>
33 <timer>
34 <name>timer5</name>
35 <description>This is a timer with conditional execution on builtins</description>
36 <onstart condition="Integer.IsEven(Integer.ValueOf(2))">Notification(timer1, notification 1, 1000)</onstart>
37 <onstop condition="true">Notification(timer1, notification 2, 1000)</onstop>
38 </timer>
39 <timer>
40 <name>timer6</name>
41 <description>This is a timer only with the name defined, all other props empty</description>
42 <start></start>
43 <reset></reset>
44 <stop></stop>
45 <onstart condition=""></onstart>
46 <onstop condition=""></onstop>
47 </timer>
48 <timer>
49 <name></name>
50 <description>This is an invalid timer (name empty)</description>
51 <start>true</start>
52 <stop>true</stop>
53 </timer>
54 <timer>
55 <description>This is an invalid timer (no name element)</description>
56 <start>true</start>
57 <stop>true</stop>
58 </timer>
59 </timers>