AppStream.ReleaseList – appstream Reference Manual
Packages
appstream
AppStream
ReleaseList
ReleaseList
add
clear
get_context
get_entries
get_kind
get_size
get_url
index_safe
is_empty
load_from_bytes
set_context
set_kind
set_size
set_url
sort
ReleaseList
Object Hierarchy:
Description:
[
CCode
( type_id =
"as_release_list_get_type ()"
) ]
public
class
ReleaseList
:
Object
Namespace:
AppStream
Package:
appstream
Content:
Creation methods:
public
ReleaseList
()
Creates a new
ReleaseList
.
Methods:
public
void
add
(
Release
release)
Append a release entry to this
ReleaseList
container.
public
void
clear
()
Remove all release entries from this releases object.
public
unowned
Context
?
get_context
()
Get the
Context
associated with these releases.
public
unowned
GenericArray
<
Release
>
get_entries
()
Get the release entries as
GenericArray
.
public
ReleaseListKind
get_kind
()
Returns the
ReleaseListKind
of the release metadata associated with this component.
public
uint
get_size
()
Get the amount of components in this box.
public
unowned
string
?
get_url
()
Get the remote URL to obtain release information from.
public
unowned
Release
index_safe
(
uint
index)
Retrieve a release entry at the respective index from the release entry list.
public
bool
is_empty
()
Check if there are any components present.
public
bool
load_from_bytes
(
Context
? context,
Bytes
bytes)
throws
Error
Load release information from XML bytes.
public
void
set_context
(
Context
context)
Sets the document context these releases are associated with.
public
void
set_kind
(
ReleaseListKind
kind)
Sets the
ReleaseListKind
of the release metadata associated with this component.
public
void
set_size
(
uint
size)
Set the amount of release entries stored.
public
void
set_url
(
string
url)
Set a remote URL pointing to an AppStream release info file.
public
void
sort
()
Sort releases by their release version, starting with the most recent release.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref