ModemManager.ModemCdma¶
| Subclasses: | None | 
|---|
Methods¶
| activate(carrier, cancellable, callback, *user_data) | |
| activate_finish(res) | |
| activate_manual(properties, cancellable, callback, *user_data) | |
| activate_manual_finish(res) | |
| activate_manual_sync(properties, cancellable) | |
| activate_sync(carrier, cancellable) | |
| dup_esn() | |
| dup_meid() | |
| dup_path() | |
| get_activation_state() | |
| get_cdma1x_registration_state() | |
| get_esn() | |
| get_evdo_registration_state() | |
| get_meid() | |
| get_nid() | |
| get_path() | |
| get_sid() | 
Virtual Methods¶
| Inherited: | Gio.DBusProxy (2), GObject.Object (7), Gio.AsyncInitable (2), Gio.DBusInterface (3), Gio.Initable (1), ModemManager.GdbusModemCdma (3) | 
|---|
Properties¶
| Inherited: | Gio.DBusProxy (9), ModemManager.GdbusModemCdma (7) | 
|---|
Signals¶
| Inherited: | Gio.DBusProxy (2), GObject.Object (1), ModemManager.GdbusModemCdma (3) | 
|---|
Fields¶
| Inherited: | Gio.DBusProxy (2), GObject.Object (1), ModemManager.GdbusModemCdma (3) | 
|---|
| Name | Type | Access | Description | 
|---|---|---|---|
| parent | ModemManager.GdbusModemCdmaProxy | r | |
| unused | object | r | 
Class Details¶
- 
class ModemManager.ModemCdma(**kwargs)¶
- Bases: - ModemManager.GdbusModemCdmaProxy- Abstract: - No - Structure: - ModemManager.ModemCdmaClass- The - ModemManager.ModemCdmastructure contains private data and should only be accessed using the provided API.- 
activate(carrier, cancellable, callback, *user_data)¶
- Parameters: - carrier (str) – Name of the carrier.
- 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 provision the modem for use with a given carrier using the modem’s OTA activation functionality, if any. - 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.ModemCdma.activate_finish() to get the result of the operation.- See - ModemManager.ModemCdma.activate_sync() for the synchronous, blocking version of this method.- New in version 1.0. 
- carrier (
 - 
activate_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.ModemCdma.activate().- Raises: - GLib.Error- Returns: - Trueif the activation was successful,- Falseif error is set.- Return type: - bool- Finishes an operation started with - ModemManager.ModemCdma.activate().- New in version 1.0. 
 - 
activate_manual(properties, cancellable, callback, *user_data)¶
- Parameters: - properties (ModemManager.CdmaManualActivationProperties) – AModemManager.CdmaManualActivationProperties.
- 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 provision the modem with the given properties. - 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.ModemCdma.activate_manual_finish() to get the result of the operation.- See - ModemManager.ModemCdma.activate_manual_sync() for the synchronous, blocking version of this method.- New in version 1.0. 
- properties (
 - 
activate_manual_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.ModemCdma.activate_manual().- Raises: - GLib.Error- Returns: - Trueif the activation was successful,- Falseif error is set.- Return type: - bool- Finishes an operation started with - ModemManager.ModemCdma.activate_manual().- New in version 1.0. 
 - 
activate_manual_sync(properties, cancellable)¶
- Parameters: - properties (ModemManager.CdmaManualActivationProperties) – AModemManager.CdmaManualActivationProperties.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
 - Raises: - Returns: - Trueif the activation was successful,- Falseif error is set.- Return type: - Synchronously requests to provision the modem with the given properties. - The calling thread is blocked until a reply is received. See - ModemManager.ModemCdma.activate_manual() for the asynchronous version of this method.- New in version 1.0. 
- properties (
 - 
activate_sync(carrier, cancellable)¶
- Parameters: - carrier (str) – Name of the carrier.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
 - Raises: - Returns: - Trueif the activation was successful,- Falseif error is set.- Return type: - Synchronously requests to provision the modem for use with a given carrier using the modem’s OTA activation functionality, if any. - The calling thread is blocked until a reply is received. See - ModemManager.ModemCdma.activate() for the asynchronous version of this method.- New in version 1.0. 
- carrier (
 - 
dup_esn()¶
- Returns: - The ESN, or - Noneif none available. The returned value should be freed with- GLib.free().- Return type: - str- Gets a copy of the - Electronic Serial Number, as reported by this - ModemManager.ModemCdma.- The ESN is superceded by MEID, but still used in older devices. - New in version 1.0. 
 - 
dup_meid()¶
- Returns: - The MEID, or - Noneif none available. The returned value should be freed with- GLib.free().- Return type: - str- Gets a copy of the - Mobile Equipment Identifier, as reported by this - ModemManager.ModemCdma.- 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_activation_state()¶
- Returns: - a - ModemManager.ModemCdmaActivationState.- Return type: - ModemManager.ModemCdmaActivationState- Gets the state of the activation in the 3GPP2 network. - New in version 1.0. 
 - 
get_cdma1x_registration_state()¶
- Returns: - a - ModemManager.ModemCdmaRegistrationState.- Return type: - ModemManager.ModemCdmaRegistrationState- Gets the state of the registration in the CDMA 1x network. - New in version 1.0. 
 - 
get_esn()¶
- Returns: - The ESN, or - Noneif none available.- Return type: - str- Gets the - Electronic Serial Number, as reported by this - ModemManager.ModemCdma.- The ESN is superceded by MEID, but still used in older devices. - 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.ModemCdma.dup_esn() if on another thread.- New in version 1.0. 
 - 
get_evdo_registration_state()¶
- Returns: - a - ModemManager.ModemCdmaRegistrationState.- Return type: - ModemManager.ModemCdmaRegistrationState- Gets the state of the registration in the EV-DO network. - New in version 1.0. 
 - 
get_meid()¶
- Returns: - The MEID, or - Noneif none available.- Return type: - str- Gets the - Mobile Equipment Identifier, as reported by this - ModemManager.ModemCdma.- 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.ModemCdma.dup_meid() if on another thread.- New in version 1.0. 
 - 
get_nid()¶
- Returns: - The NID, or - ModemManager.MODEM_CDMA_NID_UNKNOWN.- Return type: - int- Gets the - Network Identifier of the serving CDMA 1x network, if known, and if the modem is registered with a CDMA 1x network. - 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_sid()¶
- Returns: - The SID, or - ModemManager.MODEM_CDMA_SID_UNKNOWN.- Return type: - int- Gets the - System Identifier of the serving CDMA 1x network, if known, and if the modem is registered with a CDMA 1x network. - New in version 1.0. 
 
-