AppStream.AgreementSection

g AppStream.AgreementSection AppStream.AgreementSection GObject.Object GObject.Object GObject.Object->AppStream.AgreementSection

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_context ()

get_description ()

get_kind ()

get_name ()

set_context (context)

set_description (desc, locale)

set_kind (kind)

set_name (name, locale)

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.AgreementSection(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

AppStream.AgreementSectionClass

classmethod new()
Returns:

a AppStream.AgreementSection

Return type:

AppStream.AgreementSection

Creates a new AppStream.AgreementSection.

New in version 0.12.1.

get_context()
Returns:

the AppStream.Context used by this agreement section.

Return type:

AppStream.Context or None

Returns the AppStream.Context associated with this section. This function may return None if no context is set.

New in version 0.12.1.

get_description()
Returns:

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

Return type:

str

Gets the agreement section desc.

New in version 0.12.1.

get_kind()
Returns:

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

Return type:

str

Gets the agreement section kind.

New in version 0.12.1.

get_name()
Returns:

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

Return type:

str

Gets the agreement section name.

New in version 0.12.1.

set_context(context)
Parameters:

context (AppStream.Context) – the AppStream.Context.

Sets the document context this release is associated with.

New in version 0.12.1.

set_description(desc, locale)
Parameters:
  • desc (str) – the agreement description, e.g. “GDPR”

  • locale (str or None) – the locale in BCP47 format. e.g. “en-GB”

Sets the agreement section desc.

New in version 0.12.1.

set_kind(kind)
Parameters:

kind (str) – the agreement kind, e.g. “GDPR”

Sets the agreement section kind.

New in version 0.12.1.

set_name(name, locale)
Parameters:
  • name (str) – the agreement name, e.g. “GDPR”

  • locale (str or None) – the locale. e.g. “en_GB”

Sets the agreement section name.

New in version 0.12.1.