ModemManager.Modem3gpp¶
| Subclasses: | None | 
|---|
Methods¶
Virtual Methods¶
| Inherited: | Gio.DBusProxy (2), GObject.Object (7), Gio.AsyncInitable (2), Gio.DBusInterface (3), Gio.Initable (1), ModemManager.GdbusModem3gpp (4) | 
|---|
Properties¶
| Inherited: | Gio.DBusProxy (9), ModemManager.GdbusModem3gpp (10) | 
|---|
Signals¶
| Inherited: | Gio.DBusProxy (2), GObject.Object (1), ModemManager.GdbusModem3gpp (4) | 
|---|
Fields¶
| Inherited: | Gio.DBusProxy (2), GObject.Object (1), ModemManager.GdbusModem3gpp (4) | 
|---|
| Name | Type | Access | Description | 
|---|---|---|---|
| parent | ModemManager.GdbusModem3gppProxy | r | 
Class Details¶
- 
class ModemManager.Modem3gpp(**kwargs)¶
- Bases: - ModemManager.GdbusModem3gppProxy- Abstract: - No - Structure: - ModemManager.Modem3gppClass- The - ModemManager.Modem3gppstructure contains private data and should only be accessed using the provided API.- 
dup_imei()¶
- Returns: - The IMEI, or - Noneif none available. The returned value should be freed with- GLib.free().- Return type: - str- Gets a copy of the IMEI, as reported by this - ModemManager.Modem3gpp.- New in version 1.0. 
 - 
dup_initial_eps_bearer_path()¶
- Returns: - The DBus path of the - ModemManager.Bearer, or- Noneif none available. The returned value should be freed with- GLib.free().- Return type: - str- Gets a copy of the DBus path of the initial EPS - ModemManager.Bearerexposed in this- ModemManager.Modem3gpp.- New in version 1.10. 
 - 
dup_operator_code()¶
- Returns: - The operator code, or - Noneif none available. The returned value should be freed with- GLib.free().- Return type: - str- Gets a copy of the code of the operator to which the mobile is currently registered. - Returned in the format - "MCCMNC", where- MCCis the three-digit ITU E.212 Mobile Country Code and- MNCis the two- or three-digit GSM Mobile Network Code. e.g. e``”31026”`` or- "310260".- New in version 1.0. 
 - 
dup_operator_name()¶
- Returns: - The operator name, or - Noneif none available. The returned value should be freed with- GLib.free().- Return type: - str- Gets a copy of the name of the operator to which the mobile is currently registered. - New in version 1.0. 
 - 
dup_path()¶
- Returns: - The DBus path of the - ModemManager.Object. The returned value should be freed with- GLib.free().- Return type: - str- Gets a copy of the DBus path of the - ModemManager.Objectobject which implements this interface.- New in version 1.0. 
 - 
get_enabled_facility_locks()¶
- Returns: - A bitmask of - ModemManager.Modem3gppFacilityflags, specifying which facilities have locks enabled.- Return type: - ModemManager.Modem3gppFacility- Get the list of facilities for which PIN locking is enabled. - New in version 1.0. 
 - 
get_eps_ue_mode_operation()¶
- Returns: - A - ModemManager.Modem3gppEpsUeModeOperation.- Return type: - ModemManager.Modem3gppEpsUeModeOperation- Get the UE mode of operation for EPS. - New in version 1.8. 
 - 
get_imei()¶
- Returns: - The IMEI, or - Noneif none available.- Return type: - str- Gets the IMEI, as reported by this - ModemManager.Modem3gpp.- The returned value is only valid until the property changes so it is only safe to use this function on the thread where self was constructed. Use - ModemManager.Modem3gpp.dup_imei() if on another thread.- New in version 1.0. 
 - 
get_initial_eps_bearer(cancellable, callback, *user_data)¶
- Parameters: - cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
- callback (Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
- user_data (objectorNone) – User data to pass to callback.
 - Asynchronously gets the initial EPS - ModemManager.Bearerobject exposed by this- ModemManager.Modem3gpp.- When the operation is finished, callback will be invoked in the - thread-default main loopof the thread you are calling this method from. You can then call- ModemManager.Modem3gpp.get_initial_eps_bearer_finish() to get the result of the operation.- See - ModemManager.Modem3gpp.get_initial_eps_bearer_sync() for the synchronous, blocking version of this method.- New in version 1.10. 
- cancellable (
 - 
get_initial_eps_bearer_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.Modem3gpp.get_initial_eps_bearer().- Raises: - GLib.Error- Returns: - a - ModemManager.Simor- Noneif error is set. The returned value should be freed with- GObject.Object.unref().- Return type: - ModemManager.Bearer- Finishes an operation started with - ModemManager.Modem3gpp.get_initial_eps_bearer().- New in version 1.10. 
 - 
get_initial_eps_bearer_settings()¶
- Returns: - A - ModemManager.BearerPropertiesthat must be freed with- GObject.Object.unref() or- Noneif unknown.- Return type: - ModemManager.BearerProperties- Gets a - ModemManager.BearerPropertiesobject specifying the settings configured in the device to use when attaching to the LTE network.- The values reported by self are not updated when the values in the interface change. Instead, the client is expected to call - ModemManager.Modem3gpp.get_initial_eps_bearer_settings() again to get a new- ModemManager.BearerPropertieswith the new values.- New in version 1.10. 
 - 
get_initial_eps_bearer_sync(cancellable)¶
- Parameters: - cancellable ( - Gio.Cancellableor- None) – A- Gio.Cancellableor- None.- Raises: - GLib.Error- Returns: - a - ModemManager.Beareror- Noneif error is set. The returned value should be freed with- GObject.Object.unref().- Return type: - ModemManager.Bearer- Synchronously gets the initial EPS - ModemManager.Bearerobject exposed by this- ModemManager.Modem3gpp.- The calling thread is blocked until a reply is received. See - ModemManager.Modem3gpp.get_initial_eps_bearer() for the asynchronous version of this method.- New in version 1.10. 
 - 
get_operator_code()¶
- Returns: - The operator code, or - Noneif none available.- Return type: - str- Gets the code of the operator to which the mobile is currently registered. - Returned in the format - "MCCMNC", where- MCCis the three-digit ITU E.212 Mobile Country Code and- MNCis the two- or three-digit GSM Mobile Network Code. e.g. e``”31026”`` or- "310260".- If the - MCCand- MNCare not known or the mobile is not registered to a mobile network, this property will be a zero-length (blank) string.- The returned value is only valid until the property changes so it is only safe to use this function on the thread where self was constructed. Use - ModemManager.Modem3gpp.dup_operator_code() if on another thread.- New in version 1.0. 
 - 
get_operator_name()¶
- Returns: - The operator name, or - Noneif none available.- Return type: - str- Gets the name of the operator to which the mobile is currently registered. - The returned value is only valid until the property changes so it is only safe to use this function on the thread where self was constructed. Use - ModemManager.Modem3gpp.dup_operator_name() if on another thread.- New in version 1.0. 
 - 
get_path()¶
- Returns: - The DBus path of the - ModemManager.Objectobject.- Return type: - str- Gets the DBus path of the - ModemManager.Objectwhich implements this interface.- New in version 1.0. 
 - 
get_pco()¶
- Returns: - a list of - ModemManager.Pcoobjects, or- Noneif error is set. The returned value should be freed with g_list_free_full() using- GObject.Object.unref() as- GLib.DestroyNotifyfunction.- Return type: - [ - ModemManager.Pco]- Get the list of - ModemManager.Pcoreceived from the network.- New in version 1.10. 
 - 
get_registration_state()¶
- Returns: - A - ModemManager.Modem3gppRegistrationStatevalue, specifying the current registration state.- Return type: - ModemManager.Modem3gppRegistrationState- Get the the mobile registration status as defined in 3GPP TS 27.007 section 10.1.19. - New in version 1.0. 
 - 
get_subscription_state()¶
- Returns: - A - ModemManager.Modem3gppSubscriptionStatevalue, specifying the current subscription state.- Return type: - ModemManager.Modem3gppSubscriptionState- Get the current subscription status of the account. This value is only available after the modem attempts to register with the network. - The value of this property can only be obtained with operator specific logic (e.g. processing specific PCO info), and therefore it doesn’t make sense to expose it in the ModemManager interface. - New in version 1.0. - Deprecated since version 1.10.0.: The value of this property can only be obtained with operator specific logic (e.g. processing specific PCO info), and therefore it doesn’t make sense to expose it in the ModemManager interface. 
 - 
peek_initial_eps_bearer_settings()¶
- Returns: - A - ModemManager.BearerProperties. Do not free the returned value, it belongs to self.- Return type: - ModemManager.BearerProperties- Gets a - ModemManager.BearerPropertiesobject specifying the settings configured in the device to use when attaching to the LTE network.- The returned value is only valid until the property changes so it is only safe to use this function on the thread where self was constructed. Use - ModemManager.Modem3gpp.get_initial_eps_bearer_settings() if on another thread.- New in version 1.10. 
 - 
register(network_id, cancellable, callback, *user_data)¶
- Parameters: - network_id (str) – The operator ID to register. An empty string can be used to register to the home network.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
- callback (Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
- user_data (objectorNone) – User data to pass to callback.
 - Asynchronously requests registration with a given mobile network. - When the operation is finished, callback will be invoked in the - thread-default main loopof the thread you are calling this method from. You can then call- ModemManager.Modem3gpp.register_finish() to get the result of the operation.- See - ModemManager.Modem3gpp.register_sync() for the synchronous, blocking version of this method.- New in version 1.0. 
- network_id (
 - 
register_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.Modem3gpp.register().- Raises: - GLib.Error- Returns: - Trueif the modem was registered,- Falseif error is set.- Return type: - bool- Finishes an operation started with - ModemManager.Modem3gpp.register().- New in version 1.0. 
 - 
register_sync(network_id, cancellable)¶
- Parameters: - network_id (str) – The operator ID to register. An empty string can be used to register to the home network.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
 - Raises: - Returns: - Return type: - Synchronously requests registration with a given mobile network. - The calling thread is blocked until a reply is received. See - ModemManager.Modem3gpp.register() for the asynchronous version of this method.- New in version 1.0. 
- network_id (
 - 
scan(cancellable, callback, *user_data)¶
- Parameters: - cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
- callback (Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
- user_data (objectorNone) – User data to pass to callback.
 - Asynchronously requests to scan available 3GPP networks. - When the operation is finished, callback will be invoked in the - thread-default main loopof the thread you are calling this method from. You can then call- ModemManager.Modem3gpp.scan_finish() to get the result of the operation.- See - ModemManager.Modem3gpp.scan_sync() for the synchronous, blocking version of this method.- New in version 1.0. 
- cancellable (
 - 
scan_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.Modem3gpp.scan().- Raises: - GLib.Error- Returns: - a list of - ModemManager.Modem3gppNetworkstructs, or- Noneif error is set. The returned value should be freed with g_list_free_full() using- ModemManager.Modem3gppNetwork.free() as- GLib.DestroyNotifyfunction.- Return type: - [ - ModemManager.Modem3gppNetwork]- Finishes an operation started with - ModemManager.Modem3gpp.scan().- New in version 1.0. 
 - 
scan_sync(cancellable)¶
- Parameters: - cancellable ( - Gio.Cancellableor- None) – A- Gio.Cancellableor- None.- Raises: - GLib.Error- Returns: - a list of - ModemManager.Modem3gppNetworkstructs, or- Noneif error is set. The returned value should be freed with g_list_free_full() using- ModemManager.Modem3gppNetwork.free() as- GLib.DestroyNotifyfunction.- Return type: - [ - ModemManager.Modem3gppNetwork]- Synchronously requests to scan available 3GPP networks. - The calling thread is blocked until a reply is received. See - ModemManager.Modem3gpp.scan() for the asynchronous version of this method.- New in version 1.0. 
 - 
set_eps_ue_mode_operation(mode, cancellable, callback, *user_data)¶
- Parameters: - mode (ModemManager.Modem3gppEpsUeModeOperation) – AModemManager.Modem3gppEpsUeModeOperation.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
- callback (Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
- user_data (objectorNone) – User data to pass to callback.
 - Asynchronously requests to update the EPS UE mode of operation. - When the operation is finished, callback will be invoked in the - thread-default main loopof the thread you are calling this method from. You can then call- ModemManager.Modem3gpp.set_eps_ue_mode_operation_finish() to get the result of the operation.- See - ModemManager.Modem3gpp.set_eps_ue_mode_operation_sync() for the synchronous, blocking version of this method. The calling thread is blocked until a reply is received.- New in version 1.8. 
- mode (
 - 
set_eps_ue_mode_operation_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.Modem3gpp.set_eps_ue_mode_operation().- Raises: - GLib.Error- Returns: - Trueif the operation was successful,- Falseif error is set.- Return type: - bool- Finishes an operation started with - ModemManager.Modem3gpp.set_eps_ue_mode_operation().- New in version 1.8. 
 - 
set_eps_ue_mode_operation_sync(mode, cancellable)¶
- Parameters: - mode (ModemManager.Modem3gppEpsUeModeOperation) – AModemManager.Modem3gppEpsUeModeOperation.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
 - Raises: - Returns: - Trueif the operation was successful,- Falseif error is set.- Return type: - Synchronously requests to update the EPS UE mode of operation. - The calling thread is blocked until a reply is received. See - ModemManager.Modem3gpp.set_eps_ue_mode_operation() for the asynchronous version of this method.- New in version 1.8. 
- mode (
 - 
set_initial_eps_bearer_settings(config, cancellable, callback, *user_data)¶
- Parameters: - config (ModemManager.BearerProperties) – AModemManager.BearerPropertiesobject with the properties to use.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
- callback (Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
- user_data (objectorNone) – User data to pass to callback.
 - Asynchronously configures the settings for the initial LTE default bearer. - When the operation is finished, callback will be invoked in the - thread-default main loopof the thread you are calling this method from. You can then call- ModemManager.Modem3gpp.set_initial_eps_bearer_settings_finish() to get the result of the operation.- New in version 1.10. 
- config (
 - 
set_initial_eps_bearer_settings_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.Modem3gpp.set_initial_eps_bearer_settings().- Raises: - GLib.Error- Returns: - Trueif the operation was successful,- Falseif error is set.- Return type: - bool- Finishes an operation started with - ModemManager.Modem3gpp.set_initial_eps_bearer_settings().- New in version 1.10. 
 - 
set_initial_eps_bearer_settings_sync(config, cancellable)¶
- Parameters: - config (ModemManager.BearerProperties) – AModemManager.BearerPropertiesobject with the properties to use.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
 - Raises: - Returns: - Trueif the operation was successful,- Falseif error is set.- Return type: - Synchronously configures the settings for the initial LTE default bearer. - The calling thread is blocked until a reply is received. See - ModemManager.Modem3gpp.set_initial_eps_bearer_settings() for the asynchronous version of this method.- New in version 1.10. 
- config (
 
-