AppStreamGlib.Launchable

g AppStreamGlib.Launchable AppStreamGlib.Launchable GObject.Object GObject.Object GObject.Object->AppStreamGlib.Launchable

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

kind_from_string (kind)

class

kind_to_string (kind)

class

new ()

get_kind ()

get_value ()

set_kind (kind)

set_value (value)

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

GObject.Object

Abstract:

No

Structure:

AppStreamGlib.LaunchableClass

classmethod kind_from_string(kind)[source]
Parameters:

kind (str) – the string.

Returns:

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

Return type:

AppStreamGlib.LaunchableKind

Converts the text representation to an enumerated value.

New in version 0.6.13.

classmethod kind_to_string(kind)[source]
Parameters:

kind (AppStreamGlib.LaunchableKind) – the AppStreamGlib.LaunchableKind.

Returns:

string version of kind

Return type:

str

Converts the enumerated value to an text representation.

New in version 0.6.13.

classmethod new()[source]
Returns:

a AppStreamGlib.Launchable

Return type:

AppStreamGlib.Launchable

Creates a new AppStreamGlib.Launchable.

New in version 0.6.13.

get_kind()[source]
Returns:

the AppStreamGlib.LaunchableKind

Return type:

AppStreamGlib.LaunchableKind

Gets the launchable kind.

New in version 0.6.13.

get_value()[source]
Returns:

usually a desktop ID, e.g. “gimp.desktop”

Return type:

str

Gets the value to use for the launchable.

New in version 0.6.13.

set_kind(kind)[source]
Parameters:

kind (AppStreamGlib.LaunchableKind) – the AppStreamGlib.LaunchableKind, e.g. AppStreamGlib.LaunchableKind.DESKTOP_ID.

Sets the launchable kind.

New in version 0.6.13.

set_value(value)[source]
Parameters:

value (str) – the URL.

Sets the fully-qualified mirror URL to use for the launchable.

New in version 0.6.13.