aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2011-09-30 15:01:17 +0200
committerAleksander Morgado <aleksander@lanedo.com>2011-10-01 15:23:09 +0200
commit40406693b61cb0ca601815f1478c773d6bbe9233 (patch)
tree6105d37e96f7ddbc23b7b1e76fcf1773cf33a1f7
parentb5393091de71b8a7fadd87f0762c4efebb6f5fd3 (diff)
api: new SetAllowedBands() to be able to modify the allowed bands in the modem
Changing the allowed bands in a modem may fail, for example if trying to set a frequency band which is not in the bands mask reported as Supported by the modem. Therefore, we need an explicit SetAllowedBands() method with proper error reporting instead of making the property writable.
-rw-r--r--new/org.freedesktop.ModemManager1.Modem.xml22
1 files changed, 18 insertions, 4 deletions
diff --git a/new/org.freedesktop.ModemManager1.Modem.xml b/new/org.freedesktop.ModemManager1.Modem.xml
index 32666c2f..31301401 100644
--- a/new/org.freedesktop.ModemManager1.Modem.xml
+++ b/new/org.freedesktop.ModemManager1.Modem.xml
@@ -118,6 +118,20 @@
</arg>
</method>
+ <method name="SetAllowedBands">
+ <tp:docstring>
+ Set the radio frequency and technology bands 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_band"/>
+ <arg name="mode" type="u" tp:type="MM_MODEM_BAND">
+ <tp:docstring>
+ Bitmask of all the bands allowed in the modem.
+ </tp:docstring>
+ </arg>
+ </method>
+
<!-- SIGNALS -->
<signal name="StateChanged">
@@ -289,11 +303,11 @@
</tp:docstring>
</property>
- <property name="AllowedBands" type="t" access="readwrite" tp:type="MM_MODEM_BAND">
+ <property name="AllowedBands" type="t" access="read" tp:type="MM_MODEM_BAND">
<tp:docstring>
- The allowed radio frequency and technology bands the device is currently
- allowed to use when connecting to a network. For POTS devices, only
- the "any" value is supported.
+ The radio frequency and technology bands the device is currently allowed
+ to use when connecting to a network. For POTS devices, only the "any"
+ value is supported.
</tp:docstring>
</property>