ModemManager.BearerProperties¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class ModemManager.BearerProperties(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
ModemManager.BearerPropertiesstructure contains private data and should only be accessed using the provided API.- classmethod new()¶
- Returns:
a
ModemManager.BearerProperties. The returned value should be freed withGObject.Object.unref().- Return type:
Creates a new empty
ModemManager.BearerProperties.Added in version 1.0.
- get_access_type_preference()¶
- Returns:
- Return type:
Gets the 5G network access type preference.
Added in version 1.20.
- get_allow_roaming()¶
-
Checks whether roaming is allowed in the connection.
Added in version 1.0.
- get_allowed_auth()¶
- Returns:
a bitmask of
ModemManager.BearerAllowedAuthvalues, orModemManager.BearerAllowedAuth.UNKNOWNto request the modem-default method.- Return type:
Gets the authentication methods allowed in the connection.
Added in version 1.0.
- get_apn()¶
- Returns:
the access point, or
Noneif not set. Do not free the returned value, it is owned by self.- Return type:
Gets the name of the access point to use when connecting.
Added in version 1.0.
- get_apn_type()¶
- Returns:
a mask of
ModemManager.BearerApnTypevalues.- Return type:
Gets the APN types to use.
Added in version 1.18.
- get_force()¶
-
Checks whether initial EPS bearer settings should be forced sent to the modem.This method does not apply when the bearer properties are used for other operations.
Added in version 1.24.
- get_ip_type()¶
- Returns:
- Return type:
Sets the IP type to use.
Added in version 1.0.
- get_multiplex()¶
- Returns:
- Return type:
Gets the type of multiplex support requested by the user.
Added in version 1.18.
- get_number()¶
- Returns:
the number, or
Noneif not set. Do not free the returned value, it is owned by self.- Return type:
Gets the number to use when performing the connection.
Added in version 1.0.
Deprecated since version 1.10.0.: The number setting is not used anywhere, and therefore it doesn’t make sense to expose it in the ModemManager interface.
- get_password()¶
- Returns:
the password, or
Noneif not set. Do not free the returned value, it is owned by self.- Return type:
Gets the password used to authenticate with the access point.
Added in version 1.0.
- get_profile_id()¶
- Returns:
the profile id.
- Return type:
Gets the profile ID to use.
Added in version 1.18.
- get_profile_name()¶
- Returns:
the profile name, or
Noneif not set. Do not free the returned value, it is owned by self.- Return type:
Gets the name of the profile to use when connecting.
Added in version 1.20.
- get_rm_protocol()¶
- Returns:
- Return type:
Gets the RM protocol requested to use in the CDMA connection.
Added in version 1.0.
- get_roaming_allowance()¶
- Returns:
a mask of
ModemManager.BearerRoamingAllowancevalues.- Return type:
Gets the roaming allowance rules.
Added in version 1.20.
- get_user()¶
- Returns:
the username, or
Noneif not set. Do not free the returned value, it is owned by self.- Return type:
Gets the username used to authenticate with the access point.
Added in version 1.0.
- set_access_type_preference(access_type_preference)¶
- Parameters:
access_type_preference (
ModemManager.BearerAccessTypePreference) – aModemManager.BearerAccessTypePreferencevalue.
Sets the 5G network access type preference.
Added in version 1.20.
- set_allow_roaming(allow_roaming)¶
- Parameters:
allow_roaming (
bool) – boolean value.
Sets the flag to indicate whether roaming is allowed or not in the connection.
Added in version 1.0.
- set_allowed_auth(allowed_auth)¶
- Parameters:
allowed_auth (
ModemManager.BearerAllowedAuth) – a bitmask ofModemManager.BearerAllowedAuthvalues.ModemManager.BearerAllowedAuth.UNKNOWNmay be given to request the modem-default method.
Sets the authentication method to use.
Added in version 1.0.
- set_apn(apn)¶
- Parameters:
apn (
str) – Name of the access point.
Sets the name of the access point to use when connecting.
Added in version 1.0.
- set_apn_type(apn_type)¶
- Parameters:
apn_type (
ModemManager.BearerApnType) – a mask ofModemManager.BearerApnTypevalues.
Sets the APN types to use.
Added in version 1.18.
- set_force(force)¶
- Parameters:
force (
bool) – boolean value.
Sets the flag to indicate whether initial EPS bearer settings should be forced sent to the modem even if they match existing properties. This method does not apply when the bearer properties are used for other operations.
Added in version 1.24.
- set_ip_type(ip_type)¶
- Parameters:
ip_type (
ModemManager.BearerIpFamily) – aModemManager.BearerIpFamily.
Sets the IP type to use.
Added in version 1.0.
- set_multiplex(multiplex)¶
- Parameters:
multiplex (
ModemManager.BearerMultiplexSupport) – aModemManager.BearerMultiplexSupport.
Gets the type of multiplex support requested by the user.
Added in version 1.18.
- set_number(number)¶
- Parameters:
number (
str) – the number.
Sets the number to use when performing the connection.
Added in version 1.0.
Deprecated since version 1.10.0.: The number setting is not used anywhere, and therefore it doesn’t make sense to expose it in the ModemManager interface.
- set_password(password)¶
- Parameters:
password (
str) – the password
Sets the password used to authenticate with the access point.
Added in version 1.0.
- set_profile_id(profile_id)¶
- Parameters:
profile_id (
int) – a profile id.
Sets the profile ID to use.
Added in version 1.18.
- set_profile_name(profile_name)¶
- Parameters:
profile_name (
str) – Name of the profile.
Sets the name of the profile to use when connecting.
Added in version 1.20.
- set_rm_protocol(protocol)¶
- Parameters:
protocol (
ModemManager.ModemCdmaRmProtocol) – aModemManager.ModemCdmaRmProtocol.
Sets the RM protocol to use in the CDMA connection.
Added in version 1.0.
- set_roaming_allowance(roaming_allowance)¶
- Parameters:
roaming_allowance (
ModemManager.BearerRoamingAllowance) – a mask ofModemManager.BearerRoamingAllowancevalues
Sets the roaming allowance rules.
Added in version 1.20.