Top | ![]() |
![]() |
![]() |
![]() |
const gchar * | as_checksum_kind_to_string () |
AsChecksumKind | as_checksum_kind_from_string () |
const gchar * | as_size_kind_to_string () |
AsSizeKind | as_size_kind_from_string () |
AsRelease * | as_release_new () |
const gchar * | as_release_get_version () |
void | as_release_set_version () |
guint64 | as_release_get_timestamp () |
void | as_release_set_timestamp () |
const gchar * | as_release_get_description () |
void | as_release_set_description () |
gchar * | as_release_get_active_locale () |
void | as_release_set_active_locale () |
GPtrArray * | as_release_get_locations () |
void | as_release_add_location () |
const gchar * | as_release_get_checksum () |
void | as_release_set_checksum () |
AsUrgencyKind | as_release_get_urgency () |
void | as_release_set_urgency () |
guint64 | as_release_get_size () |
void | as_release_set_size () |
This object represents a single upstream release, typically a minor update. Releases can contain a localized description of paragraph and list elements and also have a version number and timestamp.
Releases can be automatically generated by parsing upstream ChangeLogs or .spec files, or can be populated using MetaInfo files.
See also: AsComponent
const gchar *
as_checksum_kind_to_string (AsChecksumKind kind
);
Converts the enumerated value to an text representation.
AsChecksumKind
as_checksum_kind_from_string (const gchar *kind_str
);
Converts the text representation to an enumerated value.
const gchar *
as_size_kind_to_string (AsSizeKind size_kind
);
Converts the enumerated value to an text representation.
Since: 0.8.6
AsSizeKind
as_size_kind_from_string (const gchar *size_kind
);
Converts the text representation to an enumerated value.
Since: 0.8.6
const gchar *
as_release_get_version (AsRelease *release
);
Gets the release version.
void as_release_set_version (AsRelease *release
,const gchar *version
);
Sets the release version.
guint64
as_release_get_timestamp (AsRelease *release
);
Gets the release timestamp.
void as_release_set_timestamp (AsRelease *release
,guint64 timestamp
);
Sets the release timestamp.
const gchar *
as_release_get_description (AsRelease *release
);
Gets the release description markup for a given locale.
void as_release_set_description (AsRelease *release
,const gchar *description
,const gchar *locale
);
Sets the description release markup.
gchar *
as_release_get_active_locale (AsRelease *release
);
Get the current active locale, which is used to get localized messages.
void as_release_set_active_locale (AsRelease *release
,const gchar *locale
);
Set the current active locale, which is used to get localized messages. If the AsComponent linking this AsRelease was fetched from a localized database, usually only one locale is available.
GPtrArray *
as_release_get_locations (AsRelease *release
);
Gets the release locations, typically URLs.
Since: 0.8.1
void as_release_add_location (AsRelease *release
,const gchar *location
);
Adds a release location.
Since: 0.8.1
const gchar * as_release_get_checksum (AsRelease *release
,AsChecksumKind kind
);
Gets the release checksum
Since: 0.8.2
void as_release_set_checksum (AsRelease *release
,const gchar *checksum
,AsChecksumKind kind
);
Set the release checksum.
Since: 0.8.2
AsUrgencyKind
as_release_get_urgency (AsRelease *release
);
Gets the urgency of the release (showing how important it is to update to a more recent release)
Since: 0.6.5
void as_release_set_urgency (AsRelease *release
,AsUrgencyKind urgency
);
Sets the release urgency.
release |
a AsRelease instance. |
|
urgency |
the urgency of this release/update (as AsUrgencyKind) |
Since: 0.6.5
guint64 as_release_get_size (AsRelease *release
,AsSizeKind kind
);
Gets the release size.
Since: 0.8.6
void as_release_set_size (AsRelease *release
,guint64 size
,AsSizeKind kind
);
Sets the release size for the given kind.
Since: 0.8.6