AppStream.Category¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
children |
||
r/w |
icon |
||
r/w |
id |
||
r/w |
name |
||
r |
summary |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class AppStream.Category(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
a new
AppStream.Category
- Return type:
Creates a new
AppStream.Category
.
- add_child(subcat)¶
- Parameters:
subcat (
AppStream.Category
) – A subcategory to add.
Add a subcategory to this category.
- add_component(cpt)¶
- Parameters:
cpt (
AppStream.Component
) – TheAppStream.Component
to add.
Add a component to this category.
- add_desktop_group(group_name)¶
- Parameters:
group_name (
str
) – A subcategory to add.
Add a desktop-file category to this
AppStream.Category
.
- get_children()¶
- Returns:
A list of subcategories.
- Return type:
- get_components()¶
- Returns:
List of
AppStream.Category
- Return type:
Get list of components which have been sorted into this category.
- has_children()¶
-
Test for sub-categories.
- has_component(cpt)¶
- Parameters:
cpt (
AppStream.Component
) – TheAppStream.Component
to look for.- Returns:
True
if the component is present.- Return type:
Check if the exact
AppStream.Component
cpt is a member of this category already.
- remove_child(subcat)¶
- Parameters:
subcat (
AppStream.Category
) – A subcategory to remove.
Drop a subcategory from this
AppStream.Category
.
Property Details¶
- AppStream.Category.props.children¶
-
children
- AppStream.Category.props.icon¶
-
icon
- AppStream.Category.props.name¶
-
name