AppStream.Agreement¶
- 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.Agreement(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
- Return type:
Creates a new
AppStream.Agreement
.New in version 0.12.1.
- add_section(agreement_section)¶
- Parameters:
agreement_section (
AppStream.AgreementSection
) –
- get_kind()¶
- Returns:
a string, e.g.
AppStream.AgreementKind.EULA
- Return type:
Gets the agreement kind.
New in version 0.12.1.
- get_section_default()¶
- Returns:
agreement section, or
None
- Return type:
Gets the first section in the agreement.
New in version 0.12.1.
- get_sections()¶
- Returns:
array
- Return type:
Gets all the sections in the agreement.
New in version 0.12.1.
- get_version_id()¶
-
Gets the agreement version_id.
New in version 0.12.1.
- set_kind(kind)¶
- Parameters:
kind (
AppStream.AgreementKind
) – the agreement kind, e.g.AppStream.AgreementKind.EULA
Sets the agreement kind.
New in version 0.12.1.