Foundry.DependencyProvider¶
- Subclasses:
None
Methods¶
- Inherited:
Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8)
- Structs:
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Foundry.DependencyProvider(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Abstract base class for plugins to provide known dependencies.
- dup_plugin_info()¶
- Returns:
a [class`Peas`.PluginInfo] or
None- Return type:
Gets the plugin the provider belongs to.
- list_dependencies(config, parent)¶
- Parameters:
config (
Foundry.Config) – a [class`Foundry`.Config]parent (
Foundry.DependencyorNone) – a [class`Foundry`.Dependency] orNone
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.Dependency] or rejects with an error.
- Return type:
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_SUPPORTEDis the preferred error code for this.
- update_dependencies(config, dependencies, pty_fd, cancellable)¶
- Parameters:
config (
Foundry.Config) –dependencies (
Gio.ListModel) –pty_fd (
int) –cancellable (
Dex.Cancellable) –
- Return type:
- do_list_dependencies(config, parent) virtual¶
- Parameters:
config (
Foundry.Config) – a [class`Foundry`.Config]parent (
Foundry.DependencyorNone) – a [class`Foundry`.Dependency] orNone
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.Dependency] or rejects with an error.
- Return type:
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_SUPPORTEDis the preferred error code for this.
- do_update_dependencies(config, dependencies, pty_fd, cancellable) virtual¶
- Parameters:
config (
Foundry.Config) –dependencies (
Gio.ListModel) –pty_fd (
int) –cancellable (
Dex.Cancellable) –
- Return type:
Property Details¶
- Foundry.DependencyProvider.props.plugin_info¶
- Name:
plugin-info- Type:
- Default Value:
- Flags: