ModemManager.GdbusOrgFreedesktopModemManager1¶
- Implementations:
ModemManager.GdbusOrgFreedesktopModemManager1Proxy
,ModemManager.GdbusOrgFreedesktopModemManager1Skeleton
Methods¶
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Version |
Signals¶
Name |
Short Description |
---|---|
Signal emitted when a remote caller is invoking the ‘InhibitDevice() [gdbus-method-org-freedesktop-ModemManager1.InhibitDevice]’ D-Bus method. |
|
Signal emitted when a remote caller is invoking the ‘ReportKernelEvent() [gdbus-method-org-freedesktop-ModemManager1.ReportKernelEvent]’ D-Bus method. |
|
Signal emitted when a remote caller is invoking the ‘ScanDevices() [gdbus-method-org-freedesktop-ModemManager1.ScanDevices]’ D-Bus method. |
|
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:
- Structure:
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:
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.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.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:
arg_uid (
str
) – Argument to pass with the method invocation.arg_inhibit (
bool
) – 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 ‘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 callModemManager.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
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.GdbusOrgFreedesktopModemManager1.call_inhibit_device
().- Raises:
- Returns:
- Return type:
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.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- 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.
- call_report_kernel_event(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 ‘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 callModemManager.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
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.GdbusOrgFreedesktopModemManager1.call_report_kernel_event
().- Raises:
- Returns:
- Return type:
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.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- 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.
- call_scan_devices(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
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 callModemManager.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
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.GdbusOrgFreedesktopModemManager1.call_scan_devices
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
ModemManager.GdbusOrgFreedesktopModemManager1.call_scan_devices
().
- call_scan_devices_sync(cancellable)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.- Raises:
- Returns:
- Return type:
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.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
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 callModemManager.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
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.GdbusOrgFreedesktopModemManager1.call_set_logging
().- Raises:
- Returns:
- Return type:
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.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- 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.
- complete_inhibit_device(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.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
) – AGio.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
) – AGio.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
) – AGio.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:
- do_handle_report_kernel_event(invocation, arg_properties) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_properties (
GLib.Variant
) –
- Return type:
- do_handle_scan_devices(invocation) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –- Return type:
- do_handle_set_logging(invocation, arg_level) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_level (
str
) –
- Return type:
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 signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_uid (
str
) – Argument passed by remote caller.arg_inhibit (
bool
) – 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 ‘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 callModemManager.GdbusOrgFreedesktopModemManager1.complete_inhibit_device
() 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.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 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 ‘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 callModemManager.GdbusOrgFreedesktopModemManager1.complete_report_kernel_event
() 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.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 signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
- 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 ‘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 callModemManager.GdbusOrgFreedesktopModemManager1.complete_scan_devices
() 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.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 signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_level (
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 ‘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 callModemManager.GdbusOrgFreedesktopModemManager1.complete_set_logging
() 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.GdbusOrgFreedesktopModemManager1.props.version¶
-
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.