| LibAppStream Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#define APPSTREAM_TYPE_APP_INFO gboolean appstream_app_info_is_valid (AppstreamAppInfo *self); gchar * appstream_app_info_to_string (AppstreamAppInfo *self); void appstream_app_info_set_categories_from_str (AppstreamAppInfo *self,const gchar *categories_str); AppstreamAppInfo * appstream_app_info_new (void); const gchar * appstream_app_info_get_pkgname (AppstreamAppInfo *self); void appstream_app_info_set_pkgname (AppstreamAppInfo *self,const gchar *value); const gchar * appstream_app_info_get_desktop_file (AppstreamAppInfo *self); void appstream_app_info_set_desktop_file (AppstreamAppInfo *self,const gchar *value); const gchar * appstream_app_info_get_name (AppstreamAppInfo *self); void appstream_app_info_set_name (AppstreamAppInfo *self,const gchar *value); const gchar * appstream_app_info_get_name_original (AppstreamAppInfo *self); void appstream_app_info_set_name_original (AppstreamAppInfo *self,const gchar *value); const gchar * appstream_app_info_get_summary (AppstreamAppInfo *self); void appstream_app_info_set_summary (AppstreamAppInfo *self,const gchar *value); const gchar * appstream_app_info_get_description (AppstreamAppInfo *self); void appstream_app_info_set_description (AppstreamAppInfo *self,const gchar *value); gchar ** appstream_app_info_get_keywords (AppstreamAppInfo *self,int *result_length1); void appstream_app_info_set_keywords (AppstreamAppInfo *self,gchar **value,int value_length1); const gchar * appstream_app_info_get_icon (AppstreamAppInfo *self); void appstream_app_info_set_icon (AppstreamAppInfo *self,const gchar *value); const gchar * appstream_app_info_get_icon_url (AppstreamAppInfo *self); void appstream_app_info_set_icon_url (AppstreamAppInfo *self,const gchar *value); const gchar * appstream_app_info_get_homepage (AppstreamAppInfo *self); void appstream_app_info_set_homepage (AppstreamAppInfo *self,const gchar *value); gchar ** appstream_app_info_get_categories (AppstreamAppInfo *self,int *result_length1); void appstream_app_info_set_categories (AppstreamAppInfo *self,gchar **value,int value_length1); gchar ** appstream_app_info_get_mimetypes (AppstreamAppInfo *self,int *result_length1); void appstream_app_info_set_mimetypes (AppstreamAppInfo *self,gchar **value,int value_length1); struct AppstreamAppInfo; struct AppstreamAppInfoClass;
#define APPSTREAM_TYPE_APP_INFO (appstream_app_info_get_type ())
The type for AppstreamAppInfo.
gboolean appstream_app_info_is_valid (AppstreamAppInfo *self);
Check if the essential properties of this AppInfo instance are populated with useful data.
|
the AppstreamAppInfo instance |
gchar * appstream_app_info_to_string (AppstreamAppInfo *self);
|
the AppstreamAppInfo instance |
void appstream_app_info_set_categories_from_str (AppstreamAppInfo *self,const gchar *categories_str);
Set the categories list from a string
|
the AppstreamAppInfo instance |
|
. Comma-separated list of category-names. [in] |
const gchar * appstream_app_info_get_pkgname (AppstreamAppInfo *self);
Get and return the current value of the "pkgname" property.
|
the AppstreamAppInfo instance to query |
Returns : |
the value of the "pkgname" property |
void appstream_app_info_set_pkgname (AppstreamAppInfo *self,const gchar *value);
Set the value of the "pkgname" property to value.
|
the AppstreamAppInfo instance to modify |
|
the new value of the "pkgname" property |
const gchar * appstream_app_info_get_desktop_file (AppstreamAppInfo *self);
Get and return the current value of the "desktop-file" property.
|
the AppstreamAppInfo instance to query |
Returns : |
the value of the "desktop-file" property |
void appstream_app_info_set_desktop_file (AppstreamAppInfo *self,const gchar *value);
Set the value of the "desktop-file" property to value.
|
the AppstreamAppInfo instance to modify |
|
the new value of the "desktop-file" property |
const gchar * appstream_app_info_get_name (AppstreamAppInfo *self);
Get and return the current value of the "name" property.
|
the AppstreamAppInfo instance to query |
Returns : |
the value of the "name" property |
void appstream_app_info_set_name (AppstreamAppInfo *self,const gchar *value);
Set the value of the "name" property to value.
|
the AppstreamAppInfo instance to modify |
|
the new value of the "name" property |
const gchar * appstream_app_info_get_name_original
(AppstreamAppInfo *self);
Get and return the current value of the "name-original" property.
|
the AppstreamAppInfo instance to query |
Returns : |
the value of the "name-original" property |
void appstream_app_info_set_name_original (AppstreamAppInfo *self,const gchar *value);
Set the value of the "name-original" property to value.
|
the AppstreamAppInfo instance to modify |
|
the new value of the "name-original" property |
const gchar * appstream_app_info_get_summary (AppstreamAppInfo *self);
Get and return the current value of the "summary" property.
|
the AppstreamAppInfo instance to query |
Returns : |
the value of the "summary" property |
void appstream_app_info_set_summary (AppstreamAppInfo *self,const gchar *value);
Set the value of the "summary" property to value.
|
the AppstreamAppInfo instance to modify |
|
the new value of the "summary" property |
const gchar * appstream_app_info_get_description (AppstreamAppInfo *self);
Get and return the current value of the "description" property.
|
the AppstreamAppInfo instance to query |
Returns : |
the value of the "description" property |
void appstream_app_info_set_description (AppstreamAppInfo *self,const gchar *value);
Set the value of the "description" property to value.
|
the AppstreamAppInfo instance to modify |
|
the new value of the "description" property |
gchar ** appstream_app_info_get_keywords (AppstreamAppInfo *self,int *result_length1);
Get and return the current value of the "keywords" property.
|
the AppstreamAppInfo instance to query |
Returns : |
the value of the "keywords" property |
void appstream_app_info_set_keywords (AppstreamAppInfo *self,gchar **value,int value_length1);
Set the value of the "keywords" property to value.
|
the AppstreamAppInfo instance to modify |
|
the new value of the "keywords" property |
const gchar * appstream_app_info_get_icon (AppstreamAppInfo *self);
Get and return the current value of the "icon" property.
|
the AppstreamAppInfo instance to query |
Returns : |
the value of the "icon" property |
void appstream_app_info_set_icon (AppstreamAppInfo *self,const gchar *value);
Set the value of the "icon" property to value.
|
the AppstreamAppInfo instance to modify |
|
the new value of the "icon" property |
const gchar * appstream_app_info_get_icon_url (AppstreamAppInfo *self);
Get and return the current value of the "icon-url" property.
|
the AppstreamAppInfo instance to query |
Returns : |
the value of the "icon-url" property |
void appstream_app_info_set_icon_url (AppstreamAppInfo *self,const gchar *value);
Set the value of the "icon-url" property to value.
|
the AppstreamAppInfo instance to modify |
|
the new value of the "icon-url" property |
const gchar * appstream_app_info_get_homepage (AppstreamAppInfo *self);
Get and return the current value of the "homepage" property.
|
the AppstreamAppInfo instance to query |
Returns : |
the value of the "homepage" property |
void appstream_app_info_set_homepage (AppstreamAppInfo *self,const gchar *value);
Set the value of the "homepage" property to value.
|
the AppstreamAppInfo instance to modify |
|
the new value of the "homepage" property |
gchar ** appstream_app_info_get_categories (AppstreamAppInfo *self,int *result_length1);
Get and return the current value of the "categories" property.
|
the AppstreamAppInfo instance to query |
Returns : |
the value of the "categories" property |
void appstream_app_info_set_categories (AppstreamAppInfo *self,gchar **value,int value_length1);
Set the value of the "categories" property to value.
|
the AppstreamAppInfo instance to modify |
|
the new value of the "categories" property |
gchar ** appstream_app_info_get_mimetypes (AppstreamAppInfo *self,int *result_length1);
Get and return the current value of the "mimetypes" property.
|
the AppstreamAppInfo instance to query |
Returns : |
the value of the "mimetypes" property |
void appstream_app_info_set_mimetypes (AppstreamAppInfo *self,gchar **value,int value_length1);
Set the value of the "mimetypes" property to value.
|
the AppstreamAppInfo instance to modify |
|
the new value of the "mimetypes" property |
struct AppstreamAppInfo {
GObject parent_instance;
AppstreamAppInfoPrivate * priv;
};
Class to store data describing an application in AppStream
struct AppstreamAppInfoClass {
GObjectClass parent_class;
};
The class structure for APPSTREAM_TYPE_APP_INFO. All the fields in this structure are private and should never be accessed directly.
GObjectClass |
the parent class structure |