AppStreamGlib.Agreement¶
- 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.Agreement(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod kind_from_string(value)[source]¶
- Parameters:
value (
str
) – the string.- Returns:
a
AppStreamGlib.AgreementKind
orAppStreamGlib.AgreementKind.UNKNOWN
for unknown- Return type:
Converts the text representation to an enumerated value.
New in version 0.7.8.
- classmethod kind_to_string(value)[source]¶
- Parameters:
value (
AppStreamGlib.AgreementKind
) – theAppStreamGlib.AgreementKind
.- Returns:
string version of value
- Return type:
Converts the enumerated value to an text representation.
New in version 0.7.8.
- classmethod new()[source]¶
- Returns:
- Return type:
Creates a new
AppStreamGlib.Agreement
.New in version 0.7.8.
- add_section(agreement_section)[source]¶
- Parameters:
agreement_section (
AppStreamGlib.AgreementSection
) –
- get_kind()[source]¶
- Returns:
a string, e.g.
AppStreamGlib.AgreementKind.EULA
- Return type:
Gets the agreement kind.
New in version 0.7.8.
- get_section_default()[source]¶
- Returns:
agreement section, or
None
- Return type:
Gets the first section in the agreement.
New in version 0.7.8.
- get_sections()[source]¶
- Returns:
array
- Return type:
Gets all the sections in the agreement.
New in version 0.7.8.
- set_kind(kind)[source]¶
- Parameters:
kind (
AppStreamGlib.AgreementKind
) – the agreement kind, e.g.AppStreamGlib.AgreementKind.EULA
Sets the agreement kind.
New in version 0.7.8.