Fwupd.Plugin¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
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 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 (
Fwupd.PluginFlags
) – plugin flags, e.g.Fwupd.PluginFlags.CLEAR_UPDATABLE
- Returns:
identifier string
- Return type:
Converts an enumerated plugin flag to a string.
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 (
Fwupd.PluginFlags
) – theFwupd.PluginFlags
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.
- has_flag(flag)[source]¶
- Parameters:
flag (
Fwupd.PluginFlags
) – a plugin flag- Returns:
True
if the flag is set- Return type:
Finds if the plugin has a specific plugin flag.
New in version 1.5.0.
- remove_flag(flag)[source]¶
- Parameters:
flag (
Fwupd.PluginFlags
) – 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.PluginFlags.CAPSULES_UNSUPPORTED
Sets the plugin flags.
New in version 1.5.0.
Property Details¶
- Fwupd.Plugin.props.flags¶
-
The plugin flags.
New in version 1.5.0.