diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2011-09-30 15:01:16 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2011-10-01 15:23:08 +0200 |
commit | b5393091de71b8a7fadd87f0762c4efebb6f5fd3 (patch) | |
tree | 479fc9cd6eff5d1e72c9929b394b7e145617e273 | |
parent | dbc64d83ba74990af73283a4650327b21c861d60 (diff) |
api: new SetAllowedModes() to be able to modify the allowed mode in the modem
Changing the allowed mode of a modem may fail, for example if trying to set a
mode which is not in the modes reported as Supported by the modem. Therefore, we
need an explicit SetAllowedModes() method with proper error reporting instead of
making the property writable.
-rw-r--r-- | new/org.freedesktop.ModemManager1.Modem.xml | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/new/org.freedesktop.ModemManager1.Modem.xml b/new/org.freedesktop.ModemManager1.Modem.xml index 450a7a73..32666c2f 100644 --- a/new/org.freedesktop.ModemManager1.Modem.xml +++ b/new/org.freedesktop.ModemManager1.Modem.xml @@ -104,6 +104,20 @@ </arg> </method> + <method name="SetAllowedModes"> + <tp:docstring> + Set the access technologies (eg 2G/3G/4G preference) the device is + currently allowed to use when connecting to a network. + </tp:docstring> + <annotation name="org.freedesktop.DBus.GLib.Async" value=""/> + <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_modem_set_allowed_mode"/> + <arg name="mode" type="u" tp:type="MM_MODEM_ALLOWED_MODE"> + <tp:docstring> + Bitmask of all the modes allowed in the modem. + </tp:docstring> + </arg> + </method> + <!-- SIGNALS --> <signal name="StateChanged"> @@ -260,11 +274,11 @@ </tp:docstring> </property> - <property name="AllowedMode" type="u" access="readwrite" tp:type="MM_MODEM_ALLOWED_MODE"> + <property name="AllowedModes" type="u" access="read" tp:type="MM_MODEM_ALLOWED_MODE"> <tp:docstring> - The allowed access technologies (eg 2G/3G/4G preference) the device is - currently allowed to use when connecting to a network. For POTS - devices, only the "any" mode is supported. + The access technologies (eg 2G/3G/4G preference) the device is currently + allowed to use when connecting to a network. For POTS devices, only the + "any" mode is supported. </tp:docstring> </property> |