| Top |
This object represents the base object of all AppStream, the application. Although called AsApp, this object also represents components like fonts, codecs and input methods.
See also: AsScreenshot, AsRelease
AsIconKind
as_app_get_icon_kind (AsApp *app);
Gets the icon kind.
Since 0.1.0
GList *
as_app_get_languages (AsApp *app);
Get a list of all languages.
Since 0.1.0
GPtrArray *
as_app_get_categories (AsApp *app);
Get the application categories.
Since 0.1.0
GPtrArray *
as_app_get_compulsory_for_desktops (AsApp *app);
Returns the desktops where this application is compulsory.
Since 0.1.0
GPtrArray *
as_app_get_keywords (AsApp *app);
Gets any keywords the application should match against.
Since 0.1.0
GPtrArray *
as_app_get_pkgnames (AsApp *app);
Gets the package names (if any) for the application.
Since 0.1.0
GPtrArray *
as_app_get_releases (AsApp *app);
Gets all the releases the application has had.
Since 0.1.0
GPtrArray *
as_app_get_screenshots (AsApp *app);
Gets any screenshots the application has defined.
Since 0.1.0
GHashTable *
as_app_get_urls (AsApp *app);
Gets the URLs set for the application.
Since 0.1.0
const gchar *
as_app_get_icon (AsApp *app);
Gets the application icon. Use as_app_get_icon_path() if you need the create
a full filename.
Since 0.1.0
const gchar *
as_app_get_icon_path (AsApp *app);
Gets the application icon path.
Since 0.1.0
const gchar *
as_app_get_id (AsApp *app);
Returns the short version of the ID.
Since 0.1.0
const gchar *
as_app_get_id_full (AsApp *app);
Gets the full ID value.
Since 0.1.0
const gchar *
as_app_get_project_group (AsApp *app);
Gets an application project group.
Since 0.1.0
const gchar *
as_app_get_project_license (AsApp *app);
Gets the application project license.
Since 0.1.0
const gchar * as_app_get_name (AsApp *app,const gchar *locale);
Gets the application name for a specific locale.
Since 0.1.0
const gchar * as_app_get_comment (AsApp *app,const gchar *locale);
Gets the application summary for a specific locale.
Since 0.1.0
const gchar * as_app_get_description (AsApp *app,const gchar *locale);
Gets the application description markup for a specific locale.
Since 0.1.0
gint
as_app_get_priority (AsApp *app);
Gets the application priority. Larger values trump smaller values.
Since 0.1.0
gint as_app_get_language (AsApp *app,const gchar *locale);
Gets the language coverage for the specific language.
Since 0.1.0
const gchar * as_app_get_metadata_item (AsApp *app,const gchar *key);
Gets some metadata item.
Since 0.1.0
const gchar * as_app_get_url_item (AsApp *app,AsUrlKind url_kind);
Gets a URL.
Since 0.1.0
void as_app_set_id_full (AsApp *app,const gchar *id_full,gssize id_full_len);
Sets a new application ID. Any invalid characters will be automatically replaced.
Since 0.1.0
void as_app_set_id_kind (AsApp *app,AsIdKind id_kind);
Sets the application kind.
Since 0.1.0
void as_app_set_project_group (AsApp *app,const gchar *project_group,gssize project_group_len);
Set any project affiliation.
Since 0.1.0
void as_app_set_project_license (AsApp *app,const gchar *project_license,gssize project_license_len);
Set the project license.
Since 0.1.0
void as_app_set_icon (AsApp *app,const gchar *icon,gssize icon_len);
Set the application icon.
Since 0.1.0
void as_app_set_icon_path (AsApp *app,const gchar *icon_path,gssize icon_path_len);
Sets the icon path, where local icons would be found.
Since 0.1.0
void as_app_set_icon_kind (AsApp *app,AsIconKind icon_kind);
Sets the icon kind.
Since 0.1.0
void as_app_set_name (AsApp *app,const gchar *locale,const gchar *name,gssize name_len);
Sets the application name for a specific locale.
Since 0.1.0
void as_app_set_comment (AsApp *app,const gchar *locale,const gchar *comment,gssize comment_len);
Sets the application summary for a specific locale.
Since 0.1.0
void as_app_set_description (AsApp *app,const gchar *locale,const gchar *description,gssize description_len);
Sets the application descrption markup for a specific locale.
Since 0.1.0
void as_app_set_priority (AsApp *app,gint priority);
Sets the application priority, where 0 is default and positive numbers are better than negative numbers.
Since 0.1.0
void as_app_add_category (AsApp *app,const gchar *category,gssize category_len);
Adds a menu category to the application.
Since 0.1.0
void as_app_add_keyword (AsApp *app,const gchar *keyword,gssize keyword_len);
Add a keyword the application should match against.
Since 0.1.0
void as_app_add_mimetype (AsApp *app,const gchar *mimetype,gssize mimetype_len);
Adds a mimetype the application can process.
Since 0.1.0
void as_app_add_pkgname (AsApp *app,const gchar *pkgname,gssize pkgname_len);
Adds a package name to an application.
Since 0.1.0
void as_app_add_release (AsApp *app,AsRelease *release);
Adds a release to an application.
Since 0.1.0
void as_app_add_screenshot (AsApp *app,AsScreenshot *screenshot);
Adds a screenshot to an application.
Since 0.1.0
void as_app_add_language (AsApp *app,gint percentage,const gchar *locale,gssize locale_len);
Adds a language to the application.
Since 0.1.0
void as_app_add_compulsory_for_desktop (AsApp *app,const gchar *compulsory_for_desktop,gssize compulsory_for_desktop_len);
Adds a desktop that requires this application to be installed.
Since 0.1.0
void as_app_add_url (AsApp *app,AsUrlKind url_kind,const gchar *url,gssize url_len);
Adds some URL data to the application.
app |
a AsApp instance. |
|
url_kind |
the URL kind, e.g. |
|
url |
the full URL. |
|
url_len |
the size of |
Since 0.1.0
void as_app_add_metadata (AsApp *app,const gchar *key,const gchar *value,gssize value_len);
Adds a metadata entry to the application.
Since 0.1.0
void as_app_remove_metadata (AsApp *app,const gchar *key);
Removes a metadata item from the application.
Since 0.1.0
void as_app_subsume (AsApp *app,AsApp *donor);
Copies information from the donor to the application object.
Since 0.1.0