AppStreamGlib.Provide

g AppStreamGlib.Provide AppStreamGlib.Provide GObject.Object GObject.Object GObject.Object->AppStreamGlib.Provide

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

GObject.Object

Abstract:

No

Structure:

AppStreamGlib.ProvideClass

classmethod kind_from_string(kind)[source]
Parameters:

kind (str) – the string.

Returns:

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

Return type:

AppStreamGlib.ProvideKind

Converts the text representation to an enumerated value.

New in version 0.1.6.

classmethod kind_to_string(kind)[source]
Parameters:

kind (AppStreamGlib.ProvideKind) – the AppStreamGlib.ProvideKind.

Returns:

string version of kind

Return type:

str

Converts the enumerated value to an text representation.

New in version 0.1.6.

classmethod new()[source]
Returns:

a AppStreamGlib.Provide

Return type:

AppStreamGlib.Provide

Creates a new AppStreamGlib.Provide.

New in version 0.1.6.

get_kind()[source]
Returns:

the AppStreamGlib.ProvideKind

Return type:

AppStreamGlib.ProvideKind

Gets the provide kind.

New in version 0.1.6.

get_value()[source]
Returns:

URL

Return type:

str

Gets the full qualified URL for the provide, usually pointing at some mirror.

New in version 0.1.6.

set_kind(kind)[source]
Parameters:

kind (AppStreamGlib.ProvideKind) – the AppStreamGlib.ProvideKind, e.g. AppStreamGlib.ProvideKind.LIBRARY.

Sets the provide kind.

New in version 0.1.6.

set_value(value)[source]
Parameters:

value (str) – the URL.

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

New in version 0.1.6.