ModemManager.ModemCdma

g GObject.GInterface GObject.GInterface Gio.AsyncInitable Gio.AsyncInitable GObject.GInterface->Gio.AsyncInitable Gio.DBusInterface Gio.DBusInterface GObject.GInterface->Gio.DBusInterface Gio.Initable Gio.Initable GObject.GInterface->Gio.Initable ModemManager.GdbusModemCdma ModemManager.GdbusModemCdma GObject.GInterface->ModemManager.GdbusModemCdma GObject.Object GObject.Object Gio.DBusProxy Gio.DBusProxy GObject.Object->Gio.DBusProxy Gio.AsyncInitable->Gio.DBusProxy Gio.DBusInterface->Gio.DBusProxy ModemManager.GdbusModemCdmaProxy ModemManager.GdbusModemCdmaProxy Gio.DBusProxy->ModemManager.GdbusModemCdmaProxy Gio.Initable->Gio.DBusProxy ModemManager.GdbusModemCdma->ModemManager.GdbusModemCdmaProxy ModemManager.ModemCdma ModemManager.ModemCdma ModemManager.GdbusModemCdmaProxy->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:

GObject.ObjectClass (5)

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.ModemCdma structure contains private data and should only be accessed using the provided API.

activate(carrier, cancellable, callback, *user_data)
Parameters:

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 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.

activate_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.ModemCdma.activate().

Raises:

GLib.Error

Returns:

True if the activation was successful, False if 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:

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 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.

activate_manual_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.ModemCdma.activate_manual().

Raises:

GLib.Error

Returns:

True if the activation was successful, False if 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:
Raises:

GLib.Error

Returns:

True if the activation was successful, False if error is set.

Return type:

bool

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:
Raises:

GLib.Error

Returns:

True if the activation was successful, False if error is set.

Return type:

bool

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 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 None if 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.Object object 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 None if 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 None if 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.Object object.

Return type:

str

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:

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.