Relation
Object Hierarchy:
Description:
Namespace: AppStream
Package: appstream
Content:
Creation methods:
- public Relation ()
Creates a new Relation.
Methods:
- public RelationCompare get_compare ()
The version comparison type.
- public DisplaySideKind get_display_side_kind ()
Gets the display side kind, in case this item is of kind as_relation_item_kind_display_length
- public RelationItemKind get_item_kind ()
The kind of the item of this Relation.
- public RelationKind get_kind ()
The type (and thereby strength) of this Relation.
- public ControlKind get_value_control_kind ()
Get the value of this Relation item as ControlKind if the type of this relation is as_relation_item_kind_control.
- public DisplayLengthKind get_value_display_length_kind ()
In case this Relation is of kind as_relation_item_kind_display_length, return the DisplayLengthKind.
- public int get_value_int ()
- public uint get_value_internet_bandwidth ()
If this Relation is of kind as_relation_item_kind_internet, return the minimum bandwidth requirement of the component, if set.
- public InternetKind get_value_internet_kind ()
Get the value of this Relation item as InternetKind if the type of this relation is as_relation_item_kind_internet.
- public int get_value_px ()
In case this Relation is of kind as_relation_item_kind_display_length, return the set logical pixel amount.
- public unowned string get_value_str ()
- public unowned string get_version ()
- public CheckResult is_satisfied (SystemInfo? system_info, Pool? pool, out string message) throws Error
Test if this relation is satisfied on the current system or with the provided Pool.
- public void set_compare (RelationCompare compare)
Set the version comparison type of this Relation.
- public void set_display_side_kind (DisplaySideKind kind)
Sets the display side kind, in case this item is of kind as_relation_item_kind_display_length
- public void set_item_kind (RelationItemKind kind)
Set the kind of the item this Relation is about.
- public void set_kind (RelationKind kind)
Set the kind of this Relation.
- public void set_value_control_kind (ControlKind kind)
Set relation item value from an ControlKind.
- public void set_value_display_length_kind (DisplayLengthKind kind)
Sets the item value as display length placeholder value.
- public void set_value_int (int value)
Sets the item value as an integer, if the given item type of this Relation permits integer values.
- public void set_value_internet_bandwidth (uint bandwidth_mbitps)
- public void set_value_internet_kind (InternetKind kind)
Set relation item value from an InternetKind.
- public void set_value_px (int logical_px)
Sets the item value as logical pixel count.
- public void set_value_str (string value)
Sets the item value as a string, if the given item type of this Relation permits string values.
- public void set_version (string version)
Sets the item version.
- public bool version_compare (string version) throws Error
Tests whether the version number of this Relation is fulfilled by
version
.
Inherited Members:
All known members inherited from class GLib.Object