ModemManager.GdbusOrgFreedesktopModemManager1

g GObject.GInterface GObject.GInterface ModemManager.GdbusOrgFreedesktopModemManager1 ModemManager.GdbusOrgFreedesktopModemManager1 GObject.GInterface->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)

Properties

Name Type Flags Short Description
version str r/w Version

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:
Returns:

The last property id.

Return type:

int

Overrides all GObject.Object properties in the ModemManager.GdbusOrgFreedesktopModemManager1 interface for a concrete class. The properties are overridden in the order they are defined.

call_inhibit_device(arg_uid, arg_inhibit, cancellable, callback, *user_data)
Parameters:

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.

call_inhibit_device_finish(res)
Parameters:res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.GdbusOrgFreedesktopModemManager1.call_inhibit_device().
Raises:GLib.Error
Returns:True if the call succeeded, False if 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:
Raises:

GLib.Error

Returns:

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

Return type:

bool

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.

call_report_kernel_event(arg_properties, cancellable, callback, *user_data)
Parameters:

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.

call_report_kernel_event_finish(res)
Parameters:res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.GdbusOrgFreedesktopModemManager1.call_report_kernel_event().
Raises:GLib.Error
Returns:True if the call succeeded, False if 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:
Raises:

GLib.Error

Returns:

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

Return type:

bool

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.

call_scan_devices(cancellable, callback, *user_data)
Parameters:

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.

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

Finishes an operation started with ModemManager.GdbusOrgFreedesktopModemManager1.call_scan_devices().

call_scan_devices_sync(cancellable)
Parameters:cancellable (Gio.Cancellable or None) – A Gio.Cancellable or None.
Raises:GLib.Error
Returns:True if the call succeeded, False if 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:

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.

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

Finishes an operation started with ModemManager.GdbusOrgFreedesktopModemManager1.call_set_logging().

call_set_logging_sync(arg_level, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

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

Return type:

bool

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.

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:
Return type:

bool

do_handle_report_kernel_event(invocation, arg_properties) virtual
Parameters:
Return type:

bool

do_handle_scan_devices(invocation) virtual
Parameters:invocation (Gio.DBusMethodInvocation) –
Return type:bool
do_handle_set_logging(invocation, arg_level) virtual
Parameters:
Return type:

bool

Signal Details

ModemManager.GdbusOrgFreedesktopModemManager1.signals.handle_inhibit_device(gdbus_org_freedesktop_modem_manager1, invocation, arg_uid, arg_inhibit)
Signal Name:

handle-inhibit-device

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 ‘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_METHOD error is returned.

ModemManager.GdbusOrgFreedesktopModemManager1.signals.handle_report_kernel_event(gdbus_org_freedesktop_modem_manager1, invocation, arg_properties)
Signal Name:

handle-report-kernel-event

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 ‘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_METHOD error is returned.

ModemManager.GdbusOrgFreedesktopModemManager1.signals.handle_scan_devices(gdbus_org_freedesktop_modem_manager1, invocation)
Signal Name:

handle-scan-devices

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 ‘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_METHOD error is returned.

ModemManager.GdbusOrgFreedesktopModemManager1.signals.handle_set_logging(gdbus_org_freedesktop_modem_manager1, invocation, arg_level)
Signal Name:

handle-set-logging

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 ‘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_METHOD error is returned.

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.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.