freesmartphone.org Events Interface
Description
The Events interface provides access to the rules. All the rules are specified into the rule file : /etc/freesmartphone/oevents/rules.yaml. See the file itself for more information about the syntax of the rules.
Namespace
org.freesmartphone.Events
Methods
Signals
None
Properties
None
Errors
None
Methods
AddRule ( s )
Description: Parse a rule string and add it into the rule list.
Parameters:*
s: rule The rule in the same format used by the rules file.
RemoveRule ( s )
Description: Remove a rule by name.
Parameters:*
s: name The name of the rule, as specified by the ‘name’ attribute of the rule.
TriggerTest ( sb )
Description: Trigger or untrigger all the ‘Test’ triggers with matching names.
Parameters:*
s: name the name of the Test triggers to trigger/untrigger.
b: value True to trigger, False to untrigger.