ModemManager.Manager¶
- Subclasses:
None
Methods¶
- Inherited:
ModemManager.GdbusObjectManagerClient (7), Gio.DBusObjectManagerClient (10), GObject.Object (37), Gio.AsyncInitable (4), Gio.DBusObjectManager (4), Gio.Initable (2)
- Structs:
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Signals¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class ModemManager.Manager(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
ModemManager.Managerstructure contains private data and should only be accessed using the provided API.- classmethod new(connection, flags, cancellable, callback, *user_data)¶
- Parameters:
connection (
Gio.DBusConnection) – AGio.DBusConnection.flags (
Gio.DBusObjectManagerClientFlags) – Flags from theGio.DBusObjectManagerClientFlagsenumeration.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied.
Asynchronously creates a
ModemManager.Manager.When the operation is finished, callback will be invoked in the
thread-default main loopof the thread you are calling this method from.You can then call
ModemManager.Manager.new_finish() to get the result of the operation.See
ModemManager.Manager.new_sync() for the synchronous, blocking version of this constructor.New in version 1.0.
- classmethod new_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.Manager.new().- Raises:
- Returns:
The constructed object manager client or
Noneif error is set.- Return type:
Finishes an operation started with
ModemManager.Manager.new().New in version 1.0.
- classmethod new_sync(connection, flags, cancellable)¶
- Parameters:
connection (
Gio.DBusConnection) – AGio.DBusConnection.flags (
Gio.DBusObjectManagerClientFlags) – Flags from theGio.DBusObjectManagerClientFlagsenumeration.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
The constructed object manager client or
Noneif error is set.- Return type:
Synchronously creates a
ModemManager.Manager.The calling thread is blocked until a reply is received.
See
ModemManager.Manager.new() for the asynchronous version of this constructor.New in version 1.0.
- get_proxy()¶
- Returns:
The
Gio.DBusProxyinterface of self, orNoneif none. The returned object must be freed withGObject.Object.unref().- Return type:
Gets the
Gio.DBusProxyinterface of the self.New in version 1.0.
- get_version()¶
- Returns:
The version, or
Noneif none available. Do not free the returned value, it belongs to self.- Return type:
Gets the ModemManager version, as reported by the daemon.
It is safe to assume this value never changes during runtime.
New in version 1.0.
- inhibit_device(uid, cancellable, callback, *user_data)¶
- Parameters:
uid (
str) – the unique ID of the physical device.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously requests to add an inhibition on the device identified by uid.
The uid must be the unique ID retrieved from an existing
ModemManager.ModemusingModemManager.Modem.get_device(). The caller should keep track of this uid and use it in theModemManager.Manager.uninhibit_device() call when the inhibition is no longer required.The inhibition added with this method may also be automatically removed when the caller program disappears from the bus (e.g. if the program ends before having called
ModemManager.Manager.uninhibit_device() explicitly).When the operation is finished, callback will be invoked in the
thread-default main loopof the thread you are calling this method from. You can then callModemManager.Manager.inhibit_device_finish() to get the result of the operation.See
ModemManager.Manager.inhibit_device_sync() for the synchronous, blocking version of this method.New in version 1.10.
- inhibit_device_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.Manager.inhibit_device().- Raises:
- Returns:
- Return type:
Finishes an operation started with
ModemManager.Manager.inhibit_device().New in version 1.10.
- inhibit_device_sync(uid, cancellable)¶
- Parameters:
uid (
str) – the unique ID of the physical device.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Synchronously requests to add an inhibition on the device identified by uid.
The uid must be the unique ID retrieved from an existing
ModemManager.ModemusingModemManager.Modem.get_device(). The caller should keep track of this uid and use it in theModemManager.Manager.uninhibit_device_sync() call when the inhibition is no longer required.The inhibition added with this method may also be automatically removed when the caller program disappears from the bus (e.g. if the program ends before having called
ModemManager.Manager.uninhibit_device_sync() explicitly).See
ModemManager.Manager.inhibit_device() for the asynchronous version of this method.New in version 1.10.
- peek_proxy()¶
- Returns:
The
Gio.DBusProxyinterface of self, orNoneif none. Do not free the returned object, it is owned by self.- Return type:
Gets the
Gio.DBusProxyinterface of the self.New in version 1.0.
- report_kernel_event(properties, cancellable, callback, *user_data)¶
- Parameters:
properties (
ModemManager.KernelEventProperties) – the properties of the kernel event.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously report kernel event.
When the operation is finished, callback will be invoked in the
thread-default main loopof the thread you are calling this method from. You can then callModemManager.Manager.report_kernel_event_finish() to get the result of the operation.See
ModemManager.Manager.report_kernel_event_sync() for the synchronous, blocking version of this method.New in version 1.8.
- report_kernel_event_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.Manager.report_kernel_event().- Raises:
- Returns:
- Return type:
Finishes an operation started with
ModemManager.Manager.report_kernel_event().New in version 1.8.
- report_kernel_event_sync(properties, cancellable)¶
- Parameters:
properties (
ModemManager.KernelEventProperties) – the properties of the kernel event.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Synchronously report kernel event.
The calling thread is blocked until a reply is received.
See
ModemManager.Manager.report_kernel_event() for the asynchronous version of this method.New in version 1.8.
- scan_devices(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously requests to scan looking for devices.
When the operation is finished, callback will be invoked in the
thread-default main loopof the thread you are calling this method from. You can then callModemManager.Manager.scan_devices_finish() to get the result of the operation.See
ModemManager.Manager.scan_devices_sync() for the synchronous, blocking version of this method.New in version 1.0.
- scan_devices_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.Manager.scan_devices().- Raises:
- Returns:
- Return type:
Finishes an operation started with
ModemManager.Manager.scan_devices().New in version 1.0.
- scan_devices_sync(cancellable)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.- Raises:
- Returns:
- Return type:
Synchronously requests to scan looking for devices.
The calling thread is blocked until a reply is received.
See
ModemManager.Manager.scan_devices() for the asynchronous version of this method.New in version 1.0.
- set_logging(level, cancellable, callback, *user_data)¶
- Parameters:
level (
str) – the login level to set.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously requests to set the specified logging level in the daemon.
When the operation is finished, callback will be invoked in the
thread-default main loopof the thread you are calling this method from. You can then callModemManager.Manager.set_logging_finish() to get the result of the operation.See
ModemManager.Manager.set_logging_sync() for the synchronous, blocking version of this method.New in version 1.0.
- set_logging_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.Manager.set_logging().- Raises:
- Returns:
- Return type:
Finishes an operation started with
ModemManager.Manager.set_logging().New in version 1.0.
- set_logging_sync(level, cancellable)¶
- Parameters:
level (
str) – the login level to set.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Synchronously requests to set the specified logging level in the daemon.
The calling thread is blocked until a reply is received.
See
ModemManager.Manager.set_logging() for the asynchronous version of this method.New in version 1.0.
- uninhibit_device(uid, cancellable, callback, *user_data)¶
- Parameters:
uid (
str) – the unique ID of the physical device.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously requests to remove an inhibition on the device identified by uid.
The uid must be the same unique ID that was sent in the inhibition request.
Only the same program that placed an inhibition on a given device is able to remove the inhibition.
When the operation is finished, callback will be invoked in the
thread-default main loopof the thread you are calling this method from. You can then callModemManager.Manager.uninhibit_device_finish() to get the result of the operation.See
ModemManager.Manager.uninhibit_device_sync() for the synchronous, blocking version of this method.New in version 1.10.
- uninhibit_device_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.Manager.uninhibit_device().- Raises:
- Returns:
- Return type:
Finishes an operation started with
ModemManager.Manager.uninhibit_device().New in version 1.10.
- uninhibit_device_sync(uid, cancellable)¶
- Parameters:
uid (
str) – the unique ID of the physical device.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Synchronously requests to remove an inhibition on the device identified by uid.
The uid must be the same unique ID that was sent in the inhibition request.
Only the same program that placed an inhibition on a given device is able to remove the inhibition.
See
ModemManager.Manager.uninhibit_device() for the asynchronous version of this method.New in version 1.10.