ModemManager.GdbusOrgFreedesktopModemManager1¶
| Implementations: | |
|---|---|
| ModemManager.GdbusOrgFreedesktopModemManager1Proxy,ModemManager.GdbusOrgFreedesktopModemManager1Skeleton | |
Methods¶
| class | interface_info() | 
| class | override_properties(klass, property_id_begin) | 
| call_inhibit_device(arg_uid, arg_inhibit, cancellable, callback, *user_data) | |
| call_inhibit_device_finish(res) | |
| call_inhibit_device_sync(arg_uid, arg_inhibit, cancellable) | |
| call_report_kernel_event(arg_properties, cancellable, callback, *user_data) | |
| call_report_kernel_event_finish(res) | |
| call_report_kernel_event_sync(arg_properties, cancellable) | |
| call_scan_devices(cancellable, callback, *user_data) | |
| call_scan_devices_finish(res) | |
| call_scan_devices_sync(cancellable) | |
| call_set_logging(arg_level, cancellable, callback, *user_data) | |
| call_set_logging_finish(res) | |
| call_set_logging_sync(arg_level, cancellable) | |
| complete_inhibit_device(invocation) | |
| complete_report_kernel_event(invocation) | |
| complete_scan_devices(invocation) | |
| complete_set_logging(invocation) | 
Virtual Methods¶
| do_handle_inhibit_device(invocation, arg_uid, arg_inhibit) | |
| do_handle_report_kernel_event(invocation, arg_properties) | |
| do_handle_scan_devices(invocation) | |
| do_handle_set_logging(invocation, arg_level) | 
Signals¶
| Name | Short Description | 
|---|---|
| handle-inhibit-device | Signal emitted when a remote caller is invoking the ‘InhibitDevice() [gdbus-method-org-freedesktop-ModemManager1.InhibitDevice]’ D-Bus method. | 
| handle-report-kernel-event | Signal emitted when a remote caller is invoking the ‘ReportKernelEvent() [gdbus-method-org-freedesktop-ModemManager1.ReportKernelEvent]’ D-Bus method. | 
| handle-scan-devices | Signal emitted when a remote caller is invoking the ‘ScanDevices() [gdbus-method-org-freedesktop-ModemManager1.ScanDevices]’ D-Bus method. | 
| handle-set-logging | Signal emitted when a remote caller is invoking the ‘SetLogging() [gdbus-method-org-freedesktop-ModemManager1.SetLogging]’ D-Bus method. | 
Fields¶
None
Class Details¶
- 
class ModemManager.GdbusOrgFreedesktopModemManager1¶
- Bases: - GObject.GInterface- Structure: - ModemManager.GdbusOrgFreedesktopModemManager1Iface- Abstract interface type for the D-Bus interface ‘org.freedesktop.ModemManager1 [gdbus-interface-org-freedesktop-ModemManager1.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 [gdbus-interface-org-freedesktop-ModemManager1.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.GdbusOrgFreedesktopModemManager1interface for a concrete class. The properties are overridden in the order they are defined.
- klass (
 - 
call_inhibit_device(arg_uid, arg_inhibit, cancellable, callback, *user_data)¶
- Parameters: - arg_uid (str) – Argument to pass with the method invocation.
- arg_inhibit (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 ‘InhibitDevice() [gdbus-method-org-freedesktop-ModemManager1.InhibitDevice]’ 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.GdbusOrgFreedesktopModemManager1.call_inhibit_device_finish() to get the result of the operation.- See - ModemManager.GdbusOrgFreedesktopModemManager1.call_inhibit_device_sync() for the synchronous, blocking version of this method.
- arg_uid (
 - 
call_inhibit_device_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.GdbusOrgFreedesktopModemManager1.call_inhibit_device().- Raises: - GLib.Error- Returns: - Trueif the call succeeded,- Falseif error is set.- Return type: - bool- Finishes an operation started with - ModemManager.GdbusOrgFreedesktopModemManager1.call_inhibit_device().
 - 
call_inhibit_device_sync(arg_uid, arg_inhibit, cancellable)¶
- Parameters: - arg_uid (str) – Argument to pass with the method invocation.
- arg_inhibit (bool) – Argument to pass with the method invocation.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
 - Raises: - Returns: - Return type: - Synchronously invokes the ‘InhibitDevice() [gdbus-method-org-freedesktop-ModemManager1.InhibitDevice]’ D-Bus method on self. The calling thread is blocked until a reply is received. - See - ModemManager.GdbusOrgFreedesktopModemManager1.call_inhibit_device() for the asynchronous version of this method.
- arg_uid (
 - 
call_report_kernel_event(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 ‘ReportKernelEvent() [gdbus-method-org-freedesktop-ModemManager1.ReportKernelEvent]’ 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.GdbusOrgFreedesktopModemManager1.call_report_kernel_event_finish() to get the result of the operation.- See - ModemManager.GdbusOrgFreedesktopModemManager1.call_report_kernel_event_sync() for the synchronous, blocking version of this method.
- arg_properties (
 - 
call_report_kernel_event_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.GdbusOrgFreedesktopModemManager1.call_report_kernel_event().- Raises: - GLib.Error- Returns: - Trueif the call succeeded,- Falseif error is set.- Return type: - bool- Finishes an operation started with - ModemManager.GdbusOrgFreedesktopModemManager1.call_report_kernel_event().
 - 
call_report_kernel_event_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 ‘ReportKernelEvent() [gdbus-method-org-freedesktop-ModemManager1.ReportKernelEvent]’ D-Bus method on self. The calling thread is blocked until a reply is received. - See - ModemManager.GdbusOrgFreedesktopModemManager1.call_report_kernel_event() for the asynchronous version of this method.
- arg_properties (
 - 
call_scan_devices(cancellable, callback, *user_data)¶
- Parameters: - 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 ‘ScanDevices() [gdbus-method-org-freedesktop-ModemManager1.ScanDevices]’ 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.GdbusOrgFreedesktopModemManager1.call_scan_devices_finish() to get the result of the operation.- See - ModemManager.GdbusOrgFreedesktopModemManager1.call_scan_devices_sync() for the synchronous, blocking version of this method.
- cancellable (
 - 
call_scan_devices_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.GdbusOrgFreedesktopModemManager1.call_scan_devices().- Raises: - GLib.Error- Returns: - Trueif the call succeeded,- Falseif error is set.- Return type: - bool- Finishes an operation started with - ModemManager.GdbusOrgFreedesktopModemManager1.call_scan_devices().
 - 
call_scan_devices_sync(cancellable)¶
- Parameters: - cancellable ( - Gio.Cancellableor- None) – A- Gio.Cancellableor- None.- Raises: - GLib.Error- Returns: - Trueif the call succeeded,- Falseif error is set.- Return type: - bool- Synchronously invokes the ‘ScanDevices() [gdbus-method-org-freedesktop-ModemManager1.ScanDevices]’ D-Bus method on self. The calling thread is blocked until a reply is received. - See - ModemManager.GdbusOrgFreedesktopModemManager1.call_scan_devices() for the asynchronous version of this method.
 - 
call_set_logging(arg_level, cancellable, callback, *user_data)¶
- Parameters: - arg_level (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 ‘SetLogging() [gdbus-method-org-freedesktop-ModemManager1.SetLogging]’ 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.GdbusOrgFreedesktopModemManager1.call_set_logging_finish() to get the result of the operation.- See - ModemManager.GdbusOrgFreedesktopModemManager1.call_set_logging_sync() for the synchronous, blocking version of this method.
- arg_level (
 - 
call_set_logging_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.GdbusOrgFreedesktopModemManager1.call_set_logging().- Raises: - GLib.Error- Returns: - Trueif the call succeeded,- Falseif error is set.- Return type: - bool- Finishes an operation started with - ModemManager.GdbusOrgFreedesktopModemManager1.call_set_logging().
 - 
call_set_logging_sync(arg_level, cancellable)¶
- Parameters: - arg_level (str) – Argument to pass with the method invocation.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
 - Raises: - Returns: - Return type: - Synchronously invokes the ‘SetLogging() [gdbus-method-org-freedesktop-ModemManager1.SetLogging]’ D-Bus method on self. The calling thread is blocked until a reply is received. - See - ModemManager.GdbusOrgFreedesktopModemManager1.call_set_logging() for the asynchronous version of this method.
- arg_level (
 - 
complete_inhibit_device(invocation)¶
- Parameters: - invocation ( - Gio.DBusMethodInvocation) – A- Gio.DBusMethodInvocation.- Helper function used in service implementations to finish handling invocations of the ‘InhibitDevice() [gdbus-method-org-freedesktop-ModemManager1.InhibitDevice]’ 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_report_kernel_event(invocation)¶
- Parameters: - invocation ( - Gio.DBusMethodInvocation) – A- Gio.DBusMethodInvocation.- Helper function used in service implementations to finish handling invocations of the ‘ReportKernelEvent() [gdbus-method-org-freedesktop-ModemManager1.ReportKernelEvent]’ 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_scan_devices(invocation)¶
- Parameters: - invocation ( - Gio.DBusMethodInvocation) – A- Gio.DBusMethodInvocation.- Helper function used in service implementations to finish handling invocations of the ‘ScanDevices() [gdbus-method-org-freedesktop-ModemManager1.ScanDevices]’ 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_set_logging(invocation)¶
- Parameters: - invocation ( - Gio.DBusMethodInvocation) – A- Gio.DBusMethodInvocation.- Helper function used in service implementations to finish handling invocations of the ‘SetLogging() [gdbus-method-org-freedesktop-ModemManager1.SetLogging]’ 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_inhibit_device(invocation, arg_uid, arg_inhibit) virtual¶
- Parameters: - invocation (Gio.DBusMethodInvocation) –
- arg_uid (str) –
- arg_inhibit (bool) –
 - Return type: 
- invocation (
 - 
do_handle_report_kernel_event(invocation, arg_properties) virtual¶
- Parameters: - invocation (Gio.DBusMethodInvocation) –
- arg_properties (GLib.Variant) –
 - Return type: 
- invocation (
 - 
do_handle_scan_devices(invocation) virtual¶
- Parameters: - invocation ( - Gio.DBusMethodInvocation) –- Return type: - bool
 - 
do_handle_set_logging(invocation, arg_level) virtual¶
- Parameters: - invocation (Gio.DBusMethodInvocation) –
- arg_level (str) –
 - Return type: 
- invocation (
 
- 
classmethod 
Signal Details¶
- 
ModemManager.GdbusOrgFreedesktopModemManager1.signals.handle_inhibit_device(gdbus_org_freedesktop_modem_manager1, invocation, arg_uid, arg_inhibit)¶
- Signal Name: - handle-inhibit-device- Flags: - Parameters: - gdbus_org_freedesktop_modem_manager1 (ModemManager.GdbusOrgFreedesktopModemManager1) – The object which received the signal
- invocation (Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
- arg_uid (str) – Argument passed by remote caller.
- arg_inhibit (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 ‘InhibitDevice() [gdbus-method-org-freedesktop-ModemManager1.InhibitDevice]’ 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.GdbusOrgFreedesktopModemManager1.complete_inhibit_device() 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_org_freedesktop_modem_manager1 (
- 
ModemManager.GdbusOrgFreedesktopModemManager1.signals.handle_report_kernel_event(gdbus_org_freedesktop_modem_manager1, invocation, arg_properties)¶
- Signal Name: - handle-report-kernel-event- Flags: - Parameters: - gdbus_org_freedesktop_modem_manager1 (ModemManager.GdbusOrgFreedesktopModemManager1) – 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 ‘ReportKernelEvent() [gdbus-method-org-freedesktop-ModemManager1.ReportKernelEvent]’ 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.GdbusOrgFreedesktopModemManager1.complete_report_kernel_event() 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_org_freedesktop_modem_manager1 (
- 
ModemManager.GdbusOrgFreedesktopModemManager1.signals.handle_scan_devices(gdbus_org_freedesktop_modem_manager1, invocation)¶
- Signal Name: - handle-scan-devices- Flags: - Parameters: - gdbus_org_freedesktop_modem_manager1 (ModemManager.GdbusOrgFreedesktopModemManager1) – The object which received the signal
- invocation (Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
 - Returns: - Trueif the invocation was handled,- Falseto let other signal handlers run.- Return type: - Signal emitted when a remote caller is invoking the ‘ScanDevices() [gdbus-method-org-freedesktop-ModemManager1.ScanDevices]’ 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.GdbusOrgFreedesktopModemManager1.complete_scan_devices() 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_org_freedesktop_modem_manager1 (
- 
ModemManager.GdbusOrgFreedesktopModemManager1.signals.handle_set_logging(gdbus_org_freedesktop_modem_manager1, invocation, arg_level)¶
- Signal Name: - handle-set-logging- Flags: - Parameters: - gdbus_org_freedesktop_modem_manager1 (ModemManager.GdbusOrgFreedesktopModemManager1) – The object which received the signal
- invocation (Gio.DBusMethodInvocation) – AGio.DBusMethodInvocation.
- arg_level (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 ‘SetLogging() [gdbus-method-org-freedesktop-ModemManager1.SetLogging]’ 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.GdbusOrgFreedesktopModemManager1.complete_set_logging() 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_org_freedesktop_modem_manager1 (
Property Details¶
- 
ModemManager.GdbusOrgFreedesktopModemManager1.props.version¶
- Name: - version- Type: - str- Default Value: - None- Flags: - READABLE,- WRITABLE- Represents the D-Bus property ‘“Version” [gdbus-property-org-freedesktop-ModemManager1.Version]’. - 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.