alarmui/group/alarmui_stop.rul
author Pat Downey <patd@symbian.org>
Wed, 27 Oct 2010 15:48:34 +0100
branchRCL_3
changeset 87 6d3f83773253
parent 27 55d60436f00b
permissions -rw-r--r--
Restore caldav module from 356f28cd5ca0 (Revision 201035,Kit 201036). Bug 3883.

<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>
    
    <!-- Stop alarm when 'stop' command is received from alarmui -->
    <elseIf>
		<contextUpdated>
		    <contextRef source='AlarmUI' type='Command' value='Stop'/>
		</contextUpdated>
		<actions>
			<!-- stop the alarm -->
			<AlarmUI.Stop/>
		</actions>
    </elseIf>
</script>