Foundry.TemplateProvider

g Foundry.TemplateProvider Foundry.TemplateProvider GObject.Object GObject.Object GObject.Object->Foundry.TemplateProvider

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

list_code_templates (context)

list_project_templates ()

Virtual Methods

Inherited:

GObject.Object (7)

do_list_code_templates (context)

do_list_project_templates ()

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Foundry.TemplateProvider(**kwargs)
Bases:

GObject.Object

Abstract:

Yes

Structure:

Foundry.TemplateProviderClass

list_code_templates(context)
Parameters:

context (Foundry.Context or None) – a [class`Foundry`.Context] or None

Returns:

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

Return type:

Dex.Future

You may specify context to ensure that project-specific values are inherited for projects. Some providers may even provide additional templates that are defined within the project which would otherwise not be available.

list_project_templates()
Returns:

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

Return type:

Dex.Future

do_list_code_templates(context) virtual
Parameters:

context (Foundry.Context or None) – a [class`Foundry`.Context] or None

Returns:

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

Return type:

Dex.Future

You may specify context to ensure that project-specific values are inherited for projects. Some providers may even provide additional templates that are defined within the project which would otherwise not be available.

do_list_project_templates() virtual
Returns:

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

Return type:

Dex.Future