AppStreamGlib.Suggest¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class AppStreamGlib.Suggest(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod kind_from_string(kind)[source]¶
- Parameters:
kind (
str
) – the string.- Returns:
a
AppStreamGlib.SuggestKind
, orAppStreamGlib.SuggestKind.UNKNOWN
for unknown.- Return type:
Converts the text representation to an enumerated value.
New in version 0.6.1.
- classmethod kind_to_string(kind)[source]¶
- Parameters:
kind (
AppStreamGlib.SuggestKind
) – theAppStreamGlib.SuggestKind
.- Returns:
string version of kind
- Return type:
Converts the enumerated value to an text representation.
New in version 0.6.1.
- classmethod new()[source]¶
- Returns:
- Return type:
Creates a new
AppStreamGlib.Suggest
.New in version 0.6.1.
- add_id(id)[source]¶
- Parameters:
id (
str
) – an application ID, e.g.gimp.desktop
Add a the suggest application ID.
New in version 0.6.1.
- get_ids()[source]¶
- Returns:
the
GLib.PtrArray
, orNone
- Return type:
[
str
]
Gets the suggest ids if set.
New in version 0.6.1.
- set_kind(kind)[source]¶
- Parameters:
kind (
AppStreamGlib.SuggestKind
) – theAppStreamGlib.SuggestKind
, e.g.AppStreamGlib.SuggestKind.UPSTREAM
.
Sets the suggest kind.
New in version 0.6.1.