AppStream.RelationCheckResult¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class AppStream.RelationCheckResult(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
- Return type:
Creates a new
AppStream.RelationCheckResult
.New in version 1.0.0.
- get_error_code()¶
- Returns:
- Return type:
Retrieve the error code, in case this result represents an error.
- get_message()¶
-
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
orNone
- Return type:
Get the relation that this check result was generated for.
- get_status()¶
- Returns:
- Return type:
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
) – theAppStream.RelationError
Set the error code in case this result represents an error.
- set_relation(relation)¶
- Parameters:
relation (
AppStream.Relation
) – theAppStream.Relation
Set an
AppStream.Relation
to associate with this check result.
- set_status(status)¶
- Parameters:
status (
AppStream.RelationStatus
) – the newAppStream.RelationStatus
Set the outcome of this relation check result.