| libmm-glib Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
struct MMBearerProperties; MMBearerProperties * mm_bearer_properties_new (void); const gchar * mm_bearer_properties_get_apn (MMBearerProperties *self); void mm_bearer_properties_set_apn (MMBearerProperties *self,const gchar *apn); MMBearerAllowedAuth mm_bearer_properties_get_allowed_auth (MMBearerProperties *self); void mm_bearer_properties_set_allowed_auth (MMBearerProperties *self,MMBearerAllowedAuth allowed_auth); const gchar * mm_bearer_properties_get_user (MMBearerProperties *self); void mm_bearer_properties_set_user (MMBearerProperties *self,const gchar *user); const gchar * mm_bearer_properties_get_password (MMBearerProperties *self); void mm_bearer_properties_set_password (MMBearerProperties *self,const gchar *password); MMBearerIpFamily mm_bearer_properties_get_ip_type (MMBearerProperties *self); void mm_bearer_properties_set_ip_type (MMBearerProperties *self,MMBearerIpFamily ip_type); gboolean mm_bearer_properties_get_allow_roaming (MMBearerProperties *self); void mm_bearer_properties_set_allow_roaming (MMBearerProperties *self,gboolean allow_roaming); const gchar * mm_bearer_properties_get_number (MMBearerProperties *self); void mm_bearer_properties_set_number (MMBearerProperties *self,const gchar *number); MMModemCdmaRmProtocol mm_bearer_properties_get_rm_protocol (MMBearerProperties *self); void mm_bearer_properties_set_rm_protocol (MMBearerProperties *self,MMModemCdmaRmProtocol protocol);
The MMBearerProperties is an object handling the properties requested to ModemManager when creating a new bearer.
This object is created by the user and passed to ModemManager with either
mm_modem_create_bearer() or mm_modem_create_bearer_sync().
struct MMBearerProperties;
The MMBearerProperties structure contains private data and should only be accessed using the provided API.
MMBearerProperties * mm_bearer_properties_new (void);
Creates a new empty MMBearerProperties.
Returns : |
a MMBearerProperties. The returned value should be freed with g_object_unref(). [transfer full]
|
const gchar * mm_bearer_properties_get_apn (MMBearerProperties *self);
Gets the name of the access point to use when connecting.
|
a MMBearerProperties. |
Returns : |
the access point, or NULL if not set. Do not free the returned value, it is owned by self. [transfer none]
|
void mm_bearer_properties_set_apn (MMBearerProperties *self,const gchar *apn);
Sets the name of the access point to use when connecting.
|
a MMBearerProperties. |
|
Name of the access point. |
MMBearerAllowedAuth mm_bearer_properties_get_allowed_auth
(MMBearerProperties *self);
Gets the authentication methods allowed in the connection.
|
a MMBearerProperties. |
Returns : |
a bitmask of MMBearerAllowedAuth values, or MM_BEARER_ALLOWED_AUTH_UNKNOWN to request the modem-default method. |
void mm_bearer_properties_set_allowed_auth (MMBearerProperties *self,MMBearerAllowedAuth allowed_auth);
Sets the authentication method to use.
|
a MMBearerProperties. |
|
a bitmask of MMBearerAllowedAuth values. MM_BEARER_ALLOWED_AUTH_UNKNOWN may be given to request the modem-default method. |
const gchar * mm_bearer_properties_get_user (MMBearerProperties *self);
Gets the username used to authenticate with the access point.
|
a MMBearerProperties. |
Returns : |
the username, or NULL if not set. Do not free the returned value, it is owned by self. [transfer none]
|
void mm_bearer_properties_set_user (MMBearerProperties *self,const gchar *user);
Sets the username used to authenticate with the access point.
|
a MMBearerProperties. |
|
the username |
const gchar * mm_bearer_properties_get_password (MMBearerProperties *self);
Gets the password used to authenticate with the access point.
|
a MMBearerProperties. |
Returns : |
the password, or NULL if not set. Do not free the returned value, it is owned by self. [transfer none]
|
void mm_bearer_properties_set_password (MMBearerProperties *self,const gchar *password);
Sets the password used to authenticate with the access point.
|
a MMBearerProperties. |
|
the password |
MMBearerIpFamily mm_bearer_properties_get_ip_type (MMBearerProperties *self);
Sets the IP type to use.
|
a MMBearerProperties. |
Returns : |
a MMBearerIpFamily. |
void mm_bearer_properties_set_ip_type (MMBearerProperties *self,MMBearerIpFamily ip_type);
Sets the IP type to use.
|
a MMBearerProperties. |
|
a MMBearerIpFamily. |
gboolean mm_bearer_properties_get_allow_roaming
(MMBearerProperties *self);
Checks whether roaming is allowed in the connection.
|
a MMBearerProperties. |
Returns : |
TRUE if roaming is allowed, FALSE otherwise.. |
void mm_bearer_properties_set_allow_roaming (MMBearerProperties *self,gboolean allow_roaming);
Sets the flag to indicate whether roaming is allowed or not in the connection.
|
a MMBearerProperties. |
|
boolean value. |
const gchar * mm_bearer_properties_get_number (MMBearerProperties *self);
Gets the number to use when performing the connection.
|
a MMBearerProperties. |
Returns : |
the number, or NULL if not set. Do not free the returned value, it is owned by self. [transfer none]
|
void mm_bearer_properties_set_number (MMBearerProperties *self,const gchar *number);
Sets the number to use when performing the connection.
|
a MMBearerProperties. |
|
the number. |
MMModemCdmaRmProtocol mm_bearer_properties_get_rm_protocol
(MMBearerProperties *self);
Gets the RM protocol requested to use in the CDMA connection.
|
a MMBearerProperties. |
Returns : |
a MMModemCdmaRmProtocol. |
void mm_bearer_properties_set_rm_protocol (MMBearerProperties *self,MMModemCdmaRmProtocol protocol);