Foundry.SdkProvider

g Foundry.Contextual Foundry.Contextual Foundry.SdkProvider Foundry.SdkProvider Foundry.Contextual->Foundry.SdkProvider GObject.GInterface GObject.GInterface Gio.ListModel Gio.ListModel GObject.GInterface->Gio.ListModel Json.Serializable Json.Serializable GObject.GInterface->Json.Serializable GObject.Object GObject.Object GObject.Object->Foundry.Contextual Gio.ListModel->Foundry.SdkProvider Json.Serializable->Foundry.Contextual

Subclasses:

None

Methods

Inherited:

Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8), Gio.ListModel (4)

Structs:

GObject.ObjectClass (5)

dup_name ()

find_by_id (sdk_id)

merge (sdks)

sdk_added (sdk)

sdk_removed (sdk)

Virtual Methods

Inherited:

GObject.Object (7), Json.Serializable (5), Gio.ListModel (3)

do_dup_name ()

do_find_by_id (sdk_id)

Properties

Inherited:

Foundry.Contextual (1)

Signals

Inherited:

GObject.Object (1), Gio.ListModel (1)

Fields

Inherited:

GObject.Object (1), Gio.ListModel (1)

Name

Type

Access

Description

parent_instance

Foundry.Contextual

r

Class Details

class Foundry.SdkProvider(**kwargs)
Bases:

Foundry.Contextual, Gio.ListModel

Abstract:

Yes

Structure:

Foundry.SdkProviderClass

Abstract base class implemented by plugins to provide access to SDKs of a specific type.

dup_name()
Returns:

the name of the provider

Return type:

str

Gets a name for the provider that is expected to be displayed to users such as “Flatpak”.

find_by_id(sdk_id)
Parameters:

sdk_id (str) – the identifier for the SDK such as “org.gnome.Sdk/x86_64/master”

Returns:

a [class`Dex`.Future] that resolves to a [class`Foundry`.Sdk] or rejects with error.

Return type:

Dex.Future

merge(sdks)
Parameters:

sdks ([Foundry.Sdk]) – a GLib.PtrArray of SDKs

This is a convenience function for SDK providers that need to parse the whole set of SDKs when doing updating. Just provide them all as a list here and only the changes will be applied.

sdk_added(sdk)
Parameters:

sdk (Foundry.Sdk) –

sdk_removed(sdk)
Parameters:

sdk (Foundry.Sdk) –

do_dup_name() virtual
Returns:

the name of the provider

Return type:

str

Gets a name for the provider that is expected to be displayed to users such as “Flatpak”.

do_find_by_id(sdk_id) virtual
Parameters:

sdk_id (str) – the identifier for the SDK such as “org.gnome.Sdk/x86_64/master”

Returns:

a [class`Dex`.Future] that resolves to a [class`Foundry`.Sdk] or rejects with error.

Return type:

Dex.Future