alarmui/group/alarmui_snooze.rul
author Pat Downey <patd@symbian.org>
Tue, 18 May 2010 16:01:34 +0100
branchRCL_3
changeset 29 ae323dbb990e
parent 27 55d60436f00b
child 30 d68a4b5d5885
permissions -rw-r--r--
Re-merge CalDav contribution (bug 208).

<script xmlns="http://www.nokia.com/ns/cep/script/1.0/" xmlns:cep="http://www.nokia.com/ns/cep/1.0/">
    <!-- If alarm is not active, nothing needs to be done -->
    <if>
        <equals>
            <contextRef source='Alarm' type='Status.Active' value='false'/>
        </equals>
        <actions>
            <!-- Do nothing -->
        </actions>        
    </if>
    
    <!-- Snooze alarm when device is turned upside down -->
    <elseIf>
		<contextChanged>
		    <contextRef source='Sensor' type='Event.Orientation' value='DisplayDownwards'/>
		</contextChanged>
        <actions>
           <!-- snooze the alarm -->
            <AlarmUI.Snooze/>
        </actions>
    </elseIf>
</script>