aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRob Taylor <rob.taylor@codethink.co.uk>2009-04-29 15:35:57 +0100
committerRob Taylor <rob.taylor@codethink.co.uk>2009-04-29 15:35:57 +0100
commita0dd2329a073f22bfffa36ecd7ebbaaf0e062484 (patch)
treee0e7147701fa9c3f2cd43aaaa47598021a02bd1d /spec
parent309e38a5bacb012379c63ba55f9d2a0bb3c42d68 (diff)
parentdf98a54b860cf3fd23e36e3713f13fef6d4c3e30 (diff)
Merge branch 'minicontextd-battery'
Merge Marja's new contexd with hal-based battery provider. Removed 'Context.' prefixes where necessary. Signed-off-by: Rob Taylor <rob.taylor@codethink.co.uk>
Diffstat (limited to 'spec')
-rw-r--r--spec/context.xml43
1 files changed, 43 insertions, 0 deletions
diff --git a/spec/context.xml b/spec/context.xml
index 4b7ced56..ba9df4c6 100644
--- a/spec/context.xml
+++ b/spec/context.xml
@@ -93,6 +93,49 @@ appliciable to the current location, they will be unavailable.
<doc>The localized name of the current planet (or dwarf planet), as a string.</doc>
</key>
</node>
+ <node name="Battery">
+ <doc>
+Battery
+-------
+
+Information about the batteries of the device.
+ </doc>
+ <key name="ChargePercentage" type="INT">
+ <doc>
+The average charge level of the currently connected batteries.
+Expressed as percentage of the maximum charge level.
+ </doc>
+ </key>
+ <key name="OnBattery" type="TRUTH">
+ <doc>
+Whether or not the device is currently running on battery power,
+i.e., whether at least one of its batteries is currently discharging.
+ </doc>
+ </key>
+ <key name="LowBattery" type="TRUTH">
+ <doc>
+Whether or not the device is currently running on low battery power.
+True if OnBattery is true and the charge levels of all
+batteries are below 10%.
+ </doc>
+ </key>
+ <key name="IsCharging" type="TRUTH">
+ <doc>
+Whether or not the device is currently charging at least one of its batteries.
+ </doc>
+ </key>
+ <key name="TimeUntilLow" type="INT">
+ <doc>
+Estimates the time that the device can run on battery before the property
+OnLowBattery becomes true. In seconds.
+ </doc>
+ </key>
+ <key name="TimeUntilFull" type="INT">
+ <doc>
+Estimates the needed charging time of the device. In seconds.
+ </doc>
+ </key>
+ </node>
<node name="Connectivity">
<doc>
Network connectivity