Foundry.DependencyProvider

g Foundry.Contextual Foundry.Contextual Foundry.DependencyProvider Foundry.DependencyProvider Foundry.Contextual->Foundry.DependencyProvider GObject.GInterface GObject.GInterface Json.Serializable Json.Serializable GObject.GInterface->Json.Serializable GObject.Object GObject.Object GObject.Object->Foundry.Contextual Json.Serializable->Foundry.Contextual

Subclasses:

None

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

dup_plugin_info ()

list_dependencies (config, parent)

update_dependencies (config, dependencies, pty_fd, cancellable)

Virtual Methods

Inherited:

GObject.Object (7), Json.Serializable (5)

do_list_dependencies (config, parent)

do_update_dependencies (config, dependencies, pty_fd, cancellable)

Properties

Inherited:

Foundry.Contextual (1)

Name

Type

Flags

Short Description

plugin-info

Peas.PluginInfo

r/w/co

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

Foundry.Contextual

r

Class Details

class Foundry.DependencyProvider(**kwargs)
Bases:

Foundry.Contextual

Abstract:

Yes

Structure:

Foundry.DependencyProviderClass

Abstract base class for plugins to provide known dependencies.

dup_plugin_info()
Returns:

a [class`Peas`.PluginInfo] or None

Return type:

Peas.PluginInfo

Gets the plugin the provider belongs to.

list_dependencies(config, parent)
Parameters:
Returns:

a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.Dependency] or rejects with an error.

Return type:

Dex.Future

Retrieves a list of dependencies for config.

parent may be set to a previously provided [class`Foundry`.Dependency] in which case the provider must list the dependencies of that dependency or reject with error if unsupported. G_IO_ERROR_NOT_SUPPORTED is the preferred error code for this.

update_dependencies(config, dependencies, pty_fd, cancellable)
Parameters:
Return type:

Dex.Future

do_list_dependencies(config, parent) virtual
Parameters:
Returns:

a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.Dependency] or rejects with an error.

Return type:

Dex.Future

Retrieves a list of dependencies for config.

parent may be set to a previously provided [class`Foundry`.Dependency] in which case the provider must list the dependencies of that dependency or reject with error if unsupported. G_IO_ERROR_NOT_SUPPORTED is the preferred error code for this.

do_update_dependencies(config, dependencies, pty_fd, cancellable) virtual
Parameters:
Return type:

Dex.Future

Property Details

Foundry.DependencyProvider.props.plugin_info
Name:

plugin-info

Type:

Peas.PluginInfo

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY