ModemManager.ModemCdma¶
- Subclasses:
None
Methods¶
- Inherited:
ModemManager.GdbusModemCdmaProxy (6), Gio.DBusProxy (25), GObject.Object (37), Gio.AsyncInitable (4), Gio.DBusInterface (3), Gio.Initable (2), ModemManager.GdbusModemCdma (11)
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Signals¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
||
unused |
r |
Class Details¶
- class ModemManager.ModemCdma(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
ModemManager.ModemCdma
structure 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.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
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 loop
of the thread you are calling this method from. You can then callModemManager.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.
- activate_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.ModemCdma.activate
().- Raises:
- Returns:
True
if the activation was successful,False
if error is set.- Return type:
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.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously requests to provision the modem with the given properties.
When the operation is finished, callback will be invoked in the
thread-default main loop
of the thread you are calling this method from. You can then callModemManager.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.
- activate_manual_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.ModemCdma.activate_manual
().- Raises:
- Returns:
True
if the activation was successful,False
if error is set.- Return type:
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.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
True
if the activation was successful,False
if 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.
- activate_sync(carrier, cancellable)¶
- Parameters:
carrier (
str
) – Name of the carrier.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
True
if the activation was successful,False
if 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.
- dup_esn()¶
- Returns:
The ESN, or
None
if none available. The returned value should be freed withGLib.free
().- Return type:
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
None
if none available. The returned value should be freed withGLib.free
().- Return type:
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 withGLib.free
().- Return type:
Gets a copy of the DBus path of the
ModemManager.Object
object which implements this interface.New in version 1.0.
- get_activation_state()¶
- Returns:
- Return type:
Gets the state of the activation in the 3GPP2 network.
New in version 1.0.
- get_cdma1x_registration_state()¶
- Returns:
- Return type:
Gets the state of the registration in the CDMA 1x network.
New in version 1.0.
- get_esn()¶
-
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:
- Return type:
Gets the state of the registration in the EV-DO network.
New in version 1.0.
- get_meid()¶
-
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:
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.Object
object.- Return type:
Gets the DBus path of the
ModemManager.Object
which implements this interface.New in version 1.0.
- get_sid()¶
- Returns:
The SID, or
ModemManager.MODEM_CDMA_SID_UNKNOWN
.- Return type:
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.