libmm-glib,simple-connect-properties: add missing APIs to get/set RM protocol
Probably not a big deal, since no one has asked for these in the past years, but let's add them for completeness with the DBus API.
This commit is contained in:
@@ -870,6 +870,8 @@ mm_simple_connect_properties_get_ip_type
|
|||||||
mm_simple_connect_properties_set_ip_type
|
mm_simple_connect_properties_set_ip_type
|
||||||
mm_simple_connect_properties_get_allow_roaming
|
mm_simple_connect_properties_get_allow_roaming
|
||||||
mm_simple_connect_properties_set_allow_roaming
|
mm_simple_connect_properties_set_allow_roaming
|
||||||
|
mm_simple_connect_properties_get_rm_protocol
|
||||||
|
mm_simple_connect_properties_set_rm_protocol
|
||||||
mm_simple_connect_properties_get_number
|
mm_simple_connect_properties_get_number
|
||||||
mm_simple_connect_properties_set_number
|
mm_simple_connect_properties_set_number
|
||||||
<SUBSECTION Private>
|
<SUBSECTION Private>
|
||||||
|
@@ -364,6 +364,43 @@ mm_simple_connect_properties_get_allow_roaming (MMSimpleConnectProperties *self)
|
|||||||
return mm_bearer_properties_get_allow_roaming (self->priv->bearer_properties);
|
return mm_bearer_properties_get_allow_roaming (self->priv->bearer_properties);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* mm_simple_connect_properties_set_rm_protocol:
|
||||||
|
* @self: a #MMSimpleConnectProperties.
|
||||||
|
* @protocol: a #MMModemCdmaRmProtocol.
|
||||||
|
*
|
||||||
|
* Sets the RM protocol requested by the user.
|
||||||
|
*
|
||||||
|
* Since: 1.16
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
mm_simple_connect_properties_set_rm_protocol (MMSimpleConnectProperties *self,
|
||||||
|
MMModemCdmaRmProtocol protocol)
|
||||||
|
{
|
||||||
|
g_return_if_fail (MM_IS_SIMPLE_CONNECT_PROPERTIES (self));
|
||||||
|
|
||||||
|
mm_bearer_properties_set_rm_protocol (self->priv->bearer_properties, protocol);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* mm_simple_connect_properties_get_rm_protocol:
|
||||||
|
* @self: a #MMSimpleConnectProperties.
|
||||||
|
*
|
||||||
|
* Get the RM protocol requested by the user.
|
||||||
|
*
|
||||||
|
* Returns: a #MMModemCdmaRmProtocol.
|
||||||
|
*
|
||||||
|
* Since: 1.16
|
||||||
|
*/
|
||||||
|
MMModemCdmaRmProtocol
|
||||||
|
mm_simple_connect_properties_get_rm_protocol (MMSimpleConnectProperties *self)
|
||||||
|
{
|
||||||
|
g_return_val_if_fail (MM_IS_SIMPLE_CONNECT_PROPERTIES (self), MM_MODEM_CDMA_RM_PROTOCOL_UNKNOWN);
|
||||||
|
|
||||||
|
return mm_bearer_properties_get_rm_protocol (self->priv->bearer_properties);
|
||||||
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
@@ -76,15 +76,18 @@ void mm_simple_connect_properties_set_ip_type (MMSimpleConnectProperties *
|
|||||||
MMBearerIpFamily ip_type);
|
MMBearerIpFamily ip_type);
|
||||||
void mm_simple_connect_properties_set_allow_roaming (MMSimpleConnectProperties *self,
|
void mm_simple_connect_properties_set_allow_roaming (MMSimpleConnectProperties *self,
|
||||||
gboolean allow_roaming);
|
gboolean allow_roaming);
|
||||||
|
void mm_simple_connect_properties_set_rm_protocol (MMSimpleConnectProperties *self,
|
||||||
|
MMModemCdmaRmProtocol protocol);
|
||||||
|
|
||||||
const gchar *mm_simple_connect_properties_get_pin (MMSimpleConnectProperties *self);
|
const gchar *mm_simple_connect_properties_get_pin (MMSimpleConnectProperties *self);
|
||||||
const gchar *mm_simple_connect_properties_get_operator_id (MMSimpleConnectProperties *self);
|
const gchar *mm_simple_connect_properties_get_operator_id (MMSimpleConnectProperties *self);
|
||||||
const gchar *mm_simple_connect_properties_get_apn (MMSimpleConnectProperties *self);
|
const gchar *mm_simple_connect_properties_get_apn (MMSimpleConnectProperties *self);
|
||||||
MMBearerAllowedAuth mm_simple_connect_properties_get_allowed_auth (MMSimpleConnectProperties *self);
|
MMBearerAllowedAuth mm_simple_connect_properties_get_allowed_auth (MMSimpleConnectProperties *self);
|
||||||
const gchar *mm_simple_connect_properties_get_user (MMSimpleConnectProperties *self);
|
const gchar *mm_simple_connect_properties_get_user (MMSimpleConnectProperties *self);
|
||||||
const gchar *mm_simple_connect_properties_get_password (MMSimpleConnectProperties *self);
|
const gchar *mm_simple_connect_properties_get_password (MMSimpleConnectProperties *self);
|
||||||
MMBearerIpFamily mm_simple_connect_properties_get_ip_type (MMSimpleConnectProperties *self);
|
MMBearerIpFamily mm_simple_connect_properties_get_ip_type (MMSimpleConnectProperties *self);
|
||||||
gboolean mm_simple_connect_properties_get_allow_roaming (MMSimpleConnectProperties *self);
|
gboolean mm_simple_connect_properties_get_allow_roaming (MMSimpleConnectProperties *self);
|
||||||
|
MMModemCdmaRmProtocol mm_simple_connect_properties_get_rm_protocol (MMSimpleConnectProperties *self);
|
||||||
|
|
||||||
#ifndef MM_DISABLE_DEPRECATED
|
#ifndef MM_DISABLE_DEPRECATED
|
||||||
G_DEPRECATED
|
G_DEPRECATED
|
||||||
|
Reference in New Issue
Block a user