ModemManager.GdbusModemCdma¶
- Implementations:
ModemManager.GdbusModemCdmaProxy
,ModemManager.GdbusModemCdmaSkeleton
Methods¶
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
ActivationState |
||
r/w |
Cdma1xRegistrationState |
||
r/w |
Esn |
||
r/w |
EvdoRegistrationState |
||
r/w |
Meid |
||
r/w |
Nid |
||
r/w |
Sid |
Signals¶
Name |
Short Description |
---|---|
On the client-side, this signal is emitted whenever the D-Bus signal ‘“ActivationStateChanged” [gdbus-signal-org-freedesktop-ModemManager1-Modem-ModemCdma.ActivationStateChanged]’ is received. |
|
Signal emitted when a remote caller is invoking the ‘Activate() [gdbus-method-org-freedesktop-ModemManager1-Modem-ModemCdma.Activate]’ D-Bus method. |
|
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:
- Structure:
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:
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.Object
derived 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.Object
properties in theModemManager.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:
arg_carrier_code (
str
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
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 callModemManager.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
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.GdbusModemCdma.call_activate
().- Raises:
- Returns:
- Return type:
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.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
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 callModemManager.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
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.GdbusModemCdma.call_activate_manual
().- Raises:
- Returns:
- Return type:
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.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- 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.
- call_activate_sync(arg_carrier_code, cancellable)¶
- Parameters:
arg_carrier_code (
str
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- 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.
- complete_activate(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.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
) – AGio.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:
invocation (
Gio.DBusMethodInvocation
) –arg_carrier_code (
str
) –
- Return type:
- do_handle_activate_manual(invocation, arg_properties) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_properties (
GLib.Variant
) –
- Return type:
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 signalarg_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.
- 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 signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_carrier_code (
str
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to 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 callModemManager.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, theGio.DBusError.UNKNOWN_METHOD
error is returned.
- 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 signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_properties (
GLib.Variant
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to 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 callModemManager.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, theGio.DBusError.UNKNOWN_METHOD
error is returned.
Property Details¶
- ModemManager.GdbusModemCdma.props.activation_state¶
-
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¶
-
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¶
-
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¶
-
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¶
-
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¶
-
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¶
-
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.