AppStream.Suggested

g AppStream.Suggested AppStream.Suggested GObject.Object GObject.Object GObject.Object->AppStream.Suggested

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

add_id (cid)

get_ids ()

get_kind ()

is_valid ()

set_kind (kind)

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

GObject.Object

Abstract:

No

Structure:

AppStream.SuggestedClass

classmethod new()
Returns:

a new AppStream.Suggested

Return type:

AppStream.Suggested

Creates a new AppStream.Suggested.

add_id(cid)
Parameters:

cid (str) – The component id to add

Add a component id to this suggested object.

get_ids()
Returns:

an array of components id

Return type:

[str]

Get a list of components id that generated the suggestion

get_kind()
Returns:

the AppStream.SuggestedKind

Return type:

AppStream.SuggestedKind

Gets the suggested kind.

is_valid()
Returns:

True if we have useful data.

Return type:

bool

Check if the essential properties of this suggestion are populated with useful data.

set_kind(kind)
Parameters:

kind (AppStream.SuggestedKind) – the AppStream.SuggestedKind, e.g. AppStream.SuggestedKind.HEURISTIC.

Sets the suggested kind.