phoneapp/silenceactionplugin/data/silence.rul
branchRCL_3
changeset 34 b68fcd923911
parent 31 ba54057fe027
child 35 4853f386dec0
child 39 b8d67d6176f5
equal deleted inserted replaced
31:ba54057fe027 34:b68fcd923911
     1 <script xmlns="http://www.nokia.com/ns/cep/script/1.0/"
       
     2 xmlns:cep="http://www.nokia.com/ns/cep/1.0/">
       
     3 
       
     4     <!-- Check if we have incoming call and we receive display down orientation event -->
       
     5     <if>
       
     6         <and>
       
     7             <!-- Must have a ringin call and receive orientation event from sensor -->
       
     8             <equals>
       
     9                 <contextRef source='Call' type='State'/>
       
    10                 <string>Ringing</string>
       
    11             </equals>
       
    12             <equals>
       
    13                 <contextRef source='Sensor' type='Setting.Active'/>
       
    14                 <string>On</string>
       
    15             </equals>
       
    16             <!-- Check that turning interaction is set -->
       
    17             <equals>
       
    18                 <contextRef source='Sensor' type='Setting.TurningInteraction.SilenceCalls'/>
       
    19                 <string>On</string>
       
    20             </equals>
       
    21             <!-- ...and previous orientation is not 'Undefined' ... -->
       
    22             <notEqual>
       
    23                 <contextRef source='Sensor' type='Event.Orientation.Previous'/>
       
    24                 <string>Undefined</string>
       
    25             </notEqual>
       
    26             <contextChanged>
       
    27                 <contextRef source='Sensor' type='Event.Orientation'/>
       
    28             </contextChanged>
       
    29             <equals>
       
    30                 <contextRef source='Sensor' type='Event.Orientation'/>
       
    31                 <string>DisplayDownwards</string>
       
    32             </equals>
       
    33         </and>
       
    34         <actions>
       
    35             <!-- DEBUG -->
       
    36             <!-- <publishContext><contextRef source="Test" type="Log" value="silence.rul - 01 silence call only"/></publishContext> -->
       
    37 
       
    38             <!-- Silence ringing tone -->
       
    39             <Phone Command='Silence'/>
       
    40             <!-- Vibra feedback -->
       
    41             <Vibra Mode='Start' Delay='0' Repeats='2' RepeatInterval='200' Duration='50' Intensity='50'/>
       
    42         </actions>
       
    43     </if>
       
    44 
       
    45 </script>