AppStreamGlib.Problem

g AppStreamGlib.Problem AppStreamGlib.Problem GObject.Object GObject.Object GObject.Object->AppStreamGlib.Problem

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

kind_to_string (kind)

class

new ()

get_kind ()

get_line_number ()

get_message ()

set_kind (kind)

set_line_number (line_number)

set_message (message)

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

GObject.Object

Abstract:

No

Structure:

AppStreamGlib.ProblemClass

classmethod kind_to_string(kind)[source]
Parameters:

kind (AppStreamGlib.ProblemKind) – the AppStreamGlib.ProblemKind.

Returns:

string version of kind

Return type:

str

Converts the enumerated value to an text representation.

New in version 0.1.4.

classmethod new()[source]
Returns:

a AppStreamGlib.Problem

Return type:

AppStreamGlib.Problem

Creates a new AppStreamGlib.Problem.

New in version 0.1.4.

get_kind()[source]
Returns:

a AppStreamGlib.ProblemKind, e.g. AppStreamGlib.ProblemKind.TAG_MISSING

Return type:

AppStreamGlib.ProblemKind

Gets the problem kind.

New in version 0.1.4.

get_line_number()[source]
Returns:

a line number, where 0 is unknown

Return type:

int

Gets the line number of the problem if known.

New in version 0.1.4.

get_message()[source]
Returns:

the message

Return type:

str

Gets the specific message for the problem.

New in version 0.1.4.

set_kind(kind)[source]
Parameters:

kind (AppStreamGlib.ProblemKind) – the AppStreamGlib.ProblemKind.

Sets the problem kind.

New in version 0.1.4.

set_line_number(line_number)[source]
Parameters:

line_number (int) – a int instance.

Adds an line_number to the problem.

New in version 0.1.4.

set_message(message)[source]
Parameters:

message (str) – the message text.

Sets a message on the problem.

New in version 0.1.4.