SecurityAttr
Object Hierarchy:
Description:
Namespace: Fwupd
Package: fwupd
Content:
Static methods:
- public static GenericArray<unowned SecurityAttr> array_from_variant (Variant value)
Creates an array of new security_attrs using packed data.
- public static unowned string flag_to_string (SecurityAttrFlags flag)
Returns the printable string for the flag.
- public static unowned string flag_to_suffix (SecurityAttrFlags flag)
Returns the string suffix for the flag.
- public static SecurityAttr from_variant (Variant value)
Creates a new self using packed data.
- public static unowned string result_to_string (SecurityAttrResult result)
Returns the printable string for the result enum.
Creation methods:
- public SecurityAttr (string? appstream_id)
Creates a new self.
Methods:
- public void add_flag (SecurityAttrFlags flag)
Adds a specific self flag to the self.
- public void add_metadata (string key, string? value)
Adds metadata to the attribute which may be used in the name.
- public void add_obsolete (string appstream_id)
Adds an attribute appstream_id to obsolete.
- public unowned string get_appstream_id ()
Gets the AppStream ID.
- public SecurityAttrFlags get_flags ()
Gets the self flags.
- public SecurityAttrLevel get_level ()
Gets the HSI level.
- public unowned string? get_metadata (string key)
Gets private metadata from the attribute which may be used in the name.
- public unowned string get_name ()
Gets the attribute name.
- public unowned GenericArray<string> get_obsoletes ()
Gets the list of attribute obsoletes.
- public unowned string get_plugin ()
Gets the plugin that created the attribute.
- public SecurityAttrResult get_result ()
Gets the optional HSI result.
- public unowned string get_url ()
Gets the attribute URL.
- public bool has_flag (SecurityAttrFlags flag)
Finds if the self has a specific self flag.
- public bool has_obsolete (string appstream_id)
Finds out if the attribute obsoletes a specific appstream_id.
- public void set_appstream_id (string appstream_id)
Sets the AppStream ID.
- public void set_flags (SecurityAttrFlags flags)
Sets the self flags.
- public void set_level (SecurityAttrLevel level)
Sets the HSI level.
- public void set_name (string name)
Sets the attribute name.
- public void set_plugin (string plugin)
Sets the plugin that created the attribute.
- public void set_result (SecurityAttrResult result)
Sets the optional HSI result.
- public void set_url (string url)
Sets the attribute result.
- public string to_string ()
Builds a text representation of the object.
- public Variant to_variant ()
Creates a GVariant from the self data.
Inherited Members:
All known members inherited from class GLib.Object