Top |
The MM3gppProfile is an object handling the settings associated to a connection profile stored in the device.
MM3gppProfile *
mm_3gpp_profile_new (void
);
Creates a new empty MM3gppProfile.
Since: 1.18
const gchar *
mm_3gpp_profile_get_apn (MM3gppProfile *self
);
Gets the name of the access point.
the access point, or NULL if not set. Do not free
the returned value, it is owned by self
.
[transfer none]
Since: 1.18
void mm_3gpp_profile_set_apn (MM3gppProfile *self
,const gchar *apn
);
Sets the name of the access point to use.
Since: 1.18
MMBearerApnType
mm_3gpp_profile_get_apn_type (MM3gppProfile *self
);
Gets the APN types to use.
Since: 1.18
void mm_3gpp_profile_set_apn_type (MM3gppProfile *self
,MMBearerApnType apn_type
);
Sets the APN types to use.
Since: 1.18
MMBearerAllowedAuth
mm_3gpp_profile_get_allowed_auth (MM3gppProfile *self
);
Gets the methods allowed to use when authenticating with the access point.
a bitmask of MMBearerAllowedAuth values, or
MM_BEARER_ALLOWED_AUTH_UNKNOWN
to request the modem-default method.
Since: 1.18
void mm_3gpp_profile_set_allowed_auth (MM3gppProfile *self
,MMBearerAllowedAuth allowed_auth
);
Sets the method to use when authenticating with the access point.
self |
||
allowed_auth |
a bitmask of MMBearerAllowedAuth values.
|
Since: 1.18
const gchar *
mm_3gpp_profile_get_user (MM3gppProfile *self
);
Gets the username used to authenticate with the access point.
the username, or NULL if not set. Do not free the
returned value, it is owned by self
.
[transfer none]
Since: 1.18
void mm_3gpp_profile_set_user (MM3gppProfile *self
,const gchar *user
);
Sets the username used to authenticate with the access point.
Since: 1.18
const gchar *
mm_3gpp_profile_get_password (MM3gppProfile *self
);
Gets the password used to authenticate with the access point.
the password, or NULL if not set. Do not free
the returned value, it is owned by self
.
[transfer none]
Since: 1.18
void mm_3gpp_profile_set_password (MM3gppProfile *self
,const gchar *password
);
Sets the password used to authenticate with the access point.
Since: 1.18
MMBearerIpFamily
mm_3gpp_profile_get_ip_type (MM3gppProfile *self
);
Gets the IP type to use.
Since: 1.18
void mm_3gpp_profile_set_ip_type (MM3gppProfile *self
,MMBearerIpFamily ip_type
);
Sets the IP type to use.
Since: 1.18
gint
mm_3gpp_profile_get_profile_id (MM3gppProfile *self
);
Gets the profile id.
Since: 1.18
void mm_3gpp_profile_set_profile_id (MM3gppProfile *self
,gint profile_id
);
Sets the profile id to use.
If none specified explicitly, MM_3GPP_PROFILE_ID_UNKNOWN is assumed.
Since: 1.18
const gchar *
mm_3gpp_profile_get_profile_name (MM3gppProfile *self
);
Gets the name of the profile.
the profile name, or NULL if not set. Do not free
the returned value, it is owned by self
.
[transfer none]
Since: 1.20
void mm_3gpp_profile_set_profile_name (MM3gppProfile *self
,const gchar *profile_name
);
Sets the name of the profile.
Since: 1.20
MMBearerAccessTypePreference
mm_3gpp_profile_get_access_type_preference
(MM3gppProfile *self
);
Gets 5G network access type preference.
Since: 1.20
void mm_3gpp_profile_set_access_type_preference (MM3gppProfile *self
,MMBearerAccessTypePreference access_type_preference
);
Sets the 5G network access type preference.
Since: 1.20
gboolean
mm_3gpp_profile_get_enabled (MM3gppProfile *self
);
Checks whether the profile is enabled or disabled.
Since: 1.20
void mm_3gpp_profile_set_enabled (MM3gppProfile *self
,gboolean enabled
);
Sets the flag to indicate whether the profile is enabled or disabled.
Since: 1.20
MMBearerRoamingAllowance
mm_3gpp_profile_get_roaming_allowance (MM3gppProfile *self
);
Gets the roaming allowance rules.
Since: 1.20
void mm_3gpp_profile_set_roaming_allowance (MM3gppProfile *self
,MMBearerRoamingAllowance roaming_allowance
);
Sets the roaming allowance rules.
Since: 1.20
MMBearerProfileSource
mm_3gpp_profile_get_profile_source (MM3gppProfile *self
);
Gets the profile source.
Since: 1.20
void mm_3gpp_profile_set_profile_source (MM3gppProfile *self
,MMBearerProfileSource profile_source
);
Sets profile source.
Since: 1.20
#define MM_3GPP_PROFILE_ID_UNKNOWN -1
This value may be specified in the 'profile-id' property When the user creates a new MM3gppProfile, to indicate that the real profile id should be assigned by the device.
struct MM3gppProfile;
The MM3gppProfile structure contains private data and should only be accessed using the provided API.