Device
Object Hierarchy:
Description:
Namespace: Fwupd
Package: fwupd
Content:
Properties:
- public uint64 flags { get; set; }
- public Device parent { get; set construct; }
- public string protocol { get; set; }
- public uint status { get; set; }
- public uint update_state { get; set; }
- public uint version_format { get; set; }
Static methods:
- public static void array_ensure_parents (GenericArray<Device> devices)
Sets the parent object on all devices in the array using the parent-id.
- public static GenericArray<unowned Device> array_from_variant (Variant value)
Creates an array of new devices using packed data.
- public static DeviceFlags flag_from_string (string device_flag)
Converts a string to a DeviceFlags.
- public static unowned string flag_to_string (DeviceFlags device_flag)
Converts a DeviceFlags to a string.
- public static Device from_variant (Variant value)
Creates a new device using packed data.
- public static bool id_is_valid (string device_id)
Checks the string is a valid non-partial device ID.
Creation methods:
- public Device ()
Creates a new device.
Methods:
- public void add_checksum (string checksum)
Sets the device checksum.
- public void add_child (Device child)
Adds a child device.
- public void add_flag (DeviceFlags flag)
Adds a specific device flag to the device.
- public void add_guid (string guid)
Adds the GUID if it does not already exist.
- public void add_icon (string icon)
Adds the icon name if it does not already exist.
- public void add_instance_id (string instance_id)
Adds the InstanceID if it does not already exist.
- public void add_release (Release release)
Adds a release for this device.
- public void add_vendor_id (string vendor_id)
Adds a device vendor ID.
- public int compare (Device device2)
Comparison function for comparing two FwupdDevice objects.
- public unowned string get_branch ()
Gets the current device branch.
- public unowned GenericArray<string> get_checksums ()
Gets the device checksums.
- public unowned GenericArray<Device> get_children ()
Gets the device children.
- public uint64 get_created ()
Gets when the device was created.
- public unowned string get_description ()
Gets the device description in AppStream markup format.
- public uint64 get_flags ()
Gets the device flags.
- public uint32 get_flashes_left ()
Gets the number of flash cycles left on the device
- public unowned string get_guid_default ()
Gets the default GUID.
- public unowned GenericArray<string> get_guids ()
Gets the GUIDs.
- public unowned GenericArray<string> get_icons ()
Gets the icon names to use for the device.
- public unowned string get_id ()
Gets the ID.
- public uint32 get_install_duration ()
Gets the time estimate for firmware installation (in seconds)
- public unowned GenericArray<string> get_instance_ids ()
Gets the InstanceIDs.
- public uint64 get_modified ()
Gets when the device was modified.
- public unowned string get_name ()
Gets the device name.
- public unowned Device get_parent ()
Gets the parent.
- public unowned string get_parent_id ()
Gets the ID.
- public unowned string get_plugin ()
Gets the plugin that created the device.
- public unowned string get_protocol ()
Gets the protocol that the device uses for updating.
- public unowned Release get_release_default ()
Gets the default release for this device.
- public unowned GenericArray<Release> get_releases ()
Gets all the releases for this device.
- public unowned string get_serial ()
Gets the serial number for the device.
- public Status get_status ()
Returns what the device is currently doing.
- public unowned string get_summary ()
Gets the device summary.
- public unowned string get_update_error ()
Gets the update error.
- public unowned string get_update_image ()
Gets the update image.
- public unowned string get_update_message ()
Gets the update message.
- public UpdateState get_update_state ()
Gets the update state.
- public unowned string get_vendor ()
Gets the device vendor.
- public unowned string get_vendor_id ()
Gets the combined device vendor ID.
- public unowned GenericArray<string> get_vendor_ids ()
Gets the device vendor ID.
- public unowned string get_version ()
Gets the device version.
- public unowned string get_version_bootloader ()
Gets the version of the bootloader.
- public uint64 get_version_bootloader_raw ()
Gets the bootloader version of firmware the device will accept in raw format.
- public VersionFormat get_version_format ()
Gets the update state.
- public unowned string get_version_lowest ()
Gets the lowest version of firmware the device will accept.
- public uint64 get_version_lowest_raw ()
Gets the lowest version of firmware the device will accept in raw format.
- public uint64 get_version_raw ()
Gets the raw version number from the hardware before converted to a string.
- public bool has_flag (DeviceFlags flag)
Finds if the device has a specific device flag.
- public bool has_guid (string guid)
Finds out if the device has this specific GUID.
- public bool has_instance_id (string instance_id)
Finds out if the device has this specific InstanceID.
- public bool has_vendor_id (string vendor_id)
Finds out if the device has this specific vendor ID.
- public void incorporate (Device donor)
Copy all properties from the donor object if they have not already been set.
- public void remove_flag (DeviceFlags flag)
Removes a specific device flag from the device.
- public void set_branch (string branch)
Sets the current device branch.
- public void set_created (uint64 created)
Sets when the device was created.
- public void set_description (string description)
Sets the device description.
- public void set_flags (uint64 flags)
Sets the device flags.
- public void set_flashes_left (uint32 flashes_left)
Sets the number of flash cycles left on the device
- public void set_id (string id)
Sets the ID.
- public void set_install_duration (uint32 duration)
Sets the time estimate for firmware installation (in seconds)
- public void set_modified (uint64 modified)
Sets when the device was modified.
- public void set_name (string name)
Sets the device name.
- public void set_parent (Device parent)
Sets the parent.
- public void set_parent_id (string parent_id)
Sets the parent ID.
- public void set_plugin (string plugin)
Sets the plugin that created the device.
- public void set_protocol (string protocol)
Sets the protocol that is used to update the device.
- public void set_serial (string serial)
Sets the serial number for the device.
- public void set_status (Status status)
Sets what the device is currently doing.
- public void set_summary (string summary)
Sets the device summary.
- public void set_update_error (string update_error)
Sets the update error.
- public void set_update_image (string update_image)
Sets the update image.
- public void set_update_message (string update_message)
Sets the update message.
- public void set_update_state (UpdateState update_state)
Sets the update state.
- public void set_vendor (string vendor)
Sets the device vendor.
- public void set_vendor_id (string vendor_id)
Sets the device vendor ID.
- public void set_version (string version)
Sets the device version.
- public void set_version_bootloader (string version_bootloader)
Sets the bootloader version.
- public void set_version_bootloader_raw (uint64 version_bootloader_raw)
Sets the raw bootloader version number from the hardware before converted to a string.
- public void set_version_format (VersionFormat version_format)
Sets the update state.
- public void set_version_lowest (string version_lowest)
Sets the lowest version of firmware the device will accept.
- public void set_version_lowest_raw (uint64 version_lowest_raw)
Sets the raw lowest version number from the hardware before converted to a string.
- public void set_version_raw (uint64 version_raw)
Sets the raw version number from the hardware before converted to a string.
- public string to_string ()
Builds a text representation of the object.
- public Variant to_variant ()
Creates a GVariant from the device data omitting sensitive fields
- public Variant to_variant_full (DeviceFlags flags)
Creates a GVariant from the device data.
Inherited Members:
All known members inherited from class GLib.Object