AsAppInfo

AsAppInfo — Class to store data describing an application in AppStream

Synopsis

#define             AS_TYPE_APP_INFO
gboolean            as_appinfo_is_valid                 (AsAppInfo *self);
gchar *             as_appinfo_to_string                (AsAppInfo *self);
AsAppInfo *         as_appinfo_new                      (void);
const gchar *       as_appinfo_get_desktop_file         (AsAppInfo *self);
void                as_appinfo_set_desktop_file         (AsAppInfo *self,
                                                         const gchar *value);
struct              AsAppInfo;
struct              AsAppInfoClass;

Description

Details

AS_TYPE_APP_INFO

#define AS_TYPE_APP_INFO (as_app_info_get_type ())

The type for AsAppInfo.


as_appinfo_is_valid ()

gboolean            as_appinfo_is_valid                 (AsAppInfo *self);

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

self :

the AsAppInfo instance

as_appinfo_to_string ()

gchar *             as_appinfo_to_string                (AsAppInfo *self);

self :

the AsAppInfo instance

as_appinfo_new ()

AsAppInfo *         as_appinfo_new                      (void);

as_appinfo_get_desktop_file ()

const gchar *       as_appinfo_get_desktop_file         (AsAppInfo *self);

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

self :

the AsAppInfo instance to query

Returns :

the value of the "desktop-file" property

as_appinfo_set_desktop_file ()

void                as_appinfo_set_desktop_file         (AsAppInfo *self,
                                                         const gchar *value);

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

self :

the AsAppInfo instance to modify

value :

the new value of the "desktop-file" property

struct AsAppInfo

struct AsAppInfo {
	AsComponent parent_instance;
	AsAppInfoPrivate * priv;
};

Class to store data describing an application in AppStream


struct AsAppInfoClass

struct AsAppInfoClass {
	AsComponentClass parent_class;
};

The class structure for AS_TYPE_APP_INFO. All the fields in this structure are private and should never be accessed directly.

AsComponentClass parent_class;

the parent class structure