From 1ac18a06bb37d8745480a9af4fd6bc2f762bf265 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 22 Aug 2012 09:35:15 +0200 Subject: api,dbus: 'ip-type' property now given as a MMBearerIpFamily (u) Instead of using a predefined set of string values for 'ip-type' in Modem.CreateBearer() and Simple.Connect(), we'll use an enumeration. The implementation will then need to convert the requested IP family type to e.g. the correct PDP type in 3GPP modems. This change also consolidates the use of enums in dictionary properties when possible to do so, as with the Rm Protocol. --- libmm-common/mm-simple-connect-properties.h | 30 ++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'libmm-common/mm-simple-connect-properties.h') diff --git a/libmm-common/mm-simple-connect-properties.h b/libmm-common/mm-simple-connect-properties.h index 84ce7723..04c8d34b 100644 --- a/libmm-common/mm-simple-connect-properties.h +++ b/libmm-common/mm-simple-connect-properties.h @@ -68,26 +68,26 @@ void mm_simple_connect_properties_set_user (MMSimpleConnectProperties * void mm_simple_connect_properties_set_password (MMSimpleConnectProperties *properties, const gchar *password); void mm_simple_connect_properties_set_ip_type (MMSimpleConnectProperties *properties, - const gchar *ip_type); + MMBearerIpFamily ip_type); void mm_simple_connect_properties_set_allow_roaming (MMSimpleConnectProperties *properties, gboolean allow_roaming); void mm_simple_connect_properties_set_number (MMSimpleConnectProperties *properties, const gchar *number); -const gchar *mm_simple_connect_properties_get_pin (MMSimpleConnectProperties *properties); -const gchar *mm_simple_connect_properties_get_operator_id (MMSimpleConnectProperties *properties); -void mm_simple_connect_properties_get_bands (MMSimpleConnectProperties *properties, - const MMModemBand **bands, - guint *n_bands); -void mm_simple_connect_properties_get_allowed_modes (MMSimpleConnectProperties *properties, - MMModemMode *allowed, - MMModemMode *preferred); -const gchar *mm_simple_connect_properties_get_apn (MMSimpleConnectProperties *properties); -const gchar *mm_simple_connect_properties_get_user (MMSimpleConnectProperties *properties); -const gchar *mm_simple_connect_properties_get_password (MMSimpleConnectProperties *properties); -const gchar *mm_simple_connect_properties_get_ip_type (MMSimpleConnectProperties *properties); -gboolean mm_simple_connect_properties_get_allow_roaming (MMSimpleConnectProperties *properties); -const gchar *mm_simple_connect_properties_get_number (MMSimpleConnectProperties *properties); +const gchar *mm_simple_connect_properties_get_pin (MMSimpleConnectProperties *properties); +const gchar *mm_simple_connect_properties_get_operator_id (MMSimpleConnectProperties *properties); +void mm_simple_connect_properties_get_bands (MMSimpleConnectProperties *properties, + const MMModemBand **bands, + guint *n_bands); +void mm_simple_connect_properties_get_allowed_modes (MMSimpleConnectProperties *properties, + MMModemMode *allowed, + MMModemMode *preferred); +const gchar *mm_simple_connect_properties_get_apn (MMSimpleConnectProperties *properties); +const gchar *mm_simple_connect_properties_get_user (MMSimpleConnectProperties *properties); +const gchar *mm_simple_connect_properties_get_password (MMSimpleConnectProperties *properties); +MMBearerIpFamily mm_simple_connect_properties_get_ip_type (MMSimpleConnectProperties *properties); +gboolean mm_simple_connect_properties_get_allow_roaming (MMSimpleConnectProperties *properties); +const gchar *mm_simple_connect_properties_get_number (MMSimpleConnectProperties *properties); MMBearerProperties *mm_simple_connect_properties_get_bearer_properties (MMSimpleConnectProperties *properties); -- cgit v1.2.3-70-g09d2