Interface
IdeToolchainProvider
Prerequisite
In order to implement ToolchainProvider, your type must inherit fromIdeObject
.
Instance methods
ide_toolchain_provider_emit_added
IdeToolchainProvider
implementations should call this function with
a toolchain
when it has discovered a new toolchain.
ide_toolchain_provider_emit_removed
IdeToolchainProvider
implementations should call this function with
a toolchain
when the toolchain was removed.
ide_toolchain_provider_load_async
This function is called to initialize the toolchain provider after
the plugin instance has been created. The provider should locate any
toolchain within the project and call ide_toolchain_provider_emit_added()
before completing the asynchronous function so that the toolchain
manager may be made aware of the toolchains.
ide_toolchain_provider_load_finish
Completes an asynchronous request to ide_toolchain_provider_load_async().
Interface structure
struct IdeToolchainProviderInterface {
GTypeInterface parent_iface;
void (* load_async) (
IdeToolchainProvider* self,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
);
gboolean (* load_finish) (
IdeToolchainProvider* self,
GAsyncResult* result,
GError** error
);
void (* unload) (
IdeToolchainProvider* self,
IdeToolchainManager* manager
);
void (* added) (
IdeToolchainProvider* self,
IdeToolchain* toolchain
);
void (* removed) (
IdeToolchainProvider* self,
IdeToolchain* toolchain
);
}
Interface members
parent_iface |
|
No description available. | |
load_async |
|
No description available. | |
load_finish |
|
No description available. | |
unload |
|
No description available. | |
added |
|
No description available. | |
removed |
|
No description available. |
Virtual methods
Ide.ToolchainProvider.load_async
This function is called to initialize the toolchain provider after
the plugin instance has been created. The provider should locate any
toolchain within the project and call ide_toolchain_provider_emit_added()
before completing the asynchronous function so that the toolchain
manager may be made aware of the toolchains.
Ide.ToolchainProvider.load_finish
Completes an asynchronous request to ide_toolchain_provider_load_async().