Foundry.IntentHandler

g Foundry.Contextual Foundry.Contextual Foundry.IntentHandler Foundry.IntentHandler Foundry.Contextual->Foundry.IntentHandler 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)

dispatch (intent)

Virtual Methods

Inherited:

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

do_dispatch (intent)

Properties

Inherited:

Foundry.Contextual (1)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

Foundry.Contextual

r

Class Details

class Foundry.IntentHandler(**kwargs)
Bases:

Foundry.Contextual

Abstract:

Yes

Structure:

Foundry.IntentHandlerClass

Abstract base class for handling intents.

Foundry.IntentHandler provides the core interface for processing intents and handling specific actions within the development environment. Concrete implementations handle specific intent types and provide specialized functionality for different development workflows and user interactions.

dispatch(intent)
Parameters:

intent (Foundry.Intent) –

Returns:

a [class`Dex`.Future] that resolves to any value if successful; otherwise rejects with error.

Return type:

Dex.Future

Dispatches the intent.

If this handler cannot handle this intent type it just reject with G_IO_ERROR and G_IO_ERROR_NOT_SUPPORTED.

do_dispatch(intent) virtual
Parameters:

intent (Foundry.Intent) –

Returns:

a [class`Dex`.Future] that resolves to any value if successful; otherwise rejects with error.

Return type:

Dex.Future

Dispatches the intent.

If this handler cannot handle this intent type it just reject with G_IO_ERROR and G_IO_ERROR_NOT_SUPPORTED.