AppStream.Provided

g AppStream.Provided AppStream.Provided GObject.Object GObject.Object GObject.Object->AppStream.Provided

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

add_item (item)

get_items ()

get_kind ()

has_item (item)

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

GObject.Object

Abstract:

No

Structure:

AppStream.ProvidedClass

classmethod new()
Returns:

a AppStream.Provided

Return type:

AppStream.Provided

Creates a new AppStream.Provided.

add_item(item)
Parameters:

item (str) –

Add a new provided item.

get_items()
Returns:

An string list of provided items.

Return type:

[str]

Get an array of provided data.

get_kind()
Returns:

an enum of type AppStream.ProvidedKind

Return type:

AppStream.ProvidedKind

The kind of items this AppStream.Provided object stores.

has_item(item)
Parameters:

item (str) – the name of a provided item, e.g. “audio/x-vorbis” (in case the provided kind is a mimetype)

Returns:

True if found.

Return type:

bool

Check if the current AppStream.Provided contains an item of the given name.

set_kind(kind)
Parameters:

kind (AppStream.ProvidedKind) – the new AppStream.ProvidedKind

Set the kind of items this AppStream.Provided object stores.