Foundry.DocumentationProvider¶
- 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.DocumentationProvider(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Abstract base class for plugins to provide documentation.
- dup_plugin_info()¶
- Returns:
a [class`Peas`.PluginInfo] or
None- Return type:
Gets the plugin the provider belongs to.
- find_by_uri(uri)¶
- Parameters:
uri (
str) –- Returns:
a [class`Dex`.Future] that will resolve to a [class`Foundry`.Documentation] or reject with error.
- Return type:
- index(roots)¶
- Parameters:
roots (
Gio.ListModel) – a [iface`Gio`.ListModel] of [class`Foundry`.DocumentationRoot]- Returns:
a [class`Dex`.Future] that resolves to any value or rejects with error.
- Return type:
This method is called when the documentation provider should rescan the provided roots for changes.
- list_bundles()¶
- Returns:
a [class`Dex`.Future] that will resolve to a [iface`Gio`.ListModel] of [class`Foundry`.DocumentationBundle] or reject with error.
- Return type:
- list_children(parent)¶
- Parameters:
parent (
Foundry.Documentation) –- Returns:
a [class`Dex`.Future] that will resolve to a [iface`Gio`.ListModel] or reject with error.
- Return type:
- list_roots()¶
- Returns:
a [iface`Gio`.ListModel] of [class`Foundry`.DocumentationRoot] containing information about discovering documentation.
- Return type:
Returns a list of [class`Foundry`.DocumentationRoot] that may contain documentation to be discovered and ingested. This allows plugins for SDKs to provide information about where documentation is located.
It is expected that this list model will be updated when there are changes to the underlying file-system which will require re-parsing content for updates.
- query(query, matches)¶
- Parameters:
query (
Foundry.DocumentationQuery) – a [class`Foundry`.DocumentationQuery]matches (
Foundry.DocumentationMatches) – a [class`Foundry`.DocumentationMatches]
- Returns:
a [class`Dex`.Future] that resolves to a any value or rejects with error.
- Return type:
Providers are expected to add their search sections to matches using [method`Foundry`.DocumentationMatches.add_section].
- do_find_by_uri(uri) virtual¶
- Parameters:
uri (
str) –- Returns:
a [class`Dex`.Future] that will resolve to a [class`Foundry`.Documentation] or reject with error.
- Return type:
- do_index(roots) virtual¶
- Parameters:
roots (
Gio.ListModel) – a [iface`Gio`.ListModel] of [class`Foundry`.DocumentationRoot]- Returns:
a [class`Dex`.Future] that resolves to any value or rejects with error.
- Return type:
This method is called when the documentation provider should rescan the provided roots for changes.
- do_list_bundles() virtual¶
- Returns:
a [class`Dex`.Future] that will resolve to a [iface`Gio`.ListModel] of [class`Foundry`.DocumentationBundle] or reject with error.
- Return type:
- do_list_children(parent) virtual¶
- Parameters:
parent (
Foundry.Documentation) –- Returns:
a [class`Dex`.Future] that will resolve to a [iface`Gio`.ListModel] or reject with error.
- Return type:
- do_list_roots() virtual¶
- Returns:
a [iface`Gio`.ListModel] of [class`Foundry`.DocumentationRoot] containing information about discovering documentation.
- Return type:
Returns a list of [class`Foundry`.DocumentationRoot] that may contain documentation to be discovered and ingested. This allows plugins for SDKs to provide information about where documentation is located.
It is expected that this list model will be updated when there are changes to the underlying file-system which will require re-parsing content for updates.
- do_query(query, matches) virtual¶
- Parameters:
query (
Foundry.DocumentationQuery) – a [class`Foundry`.DocumentationQuery]matches (
Foundry.DocumentationMatches) – a [class`Foundry`.DocumentationMatches]
- Returns:
a [class`Dex`.Future] that resolves to a any value or rejects with error.
- Return type:
Providers are expected to add their search sections to matches using [method`Foundry`.DocumentationMatches.add_section].
Property Details¶
- Foundry.DocumentationProvider.props.plugin_info¶
- Name:
plugin-info- Type:
- Default Value:
- Flags: