Top |
Functions
Types and Values
#define | AS_TYPE_APP |
struct | AsAppClass |
enum | AsAppParseFlags |
enum | AsAppSubsumeFlags |
#define | AS_APP_SUBSUME_FLAG_SOURCE_FILE |
#define | AS_APP_SUBSUME_FLAG_MERGE |
#define | AS_APP_SUBSUME_FLAG_PARTIAL |
#define | AS_APP_SUBSUME_FLAG_DEDUPE |
enum | AsAppError |
enum | AsAppValidateFlags |
enum | AsAppTrustFlags |
typedef | AsAppSourceKind |
#define | AS_APP_SOURCE_KIND_UNKNOWN |
#define | AS_APP_SOURCE_KIND_APPSTREAM |
#define | AS_APP_SOURCE_KIND_DESKTOP |
#define | AS_APP_SOURCE_KIND_APPDATA |
#define | AS_APP_SOURCE_KIND_METAINFO |
#define | AS_APP_SOURCE_KIND_INF |
enum | AsAppKind |
enum | AsAppQuirk |
enum | AsAppState |
enum | AsAppScope |
enum | AsAppMergeKind |
enum | AsAppSearchMatch |
#define | AS_APP_ERROR |
AsApp |
Description
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
Functions
as_app_state_to_string ()
const gchar *
as_app_state_to_string (AsAppState state
);
Converts the enumerated value to an text representation.
Since: 0.2.2
as_app_kind_to_string ()
const gchar *
as_app_kind_to_string (AsAppKind kind
);
Converts the enumerated value to an text representation.
Since: 0.5.10
as_app_kind_from_string ()
AsAppKind
as_app_kind_from_string (const gchar *kind
);
Converts the text representation to an enumerated value.
Since: 0.5.10
as_app_scope_from_string ()
AsAppScope
as_app_scope_from_string (const gchar *scope
);
Converts the text representation to an enumerated value.
Since: 0.6.1
as_app_scope_to_string ()
const gchar *
as_app_scope_to_string (AsAppScope scope
);
Converts the enumerated value to an text representation.
Since: 0.6.1
as_app_merge_kind_from_string ()
AsAppMergeKind
as_app_merge_kind_from_string (const gchar *merge_kind
);
Converts the text representation to an enumerated value.
Since: 0.6.1
as_app_merge_kind_to_string ()
const gchar *
as_app_merge_kind_to_string (AsAppMergeKind merge_kind
);
Converts the enumerated value to an text representation.
Since: 0.6.1
as_app_get_scope ()
AsAppScope
as_app_get_scope (AsApp *app
);
Gets the scope of the application.
Since: 0.6.1
as_app_get_merge_kind ()
AsAppMergeKind
as_app_get_merge_kind (AsApp *app
);
Gets the merge_kind of the application.
Since: 0.6.1
as_app_get_state ()
AsAppState
as_app_get_state (AsApp *app
);
Gets the application state.
Since: 0.2.2
as_app_get_trust_flags ()
guint32
as_app_get_trust_flags (AsApp *app
);
Gets the trust flags, i.e. how trusted the incoming data is.
Since: 0.2.2
as_app_get_search_match ()
guint16
as_app_get_search_match (AsApp *app
);
Gets the token match fields. The bitfield given here is used to choose what is included in the token cache.
Since: 0.6.13
as_app_get_languages ()
GList *
as_app_get_languages (AsApp *app
);
Get a list of all languages.
Since: 0.1.0
as_app_get_addons ()
GPtrArray *
as_app_get_addons (AsApp *app
);
Gets all the addons the application has.
Since: 0.1.7
as_app_get_categories ()
GPtrArray *
as_app_get_categories (AsApp *app
);
Get the application categories.
Since: 0.1.0
as_app_get_compulsory_for_desktops ()
GPtrArray *
as_app_get_compulsory_for_desktops (AsApp *app
);
Returns the desktops where this application is compulsory.
Since: 0.1.0
as_app_get_extends ()
GPtrArray *
as_app_get_extends (AsApp *app
);
Gets the IDs that are extended from the addon.
Since: 0.1.7
as_app_get_keywords ()
GPtrArray * as_app_get_keywords (AsApp *app
,const gchar *locale
);
Gets any keywords the application should match against.
Since: 0.3.0
as_app_get_kudos ()
GPtrArray *
as_app_get_kudos (AsApp *app
);
Gets any kudos the application has obtained.
Since: 0.2.2
as_app_get_permissions ()
GPtrArray *
as_app_get_permissions (AsApp *app
);
Gets any permissions the application has obtained.
Since: 0.3.5
as_app_get_formats ()
GPtrArray *
as_app_get_formats (AsApp *app
);
Gets any formats that make up the application.
Since: 0.6.9
as_app_get_mimetypes ()
GPtrArray *
as_app_get_mimetypes (AsApp *app
);
Gets any mimetypes the application will register.
Since: 0.2.0
as_app_get_pkgnames ()
GPtrArray *
as_app_get_pkgnames (AsApp *app
);
Gets the package names (if any) for the application.
Since: 0.1.0
as_app_get_architectures ()
GPtrArray *
as_app_get_architectures (AsApp *app
);
Gets the supported architectures for the application, or an empty list if all architectures are supported.
Since: 0.1.1
as_app_get_releases ()
GPtrArray *
as_app_get_releases (AsApp *app
);
Gets all the releases the application has had.
Since: 0.1.0
as_app_get_provides ()
GPtrArray *
as_app_get_provides (AsApp *app
);
Gets all the provides the application has.
Since: 0.1.6
as_app_get_launchables ()
GPtrArray *
as_app_get_launchables (AsApp *app
);
Gets all the launchables the application has.
Since: 0.6.13
as_app_get_screenshots ()
GPtrArray *
as_app_get_screenshots (AsApp *app
);
Gets any screenshots the application has defined.
Since: 0.1.0
as_app_get_reviews ()
GPtrArray *
as_app_get_reviews (AsApp *app
);
Gets any reviews the application has defined.
Since: 0.6.1
as_app_get_content_ratings ()
GPtrArray *
as_app_get_content_ratings (AsApp *app
);
Gets any content_ratings the application has defined.
Since: 0.5.12
as_app_get_icons ()
GPtrArray *
as_app_get_icons (AsApp *app
);
Gets any icons the application has defined.
Since: 0.3.1
as_app_get_bundles ()
GPtrArray *
as_app_get_bundles (AsApp *app
);
Gets any bundles the application has defined.
Since: 0.3.5
as_app_get_translations ()
GPtrArray *
as_app_get_translations (AsApp *app
);
Gets any translations the application has defined.
Since: 0.5.8
as_app_get_suggests ()
GPtrArray *
as_app_get_suggests (AsApp *app
);
Gets any suggests the application has defined.
Since: 0.6.1
as_app_get_requires ()
GPtrArray *
as_app_get_requires (AsApp *app
);
Gets any requires the application has defined. A requirement could be that a firmware version has to be below a defined version or that another application is required to be installed.
Since: 0.6.7
as_app_get_names ()
GHashTable *
as_app_get_names (AsApp *app
);
Gets the names set for the application.
Since: 0.1.6
as_app_get_comments ()
GHashTable *
as_app_get_comments (AsApp *app
);
Gets the comments set for the application.
Since: 0.1.6
as_app_get_developer_names ()
GHashTable *
as_app_get_developer_names (AsApp *app
);
Gets the developer_names set for the application.
Since: 0.1.8
as_app_get_metadata ()
GHashTable *
as_app_get_metadata (AsApp *app
);
Gets the metadata set for the application.
Since: 0.1.6
as_app_get_descriptions ()
GHashTable *
as_app_get_descriptions (AsApp *app
);
Gets the descriptions set for the application.
Since: 0.1.6
as_app_get_urls ()
GHashTable *
as_app_get_urls (AsApp *app
);
Gets the URLs set for the application.
Since: 0.1.0
as_app_get_icon_path ()
const gchar *
as_app_get_icon_path (AsApp *app
);
Gets the application icon path.
Since: 0.1.0
as_app_get_id_filename ()
const gchar *
as_app_get_id_filename (AsApp *app
);
Returns a filename which represents the applications ID, e.g. "gimp.desktop" becomes "gimp" and is used for cache directories.
Since: 0.3.0
as_app_get_id_no_prefix ()
const gchar *
as_app_get_id_no_prefix (AsApp *app
);
Gets the full ID value, stripping any prefix.
Since: 0.5.12
as_app_get_unique_id ()
const gchar *
as_app_get_unique_id (AsApp *app
);
Gets the unique ID value to represent the component.
Since: 0.6.1
as_app_get_pkgname_default ()
const gchar *
as_app_get_pkgname_default (AsApp *app
);
Gets the default package name.
Since: 0.2.0
as_app_get_source_pkgname ()
const gchar *
as_app_get_source_pkgname (AsApp *app
);
Gets the source package name that produced the binary package. Only source packages producing more than one binary package will have this entry set.
Since: 0.2.4
as_app_get_origin ()
const gchar *
as_app_get_origin (AsApp *app
);
Gets the application origin.
Since: 0.3.2
as_app_get_project_group ()
const gchar *
as_app_get_project_group (AsApp *app
);
Gets an application project group.
Since: 0.1.0
as_app_get_project_license ()
const gchar *
as_app_get_project_license (AsApp *app
);
Gets the application project license.
Since: 0.1.0
as_app_get_metadata_license ()
const gchar *
as_app_get_metadata_license (AsApp *app
);
Gets the application project license.
Since: 0.1.4
as_app_get_update_contact ()
const gchar *
as_app_get_update_contact (AsApp *app
);
Gets the application upstream update contact email.
Since: 0.1.4
as_app_get_branch ()
const gchar *
as_app_get_branch (AsApp *app
);
Gets the branch for the application.
Since: 0.6.1
as_app_get_name ()
const gchar * as_app_get_name (AsApp *app
,const gchar *locale
);
Gets the application name for a specific locale.
Since: 0.1.0
as_app_get_comment ()
const gchar * as_app_get_comment (AsApp *app
,const gchar *locale
);
Gets the application summary for a specific locale.
Since: 0.1.0
as_app_get_developer_name ()
const gchar * as_app_get_developer_name (AsApp *app
,const gchar *locale
);
Gets the application developer name for a specific locale.
Since: 0.1.8
as_app_get_description ()
const gchar * as_app_get_description (AsApp *app
,const gchar *locale
);
Gets the application description markup for a specific locale.
Since: 0.1.0
as_app_get_priority ()
gint
as_app_get_priority (AsApp *app
);
Gets the application priority. Larger values trump smaller values.
Since: 0.1.0
as_app_get_language ()
gint as_app_get_language (AsApp *app
,const gchar *locale
);
Gets the language coverage for the specific language.
Since: 0.1.0
as_app_get_metadata_item ()
const gchar * as_app_get_metadata_item (AsApp *app
,const gchar *key
);
Gets some metadata item.
Since: 0.1.0
as_app_get_url_item ()
const gchar * as_app_get_url_item (AsApp *app
,AsUrlKind url_kind
);
Gets a URL.
Since: 0.1.0
as_app_has_category ()
gboolean as_app_has_category (AsApp *app
,const gchar *category
);
Searches the category list for a specific item.
Since: 0.1.5
as_app_has_kudo ()
gboolean as_app_has_kudo (AsApp *app
,const gchar *kudo
);
Searches the kudo list for a specific item.
Since: 0.2.2
as_app_has_kudo_kind ()
gboolean as_app_has_kudo_kind (AsApp *app
,AsKudoKind kudo
);
Searches the kudo list for a specific item.
Since: 0.2.2
as_app_has_permission ()
gboolean as_app_has_permission (AsApp *app
,const gchar *permission
);
Searches the permission list for a specific item.
Since: 0.3.5
as_app_get_format_default ()
AsFormat *
as_app_get_format_default (AsApp *app
);
Returns the default format.
Since: 0.6.9
as_app_get_format_by_kind ()
AsFormat * as_app_get_format_by_kind (AsApp *app
,AsFormatKind kind
);
Searches the list of formats for a specific format kind.
Since: 0.6.9
as_app_get_format_by_filename ()
AsFormat * as_app_get_format_by_filename (AsApp *app
,const gchar *filename
);
Searches the list of formats for a specific filename.
Since: 0.6.9
as_app_has_compulsory_for_desktop ()
gboolean as_app_has_compulsory_for_desktop (AsApp *app
,const gchar *desktop
);
Searches the compulsory for desktop list for a specific item.
Since: 0.5.12
as_app_has_quirk ()
gboolean as_app_has_quirk (AsApp *app
,AsAppQuirk quirk
);
Queries to see if an application has a specific attribute.
Since: 0.5.10
as_app_get_launchable_default ()
AsLaunchable *
as_app_get_launchable_default (AsApp *app
);
Returns the default launchable.
Since: 0.6.13
as_app_get_launchable_by_kind ()
AsLaunchable * as_app_get_launchable_by_kind (AsApp *app
,AsLaunchableKind kind
);
Searches the list of launchables for a specific launchable kind.
Since: 0.6.13
as_app_set_id ()
void as_app_set_id (AsApp *app
,const gchar *id
);
Sets a new application ID. Any invalid characters will be automatically replaced.
Parameters
app |
a AsApp instance. |
|
id |
the new _full_ application ID, e.g. "org.gnome.Software.desktop". |
Since: 0.1.0
as_app_set_kind ()
void as_app_set_kind (AsApp *app
,AsAppKind kind
);
Sets the application kind.
Since: 0.5.10
as_app_set_scope ()
void as_app_set_scope (AsApp *app
,AsAppScope scope
);
Sets the scope of the application.
Since: 0.6.1
as_app_set_merge_kind ()
void as_app_set_merge_kind (AsApp *app
,AsAppMergeKind merge_kind
);
Sets the merge kind of the application.
Since: 0.6.1
as_app_set_state ()
void as_app_set_state (AsApp *app
,AsAppState state
);
Sets the application state.
Since: 0.2.2
as_app_set_trust_flags ()
void as_app_set_trust_flags (AsApp *app
,guint32 trust_flags
);
Sets the check flags, where AS_APP_TRUST_FLAG_COMPLETE
is completely
trusted input.
Since: 0.2.2
as_app_set_search_match ()
void as_app_set_search_match (AsApp *app
,guint16 search_match
);
Sets the token match fields. The bitfield given here is used to choose what is included in the token cache.
Parameters
app |
a AsApp instance. |
|
search_match |
the AsAppSearchMatch, e.g. |
Since: 0.6.13
as_app_set_origin ()
void as_app_set_origin (AsApp *app
,const gchar *origin
);
Sets the application origin.
Since: 0.3.2
as_app_set_project_group ()
void as_app_set_project_group (AsApp *app
,const gchar *project_group
);
Set any project affiliation.
Since: 0.1.0
as_app_set_project_license ()
void as_app_set_project_license (AsApp *app
,const gchar *project_license
);
Set the project license.
Since: 0.1.0
as_app_set_metadata_license ()
void as_app_set_metadata_license (AsApp *app
,const gchar *metadata_license
);
Set the project license.
Since: 0.1.4
as_app_set_source_pkgname ()
void as_app_set_source_pkgname (AsApp *app
,const gchar *source_pkgname
);
Set the project license.
Since: 0.2.4
as_app_set_update_contact ()
void as_app_set_update_contact (AsApp *app
,const gchar *update_contact
);
Set the project license.
Since: 0.1.4
as_app_set_icon_path ()
void as_app_set_icon_path (AsApp *app
,const gchar *icon_path
);
Sets the icon path, where local icons would be found.
Since: 0.1.0
as_app_set_name ()
void as_app_set_name (AsApp *app
,const gchar *locale
,const gchar *name
);
Sets the application name for a specific locale.
Since: 0.1.0
as_app_set_comment ()
void as_app_set_comment (AsApp *app
,const gchar *locale
,const gchar *comment
);
Sets the application summary for a specific locale.
Since: 0.1.0
as_app_set_developer_name ()
void as_app_set_developer_name (AsApp *app
,const gchar *locale
,const gchar *developer_name
);
Sets the application developer name for a specific locale.
Since: 0.1.0
as_app_set_description ()
void as_app_set_description (AsApp *app
,const gchar *locale
,const gchar *description
);
Sets the application description markup for a specific locale.
Since: 0.1.0
as_app_set_branch ()
void as_app_set_branch (AsApp *app
,const gchar *branch
);
Set the branch that the instance was sourced from.
Since: 0.6.1
as_app_set_priority ()
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
as_app_add_category ()
void as_app_add_category (AsApp *app
,const gchar *category
);
Adds a menu category to the application.
Since: 0.1.0
as_app_remove_category ()
void as_app_remove_category (AsApp *app
,const gchar *category
);
Removed a menu category from the application.
Since: 0.6.13
as_app_add_keyword ()
void as_app_add_keyword (AsApp *app
,const gchar *locale
,const gchar *keyword
);
Add a keyword the application should match against.
Since: 0.3.0
as_app_add_kudo ()
void as_app_add_kudo (AsApp *app
,const gchar *kudo
);
Add a kudo the application has obtained.
Since: 0.2.2
as_app_remove_kudo ()
void as_app_remove_kudo (AsApp *app
,const gchar *kudo
);
Remove a kudo the application has obtained.
Since: 0.6.13
as_app_add_kudo_kind ()
void as_app_add_kudo_kind (AsApp *app
,AsKudoKind kudo_kind
);
Add a kudo the application has obtained.
Since: 0.2.2
as_app_add_permission ()
void as_app_add_permission (AsApp *app
,const gchar *permission
);
Add a permission the application has obtained.
Since: 0.3.5
as_app_add_format ()
void as_app_add_format (AsApp *app
,AsFormat *format
);
Add a format the application has been built from.
Since: 0.6.9
as_app_remove_format ()
void as_app_remove_format (AsApp *app
,AsFormat *format
);
Removes a format the application has been built from.
Since: 0.6.9
as_app_add_mimetype ()
void as_app_add_mimetype (AsApp *app
,const gchar *mimetype
);
Adds a mimetype the application can process.
Since: 0.1.0
as_app_add_pkgname ()
void as_app_add_pkgname (AsApp *app
,const gchar *pkgname
);
Adds a package name to an application.
Since: 0.1.0
as_app_add_arch ()
void as_app_add_arch (AsApp *app
,const gchar *arch
);
Adds a package name to an application.
Since: 0.1.1
as_app_add_release ()
void as_app_add_release (AsApp *app
,AsRelease *release
);
Adds a release to an application.
Since: 0.1.0
as_app_add_provide ()
void as_app_add_provide (AsApp *app
,AsProvide *provide
);
Adds a provide to an application.
Since: 0.1.6
as_app_add_launchable ()
void as_app_add_launchable (AsApp *app
,AsLaunchable *launchable
);
Adds a launchable to an application.
Since: 0.6.13
as_app_add_screenshot ()
void as_app_add_screenshot (AsApp *app
,AsScreenshot *screenshot
);
Adds a screenshot to an application.
Since: 0.1.0
as_app_add_review ()
void as_app_add_review (AsApp *app
,AsReview *review
);
Adds a review to an application.
Since: 0.6.1
as_app_add_content_rating ()
void as_app_add_content_rating (AsApp *app
,AsContentRating *content_rating
);
Adds a content_rating to an application.
Since: 0.5.12
as_app_add_agreement ()
void as_app_add_agreement (AsApp *app
,AsAgreement *agreement
);
Adds a agreement to an application.
Since: 0.7.8
as_app_add_icon ()
void as_app_add_icon (AsApp *app
,AsIcon *icon
);
Adds a icon to an application.
Since: 0.3.1
as_app_add_bundle ()
void as_app_add_bundle (AsApp *app
,AsBundle *bundle
);
Adds a bundle to an application.
Since: 0.3.5
as_app_add_translation ()
void as_app_add_translation (AsApp *app
,AsTranslation *translation
);
Adds a translation to an application.
Since: 0.5.8
as_app_add_suggest ()
void as_app_add_suggest (AsApp *app
,AsSuggest *suggest
);
Adds a suggest to an application.
Since: 0.6.1
as_app_add_require ()
void as_app_add_require (AsApp *app
,AsRequire *require
);
Adds a require to an application.
Since: 0.6.7
as_app_add_language ()
void as_app_add_language (AsApp *app
,gint percentage
,const gchar *locale
);
Adds a language to the application.
Since: 0.1.0
as_app_add_compulsory_for_desktop ()
void as_app_add_compulsory_for_desktop (AsApp *app
,const gchar *compulsory_for_desktop
);
Adds a desktop that requires this application to be installed.
Since: 0.1.0
as_app_add_url ()
void as_app_add_url (AsApp *app
,AsUrlKind url_kind
,const gchar *url
);
Adds some URL data to the application.
Since: 0.1.0
as_app_add_metadata ()
void as_app_add_metadata (AsApp *app
,const gchar *key
,const gchar *value
);
Adds a metadata entry to the application.
Since: 0.1.0
as_app_remove_metadata ()
void as_app_remove_metadata (AsApp *app
,const gchar *key
);
Removes a metadata item from the application.
Since: 0.1.0
as_app_add_addon ()
void as_app_add_addon (AsApp *app
,AsApp *addon
);
Adds a addon to an application.
Since: 0.1.7
as_app_add_extends ()
void as_app_add_extends (AsApp *app
,const gchar *extends
);
Adds a parent ID to the application.
Since: 0.1.7
as_app_add_quirk ()
void as_app_add_quirk (AsApp *app
,AsAppQuirk quirk
);
Adds a specific attribute to an application.
Since: 0.5.10
as_app_validate ()
GPtrArray * as_app_validate (AsApp *app
,guint32 flags
,GError **error
);
Validates data in the instance for style and consistency.
Parameters
app |
a AsApp instance. |
|
flags |
the AsAppValidateFlags to use, e.g. |
|
error |
A GError or |
Since: 0.1.4
as_app_subsume ()
void as_app_subsume (AsApp *app
,AsApp *donor
);
Copies information from the donor to the application object.
Since: 0.1.0
as_app_subsume_full ()
void as_app_subsume_full (AsApp *app
,AsApp *donor
,guint64 flags
);
Copies information from the donor to the application object.
Parameters
app |
a AsApp instance. |
|
donor |
the donor. |
|
flags |
any optional AsAppSubsumeFlags, e.g. |
Since: 0.1.4
as_app_add_veto ()
void as_app_add_veto (AsApp *app
,const gchar *fmt
,...
);
Adds a reason to not include the application in the metadata.
Since: 0.2.5
as_app_remove_veto ()
void as_app_remove_veto (AsApp *app
,const gchar *description
);
Removes a reason to not include the application in the metadata.
Since: 0.4.1
as_app_search_matches_all ()
guint as_app_search_matches_all (AsApp *app
,gchar **search
);
Searches application data for all the specific keywords.
Returns
a match scrore, where 0 is no match and larger numbers are better matches.
It's probably a good idea to use as_utils_search_tokenize()
to populate
search as very short or common keywords will return a lot of matches.
Since: 0.1.3
as_app_search_matches ()
guint as_app_search_matches (AsApp *app
,const gchar *search
);
Searches application data for a specific keyword.
Since: 0.1.0
as_app_parse_file ()
gboolean as_app_parse_file (AsApp *app
,const gchar *filename
,guint32 flags
,GError **error
);
Parses a desktop or AppData file and populates the application state.
Applications that are not suitable for the store will have vetos added.
Since: 0.1.2
as_app_parse_data ()
gboolean as_app_parse_data (AsApp *app
,GBytes *data
,guint32 flags
,GError **error
);
Parses an AppData file and populates the application state.
Since: 0.7.5
as_app_to_file ()
gboolean as_app_to_file (AsApp *app
,GFile *file
,GCancellable *cancellable
,GError **error
);
Exports a DOM tree to an XML file.
Since: 0.2.0
as_app_to_xml ()
GString * as_app_to_xml (AsApp *app
,GError **error
);
Exports a DOM tree to an XML string.
Since: 0.7.14
as_app_get_content_rating ()
AsContentRating * as_app_get_content_rating (AsApp *app
,const gchar *kind
);
Gets a content ratings the application has defined of a specific type.
Since: 0.5.12
as_app_get_agreement_by_kind ()
AsAgreement * as_app_get_agreement_by_kind (AsApp *app
,AsAgreementKind kind
);
Gets a agreement the application has defined of a specific type.
Since: 0.7.8
as_app_get_agreement_default ()
AsAgreement *
as_app_get_agreement_default (AsApp *app
);
Gets a privacy policys the application has defined of a specific type.
Since: 0.7.8
as_app_get_screenshot_default ()
AsScreenshot *
as_app_get_screenshot_default (AsApp *app
);
Gets the default screenshot for the component.
Since: 0.7.3
as_app_get_icon_default ()
AsIcon *
as_app_get_icon_default (AsApp *app
);
Finds the default icon.
Since: 0.3.1
as_app_get_icon_for_size ()
AsIcon * as_app_get_icon_for_size (AsApp *app
,guint width
,guint height
);
Finds an icon of a specific size.
Since: 0.3.1
as_app_get_bundle_default ()
AsBundle *
as_app_get_bundle_default (AsApp *app
);
Finds the default bundle.
Since: 0.3.5
as_app_get_release ()
AsRelease * as_app_get_release (AsApp *app
,const gchar *version
);
Gets a specific release from the application.
Since: 0.3.5
as_app_get_release_default ()
AsRelease *
as_app_get_release_default (AsApp *app
);
Gets the default (newest) release from the application.
Since: 0.3.5
as_app_get_release_by_version ()
AsRelease * as_app_get_release_by_version (AsApp *app
,const gchar *version
);
Gets a specific release from the application.
Since: 0.7.3
as_app_get_require_by_value ()
AsRequire * as_app_get_require_by_value (AsApp *app
,AsRequireKind kind
,const gchar *value
);
Gets a specific requirement for the application.
Since: 0.6.7
as_app_convert_icons ()
gboolean as_app_convert_icons (AsApp *app
,AsIconKind kind
,GError **error
);
Converts all the icons in the application to a specific kind.
Since: 0.3.1
as_app_equal ()
gboolean as_app_equal (AsApp *app1
,AsApp *app2
);
Compare one application with another for equality using the following properties:
scope, e.g.
system
oruser
bundle kind, e.g.
package
orflatpak
origin, e.g.
fedora
orgnome-apps-nightly
kind, e.g.
app
orruntime
AppStream ID, e.g.
gimp.desktop
branch, e.g.
stable
ormaster
Since: 0.6.1
as_app_get_id_kind ()
AsIdKind
as_app_get_id_kind (AsApp *app
);
as_app_get_id_kind
is deprecated and should not be used in newly-written code.
Gets the ID kind.
Since: 0.1.0
as_app_set_id_kind ()
void as_app_set_id_kind (AsApp *app
,AsIdKind id_kind
);
as_app_set_id_kind
is deprecated and should not be used in newly-written code.
Sets the application kind.
Since: 0.1.0
as_app_set_source_file ()
void as_app_set_source_file (AsApp *app
,const gchar *source_file
);
as_app_set_source_file
is deprecated and should not be used in newly-written code.
Set the file that the instance was sourced from.
Since: 0.2.2
as_app_get_source_file ()
const gchar *
as_app_get_source_file (AsApp *app
);
as_app_get_source_file
is deprecated and should not be used in newly-written code.
Gets the default source filename the instance was populated from.
Since: 0.2.2
as_app_get_source_kind ()
AsFormatKind
as_app_get_source_kind (AsApp *app
);
as_app_get_source_kind
is deprecated and should not be used in newly-written code.
Gets the source kind, i.e. where the AsApp came from.
Since: 0.1.4
as_app_set_source_kind ()
void as_app_set_source_kind (AsApp *app
,AsFormatKind source_kind
);
as_app_set_source_kind
is deprecated and should not be used in newly-written code.
Sets the source kind.
Since: 0.1.4
as_app_source_kind_from_string ()
AsFormatKind
as_app_source_kind_from_string (const gchar *source_kind
);
as_app_source_kind_from_string
is deprecated and should not be used in newly-written code.
Converts the text representation to an enumerated value.
Since: 0.2.2
as_app_source_kind_to_string ()
const gchar *
as_app_source_kind_to_string (AsFormatKind source_kind
);
as_app_source_kind_to_string
is deprecated and should not be used in newly-written code.
Converts the enumerated value to an text representation.
Since: 0.2.2
as_app_guess_source_kind ()
AsFormatKind
as_app_guess_source_kind (const gchar *filename
);
as_app_guess_source_kind
is deprecated and should not be used in newly-written code.
Guesses the source kind based from the filename.
Since: 0.1.8
Types and Values
enum AsAppParseFlags
The flags to use when parsing resources.
Members
No special actions to use |
||
Use heuristic to infer properties |
||
Save comments from the file |
||
Allow translatable flags like <_p> |
||
Append new data rather than replacing |
||
Do not return errors for vetoed apps |
||
Fall back to suboptimal data where required |
||
Add all extra metadata from the source file |
||
Only load native languages |
enum AsAppSubsumeFlags
The flags to use when subsuming applications.
Members
No special actions to use |
||
Do not overwrite already set properties |
||
Copy unset properties both ways |
||
Copy the kind |
||
Copy the state |
||
Copy the bundles |
||
Copy the translations |
||
Copy the releases |
||
Copy the kudos |
||
Copy the categories |
||
Copy the permissions |
||
Copy the extends |
||
Copy the compulsory-for-desktop |
||
Copy the screenshots |
||
Copy the reviews |
||
Copy the content ratings |
||
Copy the provides |
||
Copy the icons |
||
Copy the mimetypes |
||
Copy the vetos |
||
Copy the languages |
||
Copy the name |
||
Copy the comment |
||
Copy the developer name |
||
Copy the description |
||
Copy the metadata |
||
Copy the urls |
||
Copy the keywords |
||
Copy the source file |
||
Copy the branch |
||
Copy the origin |
||
Copy the metadata license |
||
Copy the project license |
||
Copy the project group |
||
Copy the source kind |
||
Copy the launchables |
||
Copy the agreements |
AsAppSourceKind
typedef AsFormatKind AsAppSourceKind;
The source kind.
This has been deprecated since 0.6.9 in favour of using AsFormatKind.
AS_APP_SOURCE_KIND_UNKNOWN
#define AS_APP_SOURCE_KIND_UNKNOWN AS_FORMAT_KIND_UNKNOWN /* Since: 0.1.4 */
AS_APP_SOURCE_KIND_APPSTREAM
#define AS_APP_SOURCE_KIND_APPSTREAM AS_FORMAT_KIND_APPSTREAM /* Since: 0.1.4 */
AS_APP_SOURCE_KIND_DESKTOP
#define AS_APP_SOURCE_KIND_DESKTOP AS_FORMAT_KIND_DESKTOP /* Since: 0.1.4 */
AS_APP_SOURCE_KIND_APPDATA
#define AS_APP_SOURCE_KIND_APPDATA AS_FORMAT_KIND_APPDATA /* Since: 0.1.4 */
AS_APP_SOURCE_KIND_METAINFO
#define AS_APP_SOURCE_KIND_METAINFO AS_FORMAT_KIND_METAINFO /* Since: 0.1.7 */
enum AsAppKind
The component type.
Members
Type invalid or not known |
||
A desktop application |
||
A font add-on |
||
A codec add-on |
||
A input method add-on |
||
A web appication |
||
A software source |
||
An addon, e.g. a plugin |
||
A firmware update |
||
Runtime platform |
||
Generic component |
||
Operating system update |
||
Operating system upgrade |
||
GNOME Shell extension |
||
Localization data |
||
Console program |
||
Driver for hardware support |
||
An icon theme |
enum AsAppQuirk
The component attributes.
Members
No special attributes |
||
Installed by OS vendor |
||
Cannot be removed |
||
Has a source to allow staying up-to-date |
||
Matches applications with any prefix |
||
A reboot is required after the action |
||
The app is not reviewable |
||
The app has a shortcut in the system |
||
The app is not launchable (run-able) |
||
The component requires some kind of user action |
||
Is a proxy app that operates on other applications |
||
The device is unusable whilst the action is performed |
||
The app developer has been verified |
enum AsAppState
The application state.
Members
Unknown state |
||
Application is installed |
||
Application is available |
||
Application is locally available as a file |
||
Application is installed and updatable |
||
Application is referenced, but not available |
||
Application is queued for install |
||
Application is being installed |
||
Application is being removed |
||
Application is installed and updatable live |
||
Application is available for purchasing |
||
Application is being purchased |
enum AsAppSearchMatch
The token match kind, which we want to be exactly 16 bits for storage reasons.