Fwupd.Plugin¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
|||
r/w |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Fwupd.Plugin(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A plugin which is used by fwupd to enumerate and update devices.
See also: [class`FwupdRelease`]
- classmethod array_from_variant(value)[source]¶
- Parameters:
value (
GLib.Variant
) – the serialized data- Returns:
plugins, or
None
if value was invalid- Return type:
Creates an array of new plugins using serialized data.
New in version 1.5.0.
- classmethod flag_from_string(plugin_flag)[source]¶
- Parameters:
- Returns:
enumerated value
- Return type:
Converts a string to an enumerated plugin flag.
New in version 1.5.0.
- classmethod flag_to_string(plugin_flag)[source]¶
- Parameters:
plugin_flag (
int
) – plugin flags, e.g.Fwupd.PLUGIN_FLAG_CLEAR_UPDATABLE
- Returns:
identifier string
- Return type:
Converts an enumerated plugin flag to a string.
New in version 1.5.0.
- classmethod from_variant(value)[source]¶
- Parameters:
value (
GLib.Variant
) – the serialized data- Returns:
a new
Fwupd.Plugin
, orNone
if value was invalid- Return type:
Creates a new plugin using serialized data.
New in version 1.5.0.
- classmethod new()[source]¶
- Returns:
a new
Fwupd.Plugin
- Return type:
Creates a new plugin.
New in version 1.5.0.
- add_flag(flag)[source]¶
- Parameters:
flag (
int
) – the #FwupdPluginFlags
Adds a specific plugin flag to the plugin.
New in version 1.5.0.
- get_flags()[source]¶
- Returns:
plugin flags, or 0 if unset
- Return type:
Gets the plugin flags.
New in version 1.5.0.
- remove_flag(flag)[source]¶
- Parameters:
flag (
int
) – a plugin flag
Removes a specific plugin flag from the plugin.
New in version 1.5.0.
- set_flags(flags)[source]¶
- Parameters:
flags (
int
) – plugin flags, e.g.Fwupd.PLUGIN_FLAG_CAPSULES_UNSUPPORTED
Sets the plugin flags.
New in version 1.5.0.
- set_name(name)[source]¶
- Parameters:
name (
str
) – the plugin name, e.g.bios
Sets the plugin name.
New in version 1.5.0.
- to_json(builder)[source]¶
- Parameters:
builder (
Json.Builder
) – a JSON builder
Adds a fwupd plugin to a JSON builder
New in version 1.5.0.
Property Details¶
- Fwupd.Plugin.props.flags¶
-
The plugin flags.
New in version 1.5.0.