alarmui/group/alarmui_silence.rul
author Dario Sestito <darios@symbian.org>
Mon, 12 Jul 2010 17:26:07 +0100
branchRCL_3
changeset 52 e3c9f8706792
parent 30 d68a4b5d5885
permissions -rw-r--r--
Remerge caldav + fixes (i.e. bug 208, bug 1908, bug 2129, bug 2221, bug 2801)

<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>
    
    <!-- Silence alarm if 'silence' command is received -->
    <elseIf>
        <!-- ...and we got a new stop command -->
        <contextUpdated>
            <contextRef source='AlarmUI' type='Command' value='Silence'/>
        </contextUpdated>
        <actions>
           <!-- silence the alarm -->
            <AlarmUI.Silence/>
        </actions>
    </elseIf>
</script>