AppStream.Provided¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class AppStream.Provided(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
- Return type:
Creates a new
AppStream.Provided.
- get_items()¶
- Returns:
An string list of provided items.
- Return type:
[
str]
Get an array of provided data.
- get_kind()¶
- Returns:
an enum of type
AppStream.ProvidedKind- Return type:
The kind of items this
AppStream.Providedobject stores.
- has_item(item)¶
- Parameters:
item (
str) – the name of a provided item, e.g. “audio/x-vorbis” (in case the provided kind is a mimetype)- Returns:
Trueif found.- Return type:
Check if the current
AppStream.Providedcontains an item of the given name.
- set_kind(kind)¶
- Parameters:
kind (
AppStream.ProvidedKind) – the newAppStream.ProvidedKind
Set the kind of items this
AppStream.Providedobject stores.