From b5393091de71b8a7fadd87f0762c4efebb6f5fd3 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 30 Sep 2011 15:01:16 +0200 Subject: [PATCH] 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. --- new/org.freedesktop.ModemManager1.Modem.xml | 22 +++++++++++++++++---- 1 file 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 @@ + + + Set the access technologies (eg 2G/3G/4G preference) the device is + currently allowed to use when connecting to a network. + + + + + + Bitmask of all the modes allowed in the modem. + + + + @@ -260,11 +274,11 @@ - + - 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.