diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-26 19:24:25 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-29 09:17:53 +0200 |
commit | ceefa2c356ae270c7dda4b5e771d225502d4913d (patch) | |
tree | 5caa9ef50a9d633d00a91a371f165b0af72acd86 /introspection/org.freedesktop.ModemManager1.Modem.Location.xml | |
parent | 090e3492095cf6d663bfb3f83b3ed0cb19121f1a (diff) |
location: rework to allow multiple location sources
Location sources can now be enabled or disabled by using the mask of sources
given in Setup() (similar previous Enable()).
Diffstat (limited to 'introspection/org.freedesktop.ModemManager1.Modem.Location.xml')
-rw-r--r-- | introspection/org.freedesktop.ModemManager1.Modem.Location.xml | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/introspection/org.freedesktop.ModemManager1.Modem.Location.xml b/introspection/org.freedesktop.ModemManager1.Modem.Location.xml index 4673a28a..b19283e1 100644 --- a/introspection/org.freedesktop.ModemManager1.Modem.Location.xml +++ b/introspection/org.freedesktop.ModemManager1.Modem.Location.xml @@ -23,12 +23,13 @@ <interface name="org.freedesktop.ModemManager1.Modem.Location"> <!-- - Enable: - @enable: %TRUE to enable location information gathering, %FALSE to disable. + Setup: + @sources: Bitmask of <link linkend="MMModemLocationSource">MMModemLocationSource</link> flags, specifying which sources should get enabled or disabled. <link linkend="MM-MODEM-LOCATION-SOURCE-NONE:CAPS">MM_MODEM_LOCATION_SOURCE_NONE</link> will disable all location gathering. @signal_location: Flag to control whether the device emits signals with the new location information. This argument is ignored when disabling location information gathering. - Enable or disable location information gathering. This method may - require the client to authenticate itself. + Configure the location sources to use when gathering location + information. Also enable or disable location information gathering. + This method may require the client to authenticate itself. When signals are emitted, any client application (including malicious ones!) can listen for location updates unless D-Bus permissions restrict @@ -40,8 +41,8 @@ ) to get location information. --> - <method name="Enable"> - <arg name="enable" type="b" direction="in" /> + <method name="Setup"> + <arg name="sources" type="u" direction="in" /> <arg name="signal_location" type="b" direction="in" /> </method> @@ -64,18 +65,18 @@ Capabilities: Bitmask of <link linkend="MMModemLocationSource">MMModemLocationSource</link> - values, specifying the location retrieval capabilities of the device. + values, specifying the supported location sources. --> <property name="Capabilities" type="u" access="read" /> <!-- Enabled: - %TRUE if location information gathering is enabled for this device, - %FALSE if it is disabled. When disabled, the device will not provide - location information. + Bitmask specifying which of the supported + <link linkend="MMModemLocationSource">MMModemLocationSource</link> + location sources is currently enabled in the device. --> - <property name="Enabled" type="b" access="read" /> + <property name="Enabled" type="u" access="read" /> <!-- SignalsLocation: @@ -84,7 +85,7 @@ location updates will not be emitted. See the - <link linkend="gdbus-method-org-freedesktop-ModemManager1-Modem-Location.Enable">Enable()</link> + <link linkend="gdbus-method-org-freedesktop-ModemManager1-Modem-Location.Setup">Setup()</link> method for more information. --> <property name="SignalsLocation" type="b" access="read" /> |