| Top |
| AsCategory * | as_category_new () |
| const gchar * | as_category_get_id () |
| void | as_category_set_id () |
| const gchar * | as_category_get_name () |
| void | as_category_set_name () |
| const gchar * | as_category_get_summary () |
| void | as_category_set_summary () |
| const gchar * | as_category_get_icon () |
| void | as_category_set_icon () |
| GPtrArray * | as_category_get_children () |
| gboolean | as_category_has_children () |
| void | as_category_add_child () |
| void | as_category_remove_child () |
| GPtrArray * | as_category_get_desktop_groups () |
| void | as_category_add_desktop_group () |
| GPtrArray * | as_category_get_components () |
| void | as_category_add_component () |
| gboolean | as_category_has_component () |
| GPtrArray * | as_get_default_categories () |
| gpointer | children | Read |
| gchar * | icon | Read / Write |
| gchar * | id | Read / Write |
| gchar * | name | Read / Write |
| gchar * | summary | Read |
| GPtrArray * | categories | Read |
| gchar * | description | Read / Write |
| gchar * | developer-name | Read / Write |
| gpointer | icons | Read |
| gchar * | id | Read / Write |
| GStrv | keywords | Read / Write |
| AsComponentKind | kind | Read / Write |
| gchar * | name | Read / Write |
| GStrv | pkgnames | Read / Write |
| gchar * | project-group | Read / Write |
| gchar * | project-license | Read / Write |
| GPtrArray * | screenshots | Read |
| gchar * | summary | Read / Write |
| GHashTable * | urls | Read |
This object represents an XDG category, as defined at: http://standards.freedesktop.org/menu-spec/menu-spec-1.0.htmlcategory-registry
The AsCategory object does not support all aspects of a menu. Its main purpose is to be used in software-centers to group visual components (gui/web applications).
You can use as_get_default_categories() to get a set of supported default categories.
See also: AsComponent
const gchar *
as_category_get_id (AsCategory *category);
Get the ID of this category.
void as_category_set_id (AsCategory *category,const gchar *id);
Set the ID of this category.
const gchar *
as_category_get_name (AsCategory *category);
Get the name of this category.
void as_category_set_name (AsCategory *category,const gchar *value);
Set the name of this category.
const gchar *
as_category_get_summary (AsCategory *category);
Get the summary (short description) of this category.
void as_category_set_summary (AsCategory *category,const gchar *value);
Get the summary (short description) of this category.
const gchar *
as_category_get_icon (AsCategory *category);
Get the stock icon name for this category.
void as_category_set_icon (AsCategory *category,const gchar *value);
Set the stock icon name for this category.
gboolean
as_category_has_children (AsCategory *category);
Test for sub-categories.
void as_category_add_child (AsCategory *category,AsCategory *subcat);
Add a subcategory to this category.
void as_category_remove_child (AsCategory *category,AsCategory *subcat);
Drop a subcategory from this AsCategory.
GPtrArray *
as_category_get_desktop_groups (AsCategory *category);
void as_category_add_desktop_group (AsCategory *category,const gchar *group_name);
Add a desktop-file category to this AsCategory.
GPtrArray *
as_category_get_components (AsCategory *category);
Get list of components which have been sorted into this category.
void as_category_add_component (AsCategory *category,AsComponent *cpt);
Add a component to this category.
gboolean as_category_has_component (AsCategory *category,AsComponent *cpt);
Check if the exact AsComponent cpt
is a member of this
category already.
GPtrArray *
as_get_default_categories (gboolean with_special);
Get a list of the default Freedesktop and AppStream categories that software components (especially GUI applications) can be sorted into in software centers.
“description” property “description” gchar *
the description
Flags: Read / Write
Default value: NULL
“developer-name” property “developer-name” gchar *
the developer name
Flags: Read / Write
Default value: NULL
“icons” property “icons” gpointer
hash map of icon urls and sizes
[type GList(AsIcon)]
Flags: Read
“kind” property“kind” AsComponentKind
the AsComponentKind of this component
Flags: Read / Write
Default value: AS_COMPONENT_KIND_UNKNOWN
“project-group” property “project-group” gchar *
the project group
Flags: Read / Write
Default value: NULL
“project-license” property “project-license” gchar *
the project license
Flags: Read / Write
Default value: NULL