aboutsummaryrefslogtreecommitdiff
path: root/introspection
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2010-03-05 17:52:55 -0800
committerDan Williams <dcbw@redhat.com>2010-03-05 17:52:55 -0800
commit12a8a63fc1510d1af79581dc66e2b48a8eefcdb6 (patch)
treeeb68a212a82b9742b522cb50a45e50359e75d50e /introspection
parentad7bbb2f160d52ff581c334ac85c29d10b3e4451 (diff)
api: first draft of Location information API
NOT FINAL; need to discuss with Pablo and others and actually implement it before declaring it final.
Diffstat (limited to 'introspection')
-rw-r--r--introspection/Makefile.am3
-rw-r--r--introspection/all.xml1
-rw-r--r--introspection/mm-modem-location.xml70
3 files changed, 73 insertions, 1 deletions
diff --git a/introspection/Makefile.am b/introspection/Makefile.am
index 404c1d93..175162cc 100644
--- a/introspection/Makefile.am
+++ b/introspection/Makefile.am
@@ -13,4 +13,5 @@ EXTRA_DIST = \
mm-modem-gsm-network.xml \
mm-modem-gsm-sms.xml \
mm-modem-simple.xml \
- mm-serial-error.xml
+ mm-serial-error.xml \
+ mm-modem-location.xml
diff --git a/introspection/all.xml b/introspection/all.xml
index 426baf0e..30725c73 100644
--- a/introspection/all.xml
+++ b/introspection/all.xml
@@ -25,6 +25,7 @@
<xi:include href="mm-manager.xml"/>
<xi:include href="mm-modem.xml"/>
<xi:include href="mm-modem-simple.xml"/>
+ <xi:include href="mm-modem-location.xml"/>
<xi:include href="mm-modem-cdma.xml"/>
<xi:include href="mm-modem-gsm.xml"/>
<xi:include href="mm-modem-gsm-card.xml"/>
diff --git a/introspection/mm-modem-location.xml b/introspection/mm-modem-location.xml
new file mode 100644
index 00000000..ccd1e3a4
--- /dev/null
+++ b/introspection/mm-modem-location.xml
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<node name="/" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
+ <interface name="org.freedesktop.ModemManager.Modem.Location">
+
+ <property name="Capabilities" type="u" access="read" tp:type="MM_MODEM_LOCATION_CAPABILITIES">
+ <tp:docstring>
+ Location capabilities of the device.
+ </tp:docstring>
+ </property>
+
+ <property name="Enabled" type="b" access="read">
+ <tp:docstring>
+ TRUE if location information gathering is enabled for this device, FALSE if it is disabled. When disabled, the device will not provide location information.
+ </tp:docstring>
+ </property>
+
+ <method name="Enable">
+ <tp:docstring>
+ Enable or disable location information gathering. When enabled, *all* clients can retrieve location information unless restricted through D-Bus service permissions; this could allow malicious applications to track your location so use this functionality carefully.
+ </tp:docstring>
+ <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
+ <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_modem_location_enable"/>
+ <arg name="enable" type="b" direction="in">
+ <tp:docstring>
+ TRUE to enable location information gathering, FALSE to disable.
+ </tp:docstring>
+ </arg>
+ </method>
+
+ <property name="Location" type="a{uv}" access="read" tp:type="Location_Information_Map">
+ <tp:docstring>
+ Dict of available location information when location information gathering is enabled. If the modem supports multiple location types it may return more than one here.
+ </tp:docstring>
+ </property>
+
+ <tp:mapping name="Location_Information_Map">
+ <tp:docstring>
+ A mapping from unsigned integers to a variant representing location information.
+ </tp:docstring>
+ <tp:member type="u" name="Type" tp:type="MM_MODEM_LOCATION_CAPABILITIES">
+ <tp:docstring>
+ Identifies the type and format of the associated location information. Contrary to the value description, this is not a bitfield but uses the same values as the MM_MODEM_LOCATION_CAPABILITIES bitfield.
+ </tp:docstring>
+ </tp:member>
+ <tp:member type="v" name="Data">
+ <tp:docstring>
+ Contains type-specific location information. GSM_LAC_CI data is a string with the format "LAC,CI" (ex "84CD,00D30156") while GPS_NMEA is a string in NMEA-compatible format.
+ </tp:docstring>
+ </tp:member>
+ </tp:mapping>
+
+ <tp:flags name="MM_MODEM_LOCATION_CAPABILITIES" value-prefix="MM_MODEM_LOCATION_CAPABILITY" type="u">
+ <tp:flag suffix="UNKNOWN" value="0x0">
+ <tp:docstring>Unknown or no capabilties.</tp:docstring>
+ </tp:flag>
+ <tp:flag suffix="ANY" value="0x1">
+ <tp:docstring>Reserved.</tp:docstring>
+ </tp:flag>
+ <tp:flag suffix="GPS_NMEA" value="0x2">
+ <tp:docstring>The device is capable of providing GPS NMEA-format location information.</tp:docstring>
+ </tp:flag>
+ <tp:flag suffix="GSM_LAC_CI" value="0x4">
+ <tp:docstring>The device is capable of providing GSM Location Area Code/Cell ID location information.</tp:docstring>
+ </tp:flag>
+ </tp:flags>
+
+ </interface>
+</node>
+