From e7dd2926a3ba1cf6129996ec63accee7fa1ad155 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Sun, 7 Mar 2010 09:53:03 -0800 Subject: [PATCH] api: revert parts of 2d194a5798fb06f41b018c2d8c2216f45bfc41a4 MM hadn't implemented it yet, but Wader already implemented an earlier version that didn't use a bitfield but an enum. Unfortunately the network mode stuff doesn't allow for distinguishing between the device's mode preference and the current access technology. So deprecate the current network mode stuff in the API in preparation for improved API. --- introspection/mm-modem-gsm-network.xml | 56 +++++++++++++++++++++----- 1 file changed, 47 insertions(+), 9 deletions(-) diff --git a/introspection/mm-modem-gsm-network.xml b/introspection/mm-modem-gsm-network.xml index 934e8e0b..0e52ebd4 100644 --- a/introspection/mm-modem-gsm-network.xml +++ b/introspection/mm-modem-gsm-network.xml @@ -82,11 +82,12 @@ - Set the desired mode the device may use when connecting to a mobile network. + Set the desired mode the device may use when connecting to a mobile + network (DEPRECATED; see SetAllowedModes instead). - + The desired network mode. Only one mode may be specified, and may not be UNKNOWN. @@ -95,11 +96,13 @@ - Returns the current network mode of the device. (Note for plugin writers: returned value *may* be ANY) + Returns the current network mode of the device (DEPRECATED; does not + allow returning both the saved mode preference *and* the current access + technology of the device at the same time. See GetAllowedModes instead). - + Returns the general network mode (ex. 2G/3G preference) of the device. @@ -156,12 +159,11 @@ - The network mode changed. + The network mode preference changed. (DEPRECATED; see documentation + for GetNetworkMode/SetNetworkMode) - - - The new network mode. - + + The new network mode. @@ -198,5 +200,41 @@ + + + Any network mode can be used + + + GPRS + + + EDGE + + + UMTS (3G) + + + HSDPA + + + Prefer 2G (GPRS or EDGE) + + + Prefer 3G (UMTS/HSDPA/HSUPA/HSPA) + + + Use only 2G (GPRS or EDGE) + + + Use only 3G (UMTS/HSDPA/HSUPA/HSPA) + + + HSUPA + + + HSPA (HSDPA + HSUPA) + + +