diff options
Diffstat (limited to 'libmm-glib/mm-simple-connect-properties.c')
-rw-r--r-- | libmm-glib/mm-simple-connect-properties.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/libmm-glib/mm-simple-connect-properties.c b/libmm-glib/mm-simple-connect-properties.c index d1a83592..a70ce0d5 100644 --- a/libmm-glib/mm-simple-connect-properties.c +++ b/libmm-glib/mm-simple-connect-properties.c @@ -17,6 +17,7 @@ #include "mm-errors-types.h" #include "mm-common-helpers.h" +#include "mm-3gpp-profile.h" #include "mm-simple-connect-properties.h" /** @@ -365,6 +366,44 @@ mm_simple_connect_properties_get_apn_type (MMSimpleConnectProperties *self) /*****************************************************************************/ /** + * mm_simple_connect_properties_set_profile_id: + * @self: a #MMSimpleConnectProperties. + * @profile_id: a profile id. + * + * Sets the profile ID to use. + * + * Since: 1.18 + */ +void +mm_simple_connect_properties_set_profile_id (MMSimpleConnectProperties *self, + gint profile_id) +{ + g_return_if_fail (MM_IS_SIMPLE_CONNECT_PROPERTIES (self)); + + mm_bearer_properties_set_profile_id (self->priv->bearer_properties, profile_id); +} + +/** + * mm_simple_connect_properties_get_profile_id: + * @self: a #MMSimpleConnectProperties. + * + * Gets the profile ID to use. + * + * Returns: the profile id. + * + * Since: 1.18 + */ +gint +mm_simple_connect_properties_get_profile_id (MMSimpleConnectProperties *self) +{ + g_return_val_if_fail (MM_IS_SIMPLE_CONNECT_PROPERTIES (self), MM_3GPP_PROFILE_ID_UNKNOWN); + + return mm_bearer_properties_get_profile_id (self->priv->bearer_properties); +} + +/*****************************************************************************/ + +/** * mm_simple_connect_properties_set_allow_roaming: * @self: a #MMSimpleConnectProperties. * @allow_roaming: boolean value. |