Signed-off-by: Antonio Ospite <[email protected]>
---

This is only an initial version to make frameworkd-config-shr build in OE for
a780. See http://bugs.openembedded.org/show_bug.cgi?id=5386 for more details.

Once this is applied, the OE recipe should be updated as well.

Thanks,
   Antonio Ospite
   http://ao2.it

 frameworkd/frameworkd-config-shr/a780/rules.yaml |   57 ++++++++++++++++++++++
 1 files changed, 57 insertions(+), 0 deletions(-)
 create mode 100644 frameworkd/frameworkd-config-shr/a780/rules.yaml

diff --git a/frameworkd/frameworkd-config-shr/a780/rules.yaml 
b/frameworkd/frameworkd-config-shr/a780/rules.yaml
new file mode 100644
index 0000000..61cbb74
--- /dev/null
+++ b/frameworkd/frameworkd-config-shr/a780/rules.yaml
@@ -0,0 +1,57 @@
+
+# This file is in YAML format (http://www.yaml.org/)
+# We define a list of rules that will be automatically loaded
+# When we start the oevents module of the framework daemon
+#
+# The attributes of a rule are :
+# - trigger     : trigger object
+# - filters     : filters object or list of filters objects
+# - actions     : action object or list of actions objects
+#
+# We define the following functions :
+# - CallStatus()            : create a trigger object activated on a call 
status event
+# - PowerStatus()           : create a trigger object activated on a power 
status event
+# - HasAttr(name, value)    : create a filter that accept signal with a given 
attribute
+# - Not(filter)             : create a neg filter
+# - PlaySound(file)         : Action that starts to play an audio file
+# - StopSound(file)         : Action that stop an audio file
+# - SetScenario(name)       : Action that sets an audio scenario
+# - StartVibration
+# - StopVibration
+# - RingTone(cmd)           : cmd can be 'start' or 'stop'
+# - Time(hour, min)         : create a trigger activated at the given time
+# - Debug(msg)              : Action that prints a debug message (only for 
debuging)
+-
+    #
+    # Call -> Audio Scenario Handling
+    #
+    trigger: IncomingMessage()
+    actions: MessageTone(play)
+
+-
+    while: CallListContains("incoming")
+    filters: Not(CallListContains("active"))
+    actions:
+             - RingTone()
+             - SetLed("a780__keypad", "blink")
+             - OccupyResource(Display)
+#-
+#    while: CallStatus()
+#    filters:
+#            - Or(Or(HasAttr(status, "outgoing"), HasAttr(status, "active")), 
And(HasAttr(status, "incoming"), CallListContains("active")))
+#            - Not(BTHeadsetIsConnected())
+#    actions:
+#            - SetScenario(gsmhandset)
+
+-
+    while: PowerStatus()
+    filters: HasAttr(status, "charging")
+    actions: SetLed("a780__aux", "blink")
+-
+    while: PowerStatus()
+    filters: HasAttr(status, "full")
+    actions: SetLed("a780__aux", "light")
+-
+    trigger: PowerStatus()
+    filters: HasAttr(status, "empty")
+    actions: Command('poweroff')
-- 
1.6.6.1

_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel

Reply via email to