AppStreamGlib.AgreementSection

g AppStreamGlib.AgreementSection AppStreamGlib.AgreementSection GObject.Object GObject.Object GObject.Object->AppStreamGlib.AgreementSection

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_description (locale)

get_kind ()

get_name (locale)

set_description (locale, desc)

set_kind (kind)

set_name (locale, name)

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

GObject.Object

Abstract:

No

Structure:

AppStreamGlib.AgreementSectionClass

classmethod new()[source]
Returns:

a AppStreamGlib.AgreementSection

Return type:

AppStreamGlib.AgreementSection

Creates a new AppStreamGlib.AgreementSection.

New in version 0.7.8.

get_description(locale)[source]
Parameters:

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

Returns:

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

Return type:

str

Gets the agreement section desc.

New in version 0.7.8.

get_kind()[source]
Returns:

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

Return type:

str

Gets the agreement section kind.

New in version 0.7.8.

get_name(locale)[source]
Parameters:

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

Returns:

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

Return type:

str

Gets the agreement section name.

New in version 0.7.8.

set_description(locale, desc)[source]
Parameters:
  • locale (str or None) – the locale. e.g. “en_GB”

  • desc (str) – the rating desc, e.g. “GDPR”

Sets the agreement section description.

New in version 0.7.8.

set_kind(kind)[source]
Parameters:

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

Sets the agreement section kind.

New in version 0.7.8.

set_name(locale, name)[source]
Parameters:
  • locale (str or None) – the locale. e.g. “en_GB”

  • name (str) – the rating name, e.g. “GDPR”

Sets the agreement section name.

New in version 0.7.8.