AppStream.RelationCheckResult

g AppStream.RelationCheckResult AppStream.RelationCheckResult GObject.Object GObject.Object GObject.Object->AppStream.RelationCheckResult

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_error_code ()

get_message ()

get_relation ()

get_status ()

set_error_code (ecode)

set_relation (relation)

set_status (status)

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

GObject.Object

Abstract:

No

Structure:

AppStream.RelationCheckResultClass

classmethod new()
Returns:

a AppStream.RelationCheckResult

Return type:

AppStream.RelationCheckResult

Creates a new AppStream.RelationCheckResult.

New in version 1.0.0.

get_error_code()
Returns:

an AppStream.RelationError

Return type:

AppStream.RelationError

Retrieve the error code, in case this result represents an error.

get_message()
Returns:

a human-readable message about this relation’s state.

Return type:

str or None

Get a human-readable message about the state of this relation. May be None in case the relation is satisfied and there is no further information about it.

get_relation()
Returns:

an AppStream.Relation or None

Return type:

AppStream.Relation or None

Get the relation that this check result was generated for.

get_status()
Returns:

an AppStream.RelationStatus

Return type:

AppStream.RelationStatus

Returns the status of this relation check result. If the status is AppStream.RelationStatus.ERROR, an error message will have been set as message.

set_error_code(ecode)
Parameters:

ecode (AppStream.RelationError) – the AppStream.RelationError

Set the error code in case this result represents an error.

set_relation(relation)
Parameters:

relation (AppStream.Relation) – the AppStream.Relation

Set an AppStream.Relation to associate with this check result.

set_status(status)
Parameters:

status (AppStream.RelationStatus) – the new AppStream.RelationStatus

Set the outcome of this relation check result.