ModemManager.GdbusSim

g GObject.GInterface GObject.GInterface ModemManager.GdbusSim ModemManager.GdbusSim GObject.GInterface->ModemManager.GdbusSim

Implementations:
 ModemManager.GdbusSimProxy, ModemManager.GdbusSimSkeleton

Methods

class interface_info ()
class override_properties (klass, property_id_begin)
  call_change_pin (arg_old_pin, arg_new_pin, cancellable, callback, *user_data)
  call_change_pin_finish (res)
  call_change_pin_sync (arg_old_pin, arg_new_pin, cancellable)
  call_enable_pin (arg_pin, arg_enabled, cancellable, callback, *user_data)
  call_enable_pin_finish (res)
  call_enable_pin_sync (arg_pin, arg_enabled, cancellable)
  call_send_pin (arg_pin, cancellable, callback, *user_data)
  call_send_pin_finish (res)
  call_send_pin_sync (arg_pin, cancellable)
  call_send_puk (arg_puk, arg_pin, cancellable, callback, *user_data)
  call_send_puk_finish (res)
  call_send_puk_sync (arg_puk, arg_pin, cancellable)
  complete_change_pin (invocation)
  complete_enable_pin (invocation)
  complete_send_pin (invocation)
  complete_send_puk (invocation)

Virtual Methods

  do_handle_change_pin (invocation, arg_old_pin, arg_new_pin)
  do_handle_enable_pin (invocation, arg_pin, arg_enabled)
  do_handle_send_pin (invocation, arg_pin)
  do_handle_send_puk (invocation, arg_puk, arg_pin)

Properties

Name Type Flags Short Description
emergency-numbers [str] r/w EmergencyNumbers
imsi str r/w Imsi
operator-identifier str r/w OperatorIdentifier
operator-name str r/w OperatorName
sim-identifier str r/w SimIdentifier

Signals

Name Short Description
handle-change-pin Signal emitted when a remote caller is invoking the ‘ChangePin() [gdbus-method-org-freedesktop-ModemManager1-Sim.ChangePin]’ D-Bus method.
handle-enable-pin Signal emitted when a remote caller is invoking the ‘EnablePin() [gdbus-method-org-freedesktop-ModemManager1-Sim.EnablePin]’ D-Bus method.
handle-send-pin Signal emitted when a remote caller is invoking the ‘SendPin() [gdbus-method-org-freedesktop-ModemManager1-Sim.SendPin]’ D-Bus method.
handle-send-puk Signal emitted when a remote caller is invoking the ‘SendPuk() [gdbus-method-org-freedesktop-ModemManager1-Sim.SendPuk]’ D-Bus method.

Fields

None

Class Details

class ModemManager.GdbusSim
Bases:GObject.GInterface
Structure:ModemManager.GdbusSimIface

Abstract interface type for the D-Bus interface ‘org.freedesktop.ModemManager1.Sim [gdbus-interface-org-freedesktop-ModemManager1-Sim.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.Sim [gdbus-interface-org-freedesktop-ModemManager1-Sim.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.GdbusSim interface for a concrete class. The properties are overridden in the order they are defined.

call_change_pin(arg_old_pin, arg_new_pin, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘ChangePin() [gdbus-method-org-freedesktop-ModemManager1-Sim.ChangePin]’ 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.GdbusSim.call_change_pin_finish() to get the result of the operation.

See ModemManager.GdbusSim.call_change_pin_sync() for the synchronous, blocking version of this method.

call_change_pin_finish(res)
Parameters:res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.GdbusSim.call_change_pin().
Raises:GLib.Error
Returns:True if the call succeeded, False if error is set.
Return type:bool

Finishes an operation started with ModemManager.GdbusSim.call_change_pin().

call_change_pin_sync(arg_old_pin, arg_new_pin, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

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

See ModemManager.GdbusSim.call_change_pin() for the asynchronous version of this method.

call_enable_pin(arg_pin, arg_enabled, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘EnablePin() [gdbus-method-org-freedesktop-ModemManager1-Sim.EnablePin]’ 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.GdbusSim.call_enable_pin_finish() to get the result of the operation.

See ModemManager.GdbusSim.call_enable_pin_sync() for the synchronous, blocking version of this method.

call_enable_pin_finish(res)
Parameters:res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.GdbusSim.call_enable_pin().
Raises:GLib.Error
Returns:True if the call succeeded, False if error is set.
Return type:bool

Finishes an operation started with ModemManager.GdbusSim.call_enable_pin().

call_enable_pin_sync(arg_pin, arg_enabled, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

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

See ModemManager.GdbusSim.call_enable_pin() for the asynchronous version of this method.

call_send_pin(arg_pin, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘SendPin() [gdbus-method-org-freedesktop-ModemManager1-Sim.SendPin]’ 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.GdbusSim.call_send_pin_finish() to get the result of the operation.

See ModemManager.GdbusSim.call_send_pin_sync() for the synchronous, blocking version of this method.

call_send_pin_finish(res)
Parameters:res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.GdbusSim.call_send_pin().
Raises:GLib.Error
Returns:True if the call succeeded, False if error is set.
Return type:bool

Finishes an operation started with ModemManager.GdbusSim.call_send_pin().

call_send_pin_sync(arg_pin, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

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

See ModemManager.GdbusSim.call_send_pin() for the asynchronous version of this method.

call_send_puk(arg_puk, arg_pin, cancellable, callback, *user_data)
Parameters:

Asynchronously invokes the ‘SendPuk() [gdbus-method-org-freedesktop-ModemManager1-Sim.SendPuk]’ 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.GdbusSim.call_send_puk_finish() to get the result of the operation.

See ModemManager.GdbusSim.call_send_puk_sync() for the synchronous, blocking version of this method.

call_send_puk_finish(res)
Parameters:res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.GdbusSim.call_send_puk().
Raises:GLib.Error
Returns:True if the call succeeded, False if error is set.
Return type:bool

Finishes an operation started with ModemManager.GdbusSim.call_send_puk().

call_send_puk_sync(arg_puk, arg_pin, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

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

See ModemManager.GdbusSim.call_send_puk() for the asynchronous version of this method.

complete_change_pin(invocation)
Parameters:invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the ‘ChangePin() [gdbus-method-org-freedesktop-ModemManager1-Sim.ChangePin]’ 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_enable_pin(invocation)
Parameters:invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the ‘EnablePin() [gdbus-method-org-freedesktop-ModemManager1-Sim.EnablePin]’ 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_send_pin(invocation)
Parameters:invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the ‘SendPin() [gdbus-method-org-freedesktop-ModemManager1-Sim.SendPin]’ 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_send_puk(invocation)
Parameters:invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.

Helper function used in service implementations to finish handling invocations of the ‘SendPuk() [gdbus-method-org-freedesktop-ModemManager1-Sim.SendPuk]’ 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.

do_handle_change_pin(invocation, arg_old_pin, arg_new_pin) virtual
Parameters:
Return type:

bool

do_handle_enable_pin(invocation, arg_pin, arg_enabled) virtual
Parameters:
Return type:

bool

do_handle_send_pin(invocation, arg_pin) virtual
Parameters:
Return type:

bool

do_handle_send_puk(invocation, arg_puk, arg_pin) virtual
Parameters:
Return type:

bool

Signal Details

ModemManager.GdbusSim.signals.handle_change_pin(gdbus_sim, invocation, arg_old_pin, arg_new_pin)
Signal Name:

handle-change-pin

Flags:

RUN_LAST

Parameters:
Returns:

True if the invocation was handled, False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the ‘ChangePin() [gdbus-method-org-freedesktop-ModemManager1-Sim.ChangePin]’ 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.GdbusSim.complete_change_pin() 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_METHOD error is returned.

ModemManager.GdbusSim.signals.handle_enable_pin(gdbus_sim, invocation, arg_pin, arg_enabled)
Signal Name:

handle-enable-pin

Flags:

RUN_LAST

Parameters:
Returns:

True if the invocation was handled, False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the ‘EnablePin() [gdbus-method-org-freedesktop-ModemManager1-Sim.EnablePin]’ 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.GdbusSim.complete_enable_pin() 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_METHOD error is returned.

ModemManager.GdbusSim.signals.handle_send_pin(gdbus_sim, invocation, arg_pin)
Signal Name:

handle-send-pin

Flags:

RUN_LAST

Parameters:
Returns:

True if the invocation was handled, False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the ‘SendPin() [gdbus-method-org-freedesktop-ModemManager1-Sim.SendPin]’ 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.GdbusSim.complete_send_pin() 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_METHOD error is returned.

ModemManager.GdbusSim.signals.handle_send_puk(gdbus_sim, invocation, arg_puk, arg_pin)
Signal Name:

handle-send-puk

Flags:

RUN_LAST

Parameters:
Returns:

True if the invocation was handled, False to let other signal handlers run.

Return type:

bool

Signal emitted when a remote caller is invoking the ‘SendPuk() [gdbus-method-org-freedesktop-ModemManager1-Sim.SendPuk]’ 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.GdbusSim.complete_send_puk() 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_METHOD error is returned.

Property Details

ModemManager.GdbusSim.props.emergency_numbers
Name:emergency-numbers
Type:[str]
Default Value:[]
Flags:READABLE, WRITABLE

Represents the D-Bus property ‘“EmergencyNumbers” [gdbus-property-org-freedesktop-ModemManager1-Sim.EmergencyNumbers]’.

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.GdbusSim.props.imsi
Name:imsi
Type:str
Default Value:None
Flags:READABLE, WRITABLE

Represents the D-Bus property ‘“Imsi” [gdbus-property-org-freedesktop-ModemManager1-Sim.Imsi]’.

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.GdbusSim.props.operator_identifier
Name:operator-identifier
Type:str
Default Value:None
Flags:READABLE, WRITABLE

Represents the D-Bus property ‘“OperatorIdentifier” [gdbus-property-org-freedesktop-ModemManager1-Sim.OperatorIdentifier]’.

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.GdbusSim.props.operator_name
Name:operator-name
Type:str
Default Value:None
Flags:READABLE, WRITABLE

Represents the D-Bus property ‘“OperatorName” [gdbus-property-org-freedesktop-ModemManager1-Sim.OperatorName]’.

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.GdbusSim.props.sim_identifier
Name:sim-identifier
Type:str
Default Value:None
Flags:READABLE, WRITABLE

Represents the D-Bus property ‘“SimIdentifier” [gdbus-property-org-freedesktop-ModemManager1-Sim.SimIdentifier]’.

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.