Foundry.IntentHandler¶
- Subclasses:
None
Methods¶
- Inherited:
Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8)
- Structs:
|
Virtual Methods¶
- Inherited:
|
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Foundry.IntentHandler(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Abstract base class for handling intents.
Foundry.IntentHandlerprovides 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:
Dispatches the intent.
If this handler cannot handle this intent type it just reject with
G_IO_ERRORandG_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:
Dispatches the intent.
If this handler cannot handle this intent type it just reject with
G_IO_ERRORandG_IO_ERROR_NOT_SUPPORTED.