ModemManager.ModemFirmware¶
- Subclasses:
None
Methods¶
- Inherited:
ModemManager.GdbusModemFirmwareProxy (6), Gio.DBusProxy (25), GObject.Object (37), Gio.AsyncInitable (4), Gio.DBusInterface (3), Gio.Initable (2), ModemManager.GdbusModemFirmware (10)
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Signals¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class ModemManager.ModemFirmware(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
ModemManager.ModemFirmwarestructure contains private data and should only be accessed using the provided API.- dup_path()¶
- Returns:
The DBus path of the
ModemManager.Object. The returned value should be freed withGLib.free().- Return type:
Gets a copy of the DBus path of the
ModemManager.Objectobject which implements this interface.New in version 1.0.
- get_path()¶
- Returns:
The DBus path of the
ModemManager.Objectobject.- Return type:
Gets the DBus path of the
ModemManager.Objectwhich implements this interface.New in version 1.0.
- get_update_settings()¶
- Returns:
A
ModemManager.FirmwareUpdateSettingsthat must be freed withGObject.Object.unref() orNoneif unknown.- Return type:
Gets a
ModemManager.FirmwareUpdateSettingsobject specifying the expected update settings.The values reported by self are not updated when the values in the interface change. Instead, the client is expected to call
ModemManager.ModemFirmware.get_update_settings() again to get a newModemManager.FirmwareUpdateSettingswith the new values.New in version 1.10.
- list(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously gets the list of available firmware images.
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.ModemFirmware.list_finish() to get the result of the operation.See
ModemManager.ModemFirmware.list_sync() for the synchronous, blocking version of this method.New in version 1.0.
- list_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.ModemFirmware.list().- Raises:
- Returns:
Trueif the list was correctly retrieved,Falseif error is set.- selected:
The selected firmware slot, or
Noneif no slot is selected (such as if all slots are empty, or no slots exist). The returned value should be freed withGObject.Object.unref().- installed:
A list of
ModemManager.FirmwarePropertiesobjects specifying the installed images. The returned value should be freed with g_list_free_full() usingGObject.Object.unref() asGLib.DestroyNotify.
- Return type:
(
bool, selected:ModemManager.FirmwareProperties, installed: [ModemManager.FirmwareProperties])
Finishes an operation started with
ModemManager.ModemFirmware.list().New in version 1.0.
- list_sync(cancellable)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.- Raises:
- Returns:
Trueif the list was correctly retrieved,Falseif error is set.- selected:
The selected firmware slot, or
Noneif no slot is selected (such as if all slots are empty, or no slots exist). The returned value should be freed withGObject.Object.unref().- installed:
A list of
ModemManager.FirmwarePropertiesobjects specifying the installed images. The returned value should be freed with g_list_free_full() usingGObject.Object.unref() asGLib.DestroyNotify.
- Return type:
(
bool, selected:ModemManager.FirmwareProperties, installed: [ModemManager.FirmwareProperties])
Synchronously gets the list of available firmware images.
The calling thread is blocked until a reply is received. See
ModemManager.ModemFirmware.list() for the asynchronous version of this method.New in version 1.0.
- peek_update_settings()¶
- Returns:
A
ModemManager.FirmwareUpdateSettings. Do not free the returned value, it belongs to self.- Return type:
Gets a
ModemManager.FirmwareUpdateSettingsobject specifying the expected update settings.The returned value is only valid until the property changes so it is only safe to use this function on the thread where self was constructed. Use
ModemManager.ModemFirmware.get_update_settings() if on another thread.New in version 1.10.
- select(unique_id, cancellable, callback, *user_data)¶
- Parameters:
unique_id (
str) – Unique ID of the firmware image to select.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously selects a firmware image to boot.
The modem will possibly disappear once this action is run, as it needs to reboot in order to select the new image. 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.ModemFirmware.select_finish() to get the result of the operation.See
ModemManager.ModemFirmware.select_sync() for the synchronous, blocking version of this method.New in version 1.0.
- select_finish(res)¶
- Parameters:
res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.ModemFirmware.select().- Raises:
- Returns:
Trueif the selection was successful,Falseif error is set.- Return type:
Finishes an operation started with
ModemManager.ModemFirmware.select().New in version 1.0.
- select_sync(unique_id, cancellable)¶
- Parameters:
unique_id (
str) – Unique ID of the firmware image to select.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
- Returns:
Trueif the selection was successful,Falseif error is set.- Return type:
Synchronously selects a firmware image to boot.
The modem will possibly disappear once this action is run, as it needs to reboot in order to select the new image. The calling thread is blocked until a reply is received. See
ModemManager.ModemFirmware.select() for the asynchronous version of this method.New in version 1.0.