AppStreamGlib.Suggest

g AppStreamGlib.Suggest AppStreamGlib.Suggest GObject.Object GObject.Object GObject.Object->AppStreamGlib.Suggest

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

kind_from_string (kind)

class

kind_to_string (kind)

class

new ()

add_id (id)

get_ids ()

get_kind ()

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

GObject.Object

Abstract:

No

Structure:

AppStreamGlib.SuggestClass

classmethod kind_from_string(kind)[source]
Parameters:

kind (str) – the string.

Returns:

a AppStreamGlib.SuggestKind, or AppStreamGlib.SuggestKind.UNKNOWN for unknown.

Return type:

AppStreamGlib.SuggestKind

Converts the text representation to an enumerated value.

New in version 0.6.1.

classmethod kind_to_string(kind)[source]
Parameters:

kind (AppStreamGlib.SuggestKind) – the AppStreamGlib.SuggestKind.

Returns:

string version of kind

Return type:

str

Converts the enumerated value to an text representation.

New in version 0.6.1.

classmethod new()[source]
Returns:

a AppStreamGlib.Suggest

Return type:

AppStreamGlib.Suggest

Creates a new AppStreamGlib.Suggest.

New in version 0.6.1.

add_id(id)[source]
Parameters:

id (str) – an application ID, e.g. gimp.desktop

Add a the suggest application ID.

New in version 0.6.1.

get_ids()[source]
Returns:

the GLib.PtrArray, or None

Return type:

[str]

Gets the suggest ids if set.

New in version 0.6.1.

get_kind()[source]
Returns:

the AppStreamGlib.SuggestKind

Return type:

AppStreamGlib.SuggestKind

Gets the suggest kind.

New in version 0.6.1.

set_kind(kind)[source]
Parameters:

kind (AppStreamGlib.SuggestKind) – the AppStreamGlib.SuggestKind, e.g. AppStreamGlib.SuggestKind.UPSTREAM.

Sets the suggest kind.

New in version 0.6.1.