ModemManager.GdbusModemCdma

g GObject.GInterface GObject.GInterface ModemManager.GdbusModemCdma ModemManager.GdbusModemCdma GObject.GInterface->ModemManager.GdbusModemCdma

Implementations:

ModemManager.GdbusModemCdmaProxy, ModemManager.GdbusModemCdmaSkeleton

Methods

class

interface_info ()

class

override_properties (klass, property_id_begin)

call_activate (arg_carrier_code, cancellable, callback, *user_data)

call_activate_finish (res)

call_activate_manual (arg_properties, cancellable, callback, *user_data)

call_activate_manual_finish (res)

call_activate_manual_sync (arg_properties, cancellable)

call_activate_sync (arg_carrier_code, cancellable)

complete_activate (invocation)

complete_activate_manual (invocation)

emit_activation_state_changed (arg_activation_state, arg_activation_error, arg_status_changes)

Virtual Methods

do_activation_state_changed (arg_activation_state, arg_activation_error, arg_status_changes)

do_handle_activate (invocation, arg_carrier_code)

do_handle_activate_manual (invocation, arg_properties)

Properties

Name

Type

Flags

Short Description

activation-state

int

r/w

ActivationState

cdma1x-registration-state

int

r/w

Cdma1xRegistrationState

esn

str

r/w

Esn

evdo-registration-state

int

r/w

EvdoRegistrationState

meid

str

r/w

Meid

nid

int

r/w

Nid

sid

int

r/w

Sid

Signals

Name

Short Description

activation-state-changed

On the client-side, this signal is emitted whenever the D-Bus signal ‘“ActivationStateChanged” [gdbus-signal-org-freedesktop-ModemManager1-Modem-ModemCdma.ActivationStateChanged]’ is received.

handle-activate

Signal emitted when a remote caller is invoking the ‘Activate() [gdbus-method-org-freedesktop-ModemManager1-Modem-ModemCdma.Activate]’ D-Bus method.

handle-activate-manual

Signal emitted when a remote caller is invoking the ‘ActivateManual() [gdbus-method-org-freedesktop-ModemManager1-Modem-ModemCdma.ActivateManual]’ D-Bus method.

Fields

None

Class Details

class ModemManager.GdbusModemCdma
Bases:

GObject.GInterface

Structure:

ModemManager.GdbusModemCdmaIface

Abstract interface type for the D-Bus interface ‘org.freedesktop.ModemManager1.Modem.ModemCdma [gdbus-interface-org-freedesktop-ModemManager1-Modem-ModemCdma.top_of_page]’.

classmethod interface_info()
Returns:

A Gio.DBusInterfaceInfo. Do not free.

Return type:

Gio.DBusInterfaceInfo

Gets a machine-readable description of the ‘org.freedesktop.ModemManager1.Modem.ModemCdma [gdbus-interface-org-freedesktop-ModemManager1-Modem-ModemCdma.top_of_page]’ D-Bus interface.

classmethod override_properties(klass, property_id_begin)
Parameters:
Returns:

The last property id.

Return type:

int

Overrides all GObject.Object properties in the ModemManager.GdbusModemCdma interface for a concrete class. The properties are overridden in the order they are defined.

call_activate(arg_carrier_code, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘Activate() [gdbus-method-org-freedesktop-ModemManager1-Modem-ModemCdma.Activate]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see GLib.MainContext.push_thread_default()). You can then call ModemManager.GdbusModemCdma.call_activate_finish() to get the result of the operation.

See ModemManager.GdbusModemCdma.call_activate_sync() for the synchronous, blocking version of this method.

call_activate_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.GdbusModemCdma.call_activate().

Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Finishes an operation started with ModemManager.GdbusModemCdma.call_activate().

call_activate_manual(arg_properties, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘ActivateManual() [gdbus-method-org-freedesktop-ModemManager1-Modem-ModemCdma.ActivateManual]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see GLib.MainContext.push_thread_default()). You can then call ModemManager.GdbusModemCdma.call_activate_manual_finish() to get the result of the operation.

See ModemManager.GdbusModemCdma.call_activate_manual_sync() for the synchronous, blocking version of this method.

call_activate_manual_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.GdbusModemCdma.call_activate_manual().

Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Finishes an operation started with ModemManager.GdbusModemCdma.call_activate_manual().

call_activate_manual_sync(arg_properties, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Synchronously invokes the ‘ActivateManual() [gdbus-method-org-freedesktop-ModemManager1-Modem-ModemCdma.ActivateManual]’ D-Bus method on self. The calling thread is blocked until a reply is received.

See ModemManager.GdbusModemCdma.call_activate_manual() for the asynchronous version of this method.

call_activate_sync(arg_carrier_code, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True if the call succeeded, False if error is set.

Return type:

bool

Synchronously invokes the ‘Activate() [gdbus-method-org-freedesktop-ModemManager1-Modem-ModemCdma.Activate]’ D-Bus method on self. The calling thread is blocked until a reply is received.

See ModemManager.GdbusModemCdma.call_activate() for the asynchronous version of this method.

complete_activate(invocation)
Parameters:

invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the ‘Activate() [gdbus-method-org-freedesktop-ModemManager1-Modem-ModemCdma.Activate]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation, you cannot use it afterwards.

complete_activate_manual(invocation)
Parameters:

invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the ‘ActivateManual() [gdbus-method-org-freedesktop-ModemManager1-Modem-ModemCdma.ActivateManual]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation, you cannot use it afterwards.

emit_activation_state_changed(arg_activation_state, arg_activation_error, arg_status_changes)
Parameters:
  • arg_activation_state (int) – Argument to pass with the signal.

  • arg_activation_error (int) – Argument to pass with the signal.

  • arg_status_changes (GLib.Variant) – Argument to pass with the signal.

Emits the ‘“ActivationStateChanged” [gdbus-signal-org-freedesktop-ModemManager1-Modem-ModemCdma.ActivationStateChanged]’ D-Bus signal.

do_activation_state_changed(arg_activation_state, arg_activation_error, arg_status_changes) virtual
Parameters:
  • arg_activation_state (int) –

  • arg_activation_error (int) –

  • arg_status_changes (GLib.Variant) –

do_handle_activate(invocation, arg_carrier_code) virtual
Parameters:
Return type:

bool

do_handle_activate_manual(invocation, arg_properties) virtual
Parameters:
Return type:

bool

Signal Details

ModemManager.GdbusModemCdma.signals.activation_state_changed(gdbus_modem_cdma, arg_activation_state, arg_activation_error, arg_status_changes)
Signal Name:

activation-state-changed

Flags:

RUN_LAST

Parameters:

On the client-side, this signal is emitted whenever the D-Bus signal ‘“ActivationStateChanged” [gdbus-signal-org-freedesktop-ModemManager1-Modem-ModemCdma.ActivationStateChanged]’ is received.

On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.

ModemManager.GdbusModemCdma.signals.handle_activate(gdbus_modem_cdma, invocation, arg_carrier_code)
Signal Name:

handle-activate

Flags:

RUN_LAST

Parameters:
Returns:

Gio.DBUS_METHOD_INVOCATION_HANDLED or True if the invocation was handled, Gio.DBUS_METHOD_INVOCATION_UNHANDLED or False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the ‘Activate() [gdbus-method-org-freedesktop-ModemManager1-Modem-ModemCdma.Activate]’ D-Bus method.

If a signal handler returns True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call ModemManager.GdbusModemCdma.complete_activate() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

ModemManager.GdbusModemCdma.signals.handle_activate_manual(gdbus_modem_cdma, invocation, arg_properties)
Signal Name:

handle-activate-manual

Flags:

RUN_LAST

Parameters:
Returns:

Gio.DBUS_METHOD_INVOCATION_HANDLED or True if the invocation was handled, Gio.DBUS_METHOD_INVOCATION_UNHANDLED or False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the ‘ActivateManual() [gdbus-method-org-freedesktop-ModemManager1-Modem-ModemCdma.ActivateManual]’ D-Bus method.

If a signal handler returns True, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call ModemManager.GdbusModemCdma.complete_activate_manual() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the Gio.DBusError.UNKNOWN_METHOD error is returned.

Property Details

ModemManager.GdbusModemCdma.props.activation_state
Name:

activation-state

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“ActivationState” [gdbus-property-org-freedesktop-ModemManager1-Modem-ModemCdma.ActivationState]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

ModemManager.GdbusModemCdma.props.cdma1x_registration_state
Name:

cdma1x-registration-state

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“Cdma1xRegistrationState” [gdbus-property-org-freedesktop-ModemManager1-Modem-ModemCdma.Cdma1xRegistrationState]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

ModemManager.GdbusModemCdma.props.esn
Name:

esn

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“Esn” [gdbus-property-org-freedesktop-ModemManager1-Modem-ModemCdma.Esn]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

ModemManager.GdbusModemCdma.props.evdo_registration_state
Name:

evdo-registration-state

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“EvdoRegistrationState” [gdbus-property-org-freedesktop-ModemManager1-Modem-ModemCdma.EvdoRegistrationState]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

ModemManager.GdbusModemCdma.props.meid
Name:

meid

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“Meid” [gdbus-property-org-freedesktop-ModemManager1-Modem-ModemCdma.Meid]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

ModemManager.GdbusModemCdma.props.nid
Name:

nid

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“Nid” [gdbus-property-org-freedesktop-ModemManager1-Modem-ModemCdma.Nid]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

ModemManager.GdbusModemCdma.props.sid
Name:

sid

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Represents the D-Bus property ‘“Sid” [gdbus-property-org-freedesktop-ModemManager1-Modem-ModemCdma.Sid]’.

Since the D-Bus property for this GObject.Object property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.