![]() |
![]() |
![]() |
LibAppStream Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#include <appstream.h> struct AsCategory; struct AsCategoryClass; AsCategory * as_category_new (void
); AsCategory * as_category_construct (GType object_type
); void as_category_complete (AsCategory *self
); const gchar * as_category_get_directory (AsCategory *self
); const gchar * as_category_get_name (AsCategory *self
); void as_category_set_icon (AsCategory *self
,const gchar *value
); void as_category_set_name (AsCategory *self
,const gchar *value
); const gchar * as_category_get_summary (AsCategory *self
); const gchar * as_category_get_icon (AsCategory *self
); void as_category_add_subcategory (AsCategory *self
,AsCategory *cat
); void as_category_remove_subcategory (AsCategory *self
,AsCategory *cat
); gboolean as_category_has_subcategory (AsCategory *self
); void as_category_set_directory (AsCategory *self
,const gchar *value
); GList * as_category_get_included (AsCategory *self
); GList * as_category_get_excluded (AsCategory *self
); gint as_category_get_level (AsCategory *self
); void as_category_set_level (AsCategory *self
,gint value
); GList * as_category_get_subcategories (AsCategory *self
);
"directory" gchar* : Read / Write "excluded" gpointer : Read "icon" gchar* : Read / Write "included" gpointer : Read "level" gint : Read / Write "name" gchar* : Read / Write "subcategories" gpointer : Read "summary" gchar* : 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. It's main purpose is to be used in software-centers to show information about application-groups, which are use to thematically group applications.
You can use AsMenuParser to get a set of supported default categories.
See also: AsMenuParser
AsCategory * as_category_new (void
);
Creates a new AsCategory.
Returns : |
an AsCategory. [transfer full] |
void as_category_add_subcategory (AsCategory *self
,AsCategory *cat
);
void as_category_remove_subcategory (AsCategory *self
,AsCategory *cat
);
gboolean as_category_has_subcategory (AsCategory *self
);
Test for sub-categories.
Returns : |
TRUE if this category has any subcategory |