AppStream.Agreement

g AppStream.Agreement AppStream.Agreement GObject.Object GObject.Object GObject.Object->AppStream.Agreement

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

add_section (agreement_section)

get_kind ()

get_section_default ()

get_sections ()

get_version_id ()

set_kind (kind)

set_version_id (version_id)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class AppStream.Agreement(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

AppStream.AgreementClass

classmethod new()
Returns:

a AppStream.Agreement

Return type:

AppStream.Agreement

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:

AppStream.AgreementKind

Gets the agreement kind.

New in version 0.12.1.

get_section_default()
Returns:

agreement section, or None

Return type:

AppStream.AgreementSection or None

Gets the first section in the agreement.

New in version 0.12.1.

get_sections()
Returns:

array

Return type:

[AppStream.AgreementSection]

Gets all the sections in the agreement.

New in version 0.12.1.

get_version_id()
Returns:

a string, e.g. “1.4a”, or None

Return type:

str

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.

set_version_id(version_id)
Parameters:

version_id (str) – the agreement version ID, e.g. “1.4a”

Sets the agreement version identifier.

New in version 0.12.1.