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: - 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.GdbusSiminterface for a concrete class. The properties are overridden in the order they are defined.
- klass (
 - 
call_change_pin(arg_old_pin, arg_new_pin, cancellable, callback, *user_data)¶
- Parameters: - arg_old_pin (str) – Argument to pass with the method invocation.
- arg_new_pin (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 ‘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.
- arg_old_pin (
 - 
call_change_pin_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.GdbusSim.call_change_pin().- Raises: - GLib.Error- Returns: - Trueif the call succeeded,- Falseif 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: - arg_old_pin (str) – Argument to pass with the method invocation.
- arg_new_pin (str) – Argument to pass with the method invocation.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
 - Raises: - Returns: - Return type: - 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.
- arg_old_pin (
 - 
call_enable_pin(arg_pin, arg_enabled, cancellable, callback, *user_data)¶
- Parameters: - arg_pin (str) – Argument to pass with the method invocation.
- arg_enabled (bool) – 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 ‘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.
- arg_pin (
 - 
call_enable_pin_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.GdbusSim.call_enable_pin().- Raises: - GLib.Error- Returns: - Trueif the call succeeded,- Falseif 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: - arg_pin (str) – Argument to pass with the method invocation.
- arg_enabled (bool) – Argument to pass with the method invocation.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
 - Raises: - Returns: - Return type: - 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.
- arg_pin (
 - 
call_send_pin(arg_pin, cancellable, callback, *user_data)¶
- Parameters: - arg_pin (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 ‘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.
- arg_pin (
 - 
call_send_pin_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.GdbusSim.call_send_pin().- Raises: - GLib.Error- Returns: - Trueif the call succeeded,- Falseif error is set.- Return type: - bool- Finishes an operation started with - ModemManager.GdbusSim.call_send_pin().
 - 
call_send_pin_sync(arg_pin, cancellable)¶
- Parameters: - arg_pin (str) – Argument to pass with the method invocation.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
 - Raises: - Returns: - Return type: - 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.
- arg_pin (
 - 
call_send_puk(arg_puk, arg_pin, cancellable, callback, *user_data)¶
- Parameters: - arg_puk (str) – Argument to pass with the method invocation.
- arg_pin (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 ‘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.
- arg_puk (
 - 
call_send_puk_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.GdbusSim.call_send_puk().- Raises: - GLib.Error- Returns: - Trueif the call succeeded,- Falseif 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: - arg_puk (str) – Argument to pass with the method invocation.
- arg_pin (str) – Argument to pass with the method invocation.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
 - Raises: - Returns: - Return type: - 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.
- arg_puk (
 - 
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: - invocation (Gio.DBusMethodInvocation) –
- arg_old_pin (str) –
- arg_new_pin (str) –
 - Return type: 
- invocation (
 - 
do_handle_enable_pin(invocation, arg_pin, arg_enabled) virtual¶
- Parameters: - invocation (Gio.DBusMethodInvocation) –
- arg_pin (str) –
- arg_enabled (bool) –
 - Return type: 
- invocation (
 - 
do_handle_send_pin(invocation, arg_pin) virtual¶
- Parameters: - invocation (Gio.DBusMethodInvocation) –
- arg_pin (str) –
 - Return type: 
- invocation (
 - 
do_handle_send_puk(invocation, arg_puk, arg_pin) virtual¶
- Parameters: - invocation (Gio.DBusMethodInvocation) –
- arg_puk (str) –
- arg_pin (str) –
 - Return type: 
- invocation (
 
- 
classmethod 
Signal Details¶
- 
ModemManager.GdbusSim.signals.handle_change_pin(gdbus_sim, invocation, arg_old_pin, arg_new_pin)¶
- Signal Name: - handle-change-pin- Flags: - Parameters: - gdbus_sim (ModemManager.GdbusSim) – The object which received the signal
- invocation (Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
- arg_old_pin (str) – Argument passed by remote caller.
- arg_new_pin (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 ‘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_METHODerror is returned.
- gdbus_sim (
- 
ModemManager.GdbusSim.signals.handle_enable_pin(gdbus_sim, invocation, arg_pin, arg_enabled)¶
- Signal Name: - handle-enable-pin- Flags: - Parameters: - gdbus_sim (ModemManager.GdbusSim) – The object which received the signal
- invocation (Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
- arg_pin (str) – Argument passed by remote caller.
- arg_enabled (bool) – 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 ‘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_METHODerror is returned.
- gdbus_sim (
- 
ModemManager.GdbusSim.signals.handle_send_pin(gdbus_sim, invocation, arg_pin)¶
- Signal Name: - handle-send-pin- Flags: - Parameters: - gdbus_sim (ModemManager.GdbusSim) – The object which received the signal
- invocation (Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
- arg_pin (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 ‘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_METHODerror is returned.
- gdbus_sim (
- 
ModemManager.GdbusSim.signals.handle_send_puk(gdbus_sim, invocation, arg_puk, arg_pin)¶
- Signal Name: - handle-send-puk- Flags: - Parameters: - gdbus_sim (ModemManager.GdbusSim) – The object which received the signal
- invocation (Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
- arg_puk (str) – Argument passed by remote caller.
- arg_pin (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 ‘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_METHODerror is returned.
- gdbus_sim (
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.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.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.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.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.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.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.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.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.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.