AppstreamAppInfo

AppstreamAppInfo — Class to store data describing an application in AppStream

Synopsis

#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;

Description

Details

APPSTREAM_TYPE_APP_INFO

#define APPSTREAM_TYPE_APP_INFO (appstream_app_info_get_type ())

The type for AppstreamAppInfo.


appstream_app_info_is_valid ()

gboolean            appstream_app_info_is_valid         (AppstreamAppInfo *self);

Check if the essential properties of this AppInfo instance are populated with useful data.

self :

the AppstreamAppInfo instance

appstream_app_info_to_string ()

gchar *             appstream_app_info_to_string        (AppstreamAppInfo *self);

self :

the AppstreamAppInfo instance

appstream_app_info_set_categories_from_str ()

void                appstream_app_info_set_categories_from_str
                                                        (AppstreamAppInfo *self,
                                                         const gchar *categories_str);

Set the categories list from a string

self :

the AppstreamAppInfo instance

categories_str :

 . Comma-separated list of category-names. [in]

appstream_app_info_new ()

AppstreamAppInfo *  appstream_app_info_new              (void);

appstream_app_info_get_pkgname ()

const gchar *       appstream_app_info_get_pkgname      (AppstreamAppInfo *self);

Get and return the current value of the "pkgname" property.

self :

the AppstreamAppInfo instance to query

Returns :

the value of the "pkgname" property

appstream_app_info_set_pkgname ()

void                appstream_app_info_set_pkgname      (AppstreamAppInfo *self,
                                                         const gchar *value);

Set the value of the "pkgname" property to value.

self :

the AppstreamAppInfo instance to modify

value :

the new value of the "pkgname" property

appstream_app_info_get_desktop_file ()

const gchar *       appstream_app_info_get_desktop_file (AppstreamAppInfo *self);

Get and return the current value of the "desktop-file" property.

self :

the AppstreamAppInfo instance to query

Returns :

the value of the "desktop-file" property

appstream_app_info_set_desktop_file ()

void                appstream_app_info_set_desktop_file (AppstreamAppInfo *self,
                                                         const gchar *value);

Set the value of the "desktop-file" property to value.

self :

the AppstreamAppInfo instance to modify

value :

the new value of the "desktop-file" property

appstream_app_info_get_name ()

const gchar *       appstream_app_info_get_name         (AppstreamAppInfo *self);

Get and return the current value of the "name" property.

self :

the AppstreamAppInfo instance to query

Returns :

the value of the "name" property

appstream_app_info_set_name ()

void                appstream_app_info_set_name         (AppstreamAppInfo *self,
                                                         const gchar *value);

Set the value of the "name" property to value.

self :

the AppstreamAppInfo instance to modify

value :

the new value of the "name" property

appstream_app_info_get_name_original ()

const gchar *       appstream_app_info_get_name_original
                                                        (AppstreamAppInfo *self);

Get and return the current value of the "name-original" property.

self :

the AppstreamAppInfo instance to query

Returns :

the value of the "name-original" property

appstream_app_info_set_name_original ()

void                appstream_app_info_set_name_original
                                                        (AppstreamAppInfo *self,
                                                         const gchar *value);

Set the value of the "name-original" property to value.

self :

the AppstreamAppInfo instance to modify

value :

the new value of the "name-original" property

appstream_app_info_get_summary ()

const gchar *       appstream_app_info_get_summary      (AppstreamAppInfo *self);

Get and return the current value of the "summary" property.

self :

the AppstreamAppInfo instance to query

Returns :

the value of the "summary" property

appstream_app_info_set_summary ()

void                appstream_app_info_set_summary      (AppstreamAppInfo *self,
                                                         const gchar *value);

Set the value of the "summary" property to value.

self :

the AppstreamAppInfo instance to modify

value :

the new value of the "summary" property

appstream_app_info_get_description ()

const gchar *       appstream_app_info_get_description  (AppstreamAppInfo *self);

Get and return the current value of the "description" property.

self :

the AppstreamAppInfo instance to query

Returns :

the value of the "description" property

appstream_app_info_set_description ()

void                appstream_app_info_set_description  (AppstreamAppInfo *self,
                                                         const gchar *value);

Set the value of the "description" property to value.

self :

the AppstreamAppInfo instance to modify

value :

the new value of the "description" property

appstream_app_info_get_keywords ()

gchar **            appstream_app_info_get_keywords     (AppstreamAppInfo *self,
                                                         int *result_length1);

Get and return the current value of the "keywords" property.

self :

the AppstreamAppInfo instance to query

Returns :

the value of the "keywords" property

appstream_app_info_set_keywords ()

void                appstream_app_info_set_keywords     (AppstreamAppInfo *self,
                                                         gchar **value,
                                                         int value_length1);

Set the value of the "keywords" property to value.

self :

the AppstreamAppInfo instance to modify

value :

the new value of the "keywords" property

appstream_app_info_get_icon ()

const gchar *       appstream_app_info_get_icon         (AppstreamAppInfo *self);

Get and return the current value of the "icon" property.

self :

the AppstreamAppInfo instance to query

Returns :

the value of the "icon" property

appstream_app_info_set_icon ()

void                appstream_app_info_set_icon         (AppstreamAppInfo *self,
                                                         const gchar *value);

Set the value of the "icon" property to value.

self :

the AppstreamAppInfo instance to modify

value :

the new value of the "icon" property

appstream_app_info_get_icon_url ()

const gchar *       appstream_app_info_get_icon_url     (AppstreamAppInfo *self);

Get and return the current value of the "icon-url" property.

self :

the AppstreamAppInfo instance to query

Returns :

the value of the "icon-url" property

appstream_app_info_set_icon_url ()

void                appstream_app_info_set_icon_url     (AppstreamAppInfo *self,
                                                         const gchar *value);

Set the value of the "icon-url" property to value.

self :

the AppstreamAppInfo instance to modify

value :

the new value of the "icon-url" property

appstream_app_info_get_homepage ()

const gchar *       appstream_app_info_get_homepage     (AppstreamAppInfo *self);

Get and return the current value of the "homepage" property.

self :

the AppstreamAppInfo instance to query

Returns :

the value of the "homepage" property

appstream_app_info_set_homepage ()

void                appstream_app_info_set_homepage     (AppstreamAppInfo *self,
                                                         const gchar *value);

Set the value of the "homepage" property to value.

self :

the AppstreamAppInfo instance to modify

value :

the new value of the "homepage" property

appstream_app_info_get_categories ()

gchar **            appstream_app_info_get_categories   (AppstreamAppInfo *self,
                                                         int *result_length1);

Get and return the current value of the "categories" property.

self :

the AppstreamAppInfo instance to query

Returns :

the value of the "categories" property

appstream_app_info_set_categories ()

void                appstream_app_info_set_categories   (AppstreamAppInfo *self,
                                                         gchar **value,
                                                         int value_length1);

Set the value of the "categories" property to value.

self :

the AppstreamAppInfo instance to modify

value :

the new value of the "categories" property

appstream_app_info_get_mimetypes ()

gchar **            appstream_app_info_get_mimetypes    (AppstreamAppInfo *self,
                                                         int *result_length1);

Get and return the current value of the "mimetypes" property.

self :

the AppstreamAppInfo instance to query

Returns :

the value of the "mimetypes" property

appstream_app_info_set_mimetypes ()

void                appstream_app_info_set_mimetypes    (AppstreamAppInfo *self,
                                                         gchar **value,
                                                         int value_length1);

Set the value of the "mimetypes" property to value.

self :

the AppstreamAppInfo instance to modify

value :

the new value of the "mimetypes" property

struct AppstreamAppInfo

struct AppstreamAppInfo {
	GObject parent_instance;
	AppstreamAppInfoPrivate * priv;
};

Class to store data describing an application in AppStream


struct AppstreamAppInfoClass

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 parent_class;

the parent class structure