Foundry.SearchResult¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
|||
r |
|||
r |
|||
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Foundry.SearchResult(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Abstract base class for search results.
Foundry.SearchResultprovides the core interface for representing search results with common properties like title, subtitle, and icon. Concrete implementations handle specific types of search results and provide specialized functionality for different search contexts and result types.- create_intent(context)¶
- Parameters:
context (
Foundry.Context) – a [class`Foundry`.Context]- Return type:
Create an intent for the search result.
For search results that support intents, this describes an action that should be handled for the user and dispatched via [method`Foundry`.IntentManager.dispatch].
New in version 1.1.
- get_use_underline()¶
-
Gets whether the search result should use underline.
New in version 1.1.
- load()¶
- Returns:
a [class`Dex`.Future] that resolves to a [class`GObject`.Object].
- Return type:
Loads the contents of the search result.
The consumer of this should know how to handle the specific object type by checking it’s
GType.For example, if the result is a [class`Foundry`.Documentation] then you may want to check it’s URI property to open the documentation.
It is expected that search providers load well known object types which applications can reasonably handle.
- do_create_intent(context) virtual¶
- Parameters:
context (
Foundry.Context) – a [class`Foundry`.Context]- Return type:
Create an intent for the search result.
For search results that support intents, this describes an action that should be handled for the user and dispatched via [method`Foundry`.IntentManager.dispatch].
New in version 1.1.
- do_get_use_underline() virtual¶
-
Gets whether the search result should use underline.
New in version 1.1.
- do_load() virtual¶
- Returns:
a [class`Dex`.Future] that resolves to a [class`GObject`.Object].
- Return type:
Loads the contents of the search result.
The consumer of this should know how to handle the specific object type by checking it’s
GType.For example, if the result is a [class`Foundry`.Documentation] then you may want to check it’s URI property to open the documentation.
It is expected that search providers load well known object types which applications can reasonably handle.