| Top |
| const gchar * | as_size_kind_to_string () |
| AsSizeKind | as_size_kind_from_string () |
| AsRelease * | as_release_new () |
| const gchar * | as_release_get_active_locale () |
| void | as_release_set_active_locale () |
| const gchar * | as_release_get_version () |
| void | as_release_set_version () |
| gint | as_release_vercmp () |
| guint64 | as_release_get_timestamp () |
| void | as_release_set_timestamp () |
| const gchar * | as_release_get_description () |
| void | as_release_set_description () |
| GPtrArray * | as_release_get_locations () |
| void | as_release_add_location () |
| GPtrArray * | as_release_get_checksums () |
| AsChecksum * | as_release_get_checksum () |
| void | as_release_add_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_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_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.
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.
gint as_release_vercmp (AsRelease *rel1,AsRelease *rel2);
Compare the version numbers of two releases.
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.
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
GPtrArray *
as_release_get_checksums (AsRelease *release);
Get a list of all checksums we have for this release.
Since: 0.10
AsChecksum * as_release_get_checksum (AsRelease *release,AsChecksumKind kind);
Gets the release checksum
Since: 0.8.2
void as_release_add_checksum (AsRelease *release,AsChecksum *cs);
Add a checksum for the file associated with this release.
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