api: new source for the CDMA Base Station location

This commit is contained in:
Aleksander Morgado
2012-10-31 12:34:07 +01:00
parent 72068598e5
commit 24c40e32bd
2 changed files with 26 additions and 0 deletions

View File

@@ -493,6 +493,7 @@ typedef enum { /*< underscore_name=mm_sms_storage >*/
* @MM_MODEM_LOCATION_SOURCE_3GPP_LAC_CI: Location Area Code and Cell ID. * @MM_MODEM_LOCATION_SOURCE_3GPP_LAC_CI: Location Area Code and Cell ID.
* @MM_MODEM_LOCATION_SOURCE_GPS_RAW: GPS location given by predefined keys. * @MM_MODEM_LOCATION_SOURCE_GPS_RAW: GPS location given by predefined keys.
* @MM_MODEM_LOCATION_SOURCE_GPS_NMEA: GPS location given as NMEA traces. * @MM_MODEM_LOCATION_SOURCE_GPS_NMEA: GPS location given as NMEA traces.
* @MM_MODEM_LOCATION_SOURCE_CDMA_BS: CDMA base station position.
* *
* Sources of location information supported by the modem. * Sources of location information supported by the modem.
*/ */
@@ -501,6 +502,7 @@ typedef enum { /*< underscore_name=mm_modem_location_source >*/
MM_MODEM_LOCATION_SOURCE_3GPP_LAC_CI = 1 << 0, MM_MODEM_LOCATION_SOURCE_3GPP_LAC_CI = 1 << 0,
MM_MODEM_LOCATION_SOURCE_GPS_RAW = 1 << 1, MM_MODEM_LOCATION_SOURCE_GPS_RAW = 1 << 1,
MM_MODEM_LOCATION_SOURCE_GPS_NMEA = 1 << 2, MM_MODEM_LOCATION_SOURCE_GPS_NMEA = 1 << 2,
MM_MODEM_LOCATION_SOURCE_CDMA_BS = 1 << 3,
} MMModemLocationSource; } MMModemLocationSource;
/** /**

View File

@@ -237,6 +237,30 @@
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry><term><link linkend="MM-MODEM-LOCATION-SOURCE-CDMA-BS:CAPS">MM_MODEM_LOCATION_SOURCE_CDMA_BS</link></term>
<listitem>
<para>
Devices supporting this
capability return a D-Bus dictionary (signature <literal>"a{sv}"</literal>) mapping well-known
keys to values with defined formats.
</para>
<para>
The allowed key/value pairs and their formats are:
</para>
<variablelist>
<varlistentry><term><literal>"latitude"</literal></term>
<listitem>
(Required) Latitude in Decimal Degrees (positive numbers mean N quadrasphere, negative mean S quadrasphere), given as a double value (signature <literal>"d"</literal>). e.g. <literal>38.889722</literal>, meaning 38d 53' 22" N.
</listitem>
</varlistentry>
<varlistentry><term><literal>"longitude"</literal></term>
<listitem>
(Required) Longitude in Decimal Degrees (positive numbers mean E quadrasphere, negative mean W quadrasphere), given as a double value (signature <literal>"d"</literal>). e.g. <literal>-77.008889</literal>, meaning 77d 0' 32" W.
</listitem>
</varlistentry>
</variablelist>
</listitem>
</varlistentry>
</variablelist> </variablelist>
--> -->
<property name="Location" type="a{uv}" access="read" /> <property name="Location" type="a{uv}" access="read" />