Interface
IdeConfigProvider
Prerequisite
In order to implement ConfigProvider, your type must inherit fromIdeObject
.
Instance methods
ide_config_provider_emit_added
IdeConfigProvider
implementations should call this function with
a config
when it has discovered a new configuration.
ide_config_provider_emit_removed
IdeConfigProvider
implementations should call this function with
a config
when it has discovered it was removed.
ide_config_provider_load_async
This function is called to initialize the configuration provider after
the plugin instance has been created. The provider should locate any
build configurations within the project and call
ide_config_provider_emit_added()
before completing the
asynchronous function so that the configuration manager may be made
aware of the configurations.
ide_config_provider_load_finish
Completes an asynchronous request to ide_config_provider_load_async().
ide_config_provider_save_async
This function is called to request that the configuration provider persist any changed configurations back to disk.
ide_config_provider_save_finish
Completes an asynchronous request to ide_config_provider_save_async().
ide_config_provider_unload
Requests that the configuration provider unload any state. This is called shortly before the configuration provider is finalized.
Interface structure
struct IdeConfigProviderInterface {
GTypeInterface parent_iface;
void (* added) (
IdeConfigProvider* self,
IdeConfig* config
);
void (* removed) (
IdeConfigProvider* self,
IdeConfig* config
);
void (* load_async) (
IdeConfigProvider* self,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
);
gboolean (* load_finish) (
IdeConfigProvider* self,
GAsyncResult* result,
GError** error
);
void (* save_async) (
IdeConfigProvider* self,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
);
gboolean (* save_finish) (
IdeConfigProvider* self,
GAsyncResult* result,
GError** error
);
void (* delete) (
IdeConfigProvider* self,
IdeConfig* config
);
void (* duplicate) (
IdeConfigProvider* self,
IdeConfig* config
);
void (* unload) (
IdeConfigProvider* self
);
}
Interface members
parent_iface |
|
No description available. | |
added |
|
No description available. | |
removed |
|
No description available. | |
load_async |
|
No description available. | |
load_finish |
|
No description available. | |
save_async |
|
No description available. | |
save_finish |
|
No description available. | |
delete |
|
No description available. | |
duplicate |
|
No description available. | |
unload |
|
No description available. |
Virtual methods
Ide.ConfigProvider.load_async
This function is called to initialize the configuration provider after
the plugin instance has been created. The provider should locate any
build configurations within the project and call
ide_config_provider_emit_added()
before completing the
asynchronous function so that the configuration manager may be made
aware of the configurations.
Ide.ConfigProvider.load_finish
Completes an asynchronous request to ide_config_provider_load_async().
Ide.ConfigProvider.save_async
This function is called to request that the configuration provider persist any changed configurations back to disk.
Ide.ConfigProvider.save_finish
Completes an asynchronous request to ide_config_provider_save_async().
Ide.ConfigProvider.unload
Requests that the configuration provider unload any state. This is called shortly before the configuration provider is finalized.