equal
deleted
inserted
replaced
|
1 <script xmlns="http://www.nokia.com/ns/cep/script/1.0/" xmlns:cep="http://www.nokia.com/ns/cep/1.0/"> |
|
2 <!-- If alarm is not active, nothing needs to be done --> |
|
3 <if> |
|
4 <equals> |
|
5 <contextRef source='Alarm' type='Status.Active' value='false'/> |
|
6 </equals> |
|
7 <actions> |
|
8 <!-- Do nothing --> |
|
9 </actions> |
|
10 </if> |
|
11 |
|
12 <!-- Snooze alarm when device is turned upside down --> |
|
13 <elseIf> |
|
14 <contextChanged> |
|
15 <contextRef source='Sensor' type='Event.Orientation' value='DisplayDownwards'/> |
|
16 </contextChanged> |
|
17 <actions> |
|
18 <!-- snooze the alarm --> |
|
19 <AlarmUI.Snooze/> |
|
20 </actions> |
|
21 </elseIf> |
|
22 </script> |