aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMarius Vollmer <marius.vollmer@nokia.com>2009-04-28 13:58:24 +0300
committerMarius Vollmer <marius.vollmer@nokia.com>2009-04-28 13:58:24 +0300
commitd89ade521d3bd93b8bdb79ef6e6218384dc66d5d (patch)
tree81f1495f01fa37b13accb886d2b280d889f39b9d /spec
parente5cce2323cf710053776fadd9e7b1f4b703fc05c (diff)
Revert "Use new-style types for core properties."
This reverts commit 94508846848509808464cf788641dfda7379335e. Reverting "Use new-style types for core properties."
Diffstat (limited to 'spec')
-rw-r--r--spec/context.xml75
1 files changed, 18 insertions, 57 deletions
diff --git a/spec/context.xml b/spec/context.xml
index e1ccc7d1..c6228c5f 100644
--- a/spec/context.xml
+++ b/spec/context.xml
@@ -23,15 +23,7 @@ Display screens
These properties talk about the display screens of the device.
</doc>
- <key name="TopEdge">
- <type>
- <string-enum>
- <top/>
- <bottom/>
- <left/>
- <right/>
- </string-enum>
- </type>
+ <key name="TopEdge" type="STRING">
<doc>
The edge of the main display screen where the user expects
the top-most UI elements to be. Possible values are the
@@ -40,7 +32,7 @@ the edges of the screen in its normal orientation as defined
by the graphics hardware. _(stable)_
</doc>
</key>
- <key name="IsCovered" type="bool">
+ <key name="IsCovered" type="TRUTH">
<doc>
Whether or not the main display screen is covered and can thus not be
seen by the user. This might mean that the device is laying face down
@@ -56,40 +48,40 @@ Location
Best effort location information. If any of the keys are not
appliciable to the current location, they will be unavailable.
</doc>
- <key name="Latitude" type="double">
+ <key name="Latitude" type="DOUBLE">
<doc>The latitude of the current position in degrees.</doc>
</key>
- <key name="Longitude" type="double">
+ <key name="Longitude" type="DOUBLE">
<doc>The longitude of the current position in degrees.</doc>
</key>
- <key name="Altitude" type="double">
+ <key name="Altitide" type="DOUBLE">
<doc>The altitude of the current position in meters.</doc>
</key>
- <key name="Street" type="string">
+ <key name="Street" type="STRING">
<doc>The street nearest the location of the device.</doc>
</key>
- <key name="PostalCode" type="string">
+ <key name="PostalCode" type="STRING">
<doc>The postcode of the location of the device.</doc>
</key>
- <key name="Area" type="string">
+ <key name="Area" type="STRING">
<doc>The name of the local area where the device is, for example a neighborhood or campus.</doc>
</key>
- <key name="Locality" type="string">
+ <key name="Locality" type="STRING">
<doc>The name of the village, town or city where the device is.</doc>
</key>
- <key name="Region" type="string">
+ <key name="Region" type="STRING">
<doc>The administrative region which contains the location of the device.</doc>
</key>
- <key name="Country" type="string">
+ <key name="Country" type="STRING">
<doc>The country which contains the location of the device.</doc>
</key>
- <key name="CountryCode" type="string">
+ <key name="CountryCode" type="STRING">
<doc>The ISO 3166 two letter country code of the country which contains the location of the device.</doc>
</key>
- <key name="Continent" type="string">
+ <key name="Continent" type="STRING">
<doc>The localized name of the current continent, as a string.</doc>
</key>
- <key name="Planet" type="string">
+ <key name="Planet" type="STRING">
<doc>The localized name of the current planet (or dwarf planet), as a string.</doc>
</key>
</node>
@@ -100,11 +92,6 @@ Network connectivity
Information about the network connectivity of the device.
</doc>
- <key name="SignalStrength" type="percentage">
- <doc>
- The strength of the radio connection.
- </doc>
- </key>
</node>
<node name="Environment">
<doc>
@@ -113,48 +100,22 @@ Environment
Information about the environment the device is in.
</doc>
- <key name="IsDark" type="bool">
+ <key name="IsDark" type="TRUTH">
<doc>
Whether or not it is dark.
</doc>
</key>
- <key name="SunRise" type="time">
+ <key name="SunRise" type="INT">
<doc>
The time of sun rise.
</doc>
</key>
- <key name="SunSet" type="time">
+ <key name="SunSet" type="INT">
<doc>
The time of sun set.
</doc>
</key>
- <key name="Weather">
- <type>
- <map>
- <allowed-keys>
- <Condition type="string">
- <doc>
-The current weather condition, as a localized, human readable string.
-Examples are "Cloudy", "Raining", etc.
- </doc>
- </Condition>
- <ConditionCode>
- <type>
- <string-enum>
- <cloudy/>
- ...
- </string-enum>
- </type>
- <doc>
-The current weather condition, as a symbolic string. The set of
-symbols is to be defined, but it will be fixed and quite small so that
-you can provide an icon for each of them, etc.
- </doc>
- </ConditionCode>
- ...
- </allowed-keys>
- </map>
- </type>
+ <key name="Weather" type="STRING">
<doc>
The current weather. See http://www.ominous-valve.com/wx_codes.txt for
more information about codifying weather conditions. We should lift