AppStreamGlib.Provide¶
- 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.Provide(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod kind_from_string(kind)[source]¶
- Parameters:
kind (
str
) – the string.- Returns:
a
AppStreamGlib.ProvideKind
, orAppStreamGlib.ProvideKind.UNKNOWN
for unknown.- Return type:
Converts the text representation to an enumerated value.
New in version 0.1.6.
- classmethod kind_to_string(kind)[source]¶
- Parameters:
kind (
AppStreamGlib.ProvideKind
) – theAppStreamGlib.ProvideKind
.- Returns:
string version of kind
- Return type:
Converts the enumerated value to an text representation.
New in version 0.1.6.
- classmethod new()[source]¶
- Returns:
- Return type:
Creates a new
AppStreamGlib.Provide
.New in version 0.1.6.
- get_value()[source]¶
- Returns:
URL
- Return type:
Gets the full qualified URL for the provide, usually pointing at some mirror.
New in version 0.1.6.
- set_kind(kind)[source]¶
- Parameters:
kind (
AppStreamGlib.ProvideKind
) – theAppStreamGlib.ProvideKind
, e.g.AppStreamGlib.ProvideKind.LIBRARY
.
Sets the provide kind.
New in version 0.1.6.