ModemManager.SimpleConnectProperties¶
| Subclasses: | None | 
|---|
Methods¶
| Inherited: | GObject.Object (37) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
| class | new() | 
| get_allow_roaming() | |
| get_allowed_auth() | |
| get_apn() | |
| get_ip_type() | |
| get_number() | |
| get_operator_id() | |
| get_password() | |
| get_pin() | |
| get_user() | |
| set_allow_roaming(allow_roaming) | |
| set_allowed_auth(allowed_auth) | |
| set_apn(apn) | |
| set_ip_type(ip_type) | |
| set_number(number) | |
| set_operator_id(operator_id) | |
| set_password(password) | |
| set_pin(pin) | |
| set_user(user) | 
Virtual Methods¶
| Inherited: | GObject.Object (7) | 
|---|
Properties¶
None
Signals¶
| Inherited: | GObject.Object (1) | 
|---|
Class Details¶
- 
class ModemManager.SimpleConnectProperties(**kwargs)¶
- Bases: - GObject.Object- Abstract: - No - Structure: - ModemManager.SimpleConnectPropertiesClass- The - ModemManager.SimpleConnectPropertiesstructure contains private data and should only be accessed using the provided API.- 
classmethod new()¶
- Returns: - a - ModemManager.SimpleConnectProperties. The returned value should be freed with- GObject.Object.unref().- Return type: - ModemManager.SimpleConnectProperties- Creates a new empty - ModemManager.SimpleConnectProperties.- New in version 1.0. 
 - 
get_allow_roaming()¶
- Returns: - Trueif roaming is allowed,- Falseotherwise.- Return type: - bool- Checks whether roaming is allowed in the connection. - New in version 1.0. 
 - 
get_allowed_auth()¶
- Returns: - a bitmask of - ModemManager.BearerAllowedAuthvalues, or- ModemManager.BearerAllowedAuth.UNKNOWNto request the modem-default method.- Return type: - ModemManager.BearerAllowedAuth- Gets the authentication methods allowed in the connection. - New 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: - str- Gets the name of the access point to use when connecting. - New in version 1.0. 
 - 
get_ip_type()¶
- Returns: - a - ModemManager.BearerIpFamily.- Return type: - ModemManager.BearerIpFamily- Sets the IP type to use. - New in version 1.0. 
 - 
get_number()¶
- Returns: - the number, or - Noneif not set. Do not free the returned value, it is owned by self.- Return type: - str- Gets the number to use when performing the connection. - New 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_operator_id()¶
- Returns: - the operator ID, or - Noneif not set. Do not free the returned value, it is owned by self.- Return type: - str- Gets the ID of the network to which register before connecting. - New in version 1.0. 
 - 
get_password()¶
- Returns: - the password, or - Noneif not set. Do not free the returned value, it is owned by self.- Return type: - str- Gets the password used to authenticate with the access point. - New in version 1.0. 
 - 
get_pin()¶
- Returns: - the PIN, or - Noneif not set. Do not free the returned value, it is owned by self.- Return type: - str- Gets the PIN code to use when unlocking the modem. - New in version 1.0. 
 - 
get_user()¶
- Returns: - the username, or - Noneif not set. Do not free the returned value, it is owned by self.- Return type: - str- Gets the username used to authenticate with the access point. - New in version 1.0. 
 - 
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. - New in version 1.0. 
 - 
set_allowed_auth(allowed_auth)¶
- Parameters: - allowed_auth ( - ModemManager.BearerAllowedAuth) – a bitmask of- ModemManager.BearerAllowedAuthvalues.- ModemManager.BearerAllowedAuth.UNKNOWNmay be given to request the modem-default method.- Sets the authentication method to use. - New 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. - New in version 1.0. 
 - 
set_ip_type(ip_type)¶
- Parameters: - ip_type ( - ModemManager.BearerIpFamily) – a- ModemManager.BearerIpFamily.- Sets the IP type to use. - New in version 1.0. 
 - 
set_number(number)¶
- Parameters: - number ( - str) – the number.- Sets the number to use when performing the connection. - New 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_operator_id(operator_id)¶
- Parameters: - operator_id ( - str) – operator ID, given as MCC/MNC.- Sets the ID of the network to which register before connecting. - New in version 1.0. 
 - 
set_password(password)¶
- Parameters: - password ( - str) – the password- Sets the password used to authenticate with the access point. - New in version 1.0. 
 
- 
classmethod