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: - klass (GObject.ObjectClass) – The class structure for aGObject.Objectderived class.
- property_id_begin (int) – The property id to assign to the first overridden property.
 - Returns: - The last property id. - Return type: - Overrides all - GObject.Objectproperties in the- ModemManager.GdbusModemCdmainterface for a concrete class. The properties are overridden in the order they are defined.
- klass (
 - 
call_activate(arg_carrier_code, cancellable, callback, *user_data)¶
- Parameters: - arg_carrier_code (str) – Argument to pass with the method invocation.
- 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 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.
- arg_carrier_code (
 - 
call_activate_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.GdbusModemCdma.call_activate().- Raises: - GLib.Error- Returns: - Trueif the call succeeded,- Falseif 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: - arg_properties (GLib.Variant) – Argument to pass with the method invocation.
- 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 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.
- arg_properties (
 - 
call_activate_manual_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.GdbusModemCdma.call_activate_manual().- Raises: - GLib.Error- Returns: - Trueif the call succeeded,- Falseif error is set.- Return type: - bool- Finishes an operation started with - ModemManager.GdbusModemCdma.call_activate_manual().
 - 
call_activate_manual_sync(arg_properties, cancellable)¶
- Parameters: - arg_properties (GLib.Variant) – Argument to pass with the method invocation.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
 - Raises: - Returns: - Return type: - 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.
- arg_properties (
 - 
call_activate_sync(arg_carrier_code, cancellable)¶
- Parameters: - arg_carrier_code (str) – Argument to pass with the method invocation.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
 - Raises: - Returns: - Return type: - 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.
- arg_carrier_code (
 - 
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. 
- arg_activation_state (
 - 
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) –
 
- arg_activation_state (
 - 
do_handle_activate(invocation, arg_carrier_code) virtual¶
- Parameters: - invocation (Gio.DBusMethodInvocation) –
- arg_carrier_code (str) –
 - Return type: 
- invocation (
 - 
do_handle_activate_manual(invocation, arg_properties) virtual¶
- Parameters: - invocation (Gio.DBusMethodInvocation) –
- arg_properties (GLib.Variant) –
 - Return type: 
- invocation (
 
- 
classmethod 
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: - Parameters: - gdbus_modem_cdma (ModemManager.GdbusModemCdma) – The object which received the signal
- arg_activation_state (int) – Argument.
- arg_activation_error (int) – Argument.
- arg_status_changes (GLib.Variant) – Argument.
 - 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. 
- gdbus_modem_cdma (
- 
ModemManager.GdbusModemCdma.signals.handle_activate(gdbus_modem_cdma, invocation, arg_carrier_code)¶
- Signal Name: - handle-activate- Flags: - Parameters: - gdbus_modem_cdma (ModemManager.GdbusModemCdma) – The object which received the signal
- invocation (Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
- arg_carrier_code (str) – Argument passed by remote caller.
 - Returns: - Trueif the invocation was handled,- Falseto let other signal handlers run.- Return type: - 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 order signal handlers will run. If no signal handler handles the invocation, the- Gio.DBusError.UNKNOWN_METHODerror is returned.
- gdbus_modem_cdma (
- 
ModemManager.GdbusModemCdma.signals.handle_activate_manual(gdbus_modem_cdma, invocation, arg_properties)¶
- Signal Name: - handle-activate-manual- Flags: - Parameters: - gdbus_modem_cdma (ModemManager.GdbusModemCdma) – The object which received the signal
- invocation (Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
- arg_properties (GLib.Variant) – Argument passed by remote caller.
 - Returns: - Trueif the invocation was handled,- Falseto let other signal handlers run.- Return type: - 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 order signal handlers will run. If no signal handler handles the invocation, the- Gio.DBusError.UNKNOWN_METHODerror is returned.
- gdbus_modem_cdma (
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.Objectproperty 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.Objectproperty 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.Objectproperty 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.Objectproperty 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.Objectproperty 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.Objectproperty 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.Objectproperty 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.