Top | ![]() |
![]() |
![]() |
![]() |
The IdeService inteface is meant as a place to provide utility code to your plugin that should have it's lifetime bound to the lifetime of the loaded project.
When the project is created, the service will be started. When the project is closed, the service will be stopped and discarded.
const gchar *
ide_service_get_name (IdeService *self
);
Gets the name of the service. By default, the name of the object is used as the service name.
Since: 3.16
void
ide_service_start (IdeService *self
);
This calls the IdeServiceInterface.start virtual function which plugins use to initialize their service.
This function is called by the owning IdeContext and should not be needed by plugins or other internal API in Builder.
Since: 3.16
void
ide_service_stop (IdeService *self
);
This calls the IdeServiceInterface.stop virtual function which plugins use to cleanup after their service.
This function is called by the owning IdeContext and should not be needed by plugins or other internal API in Builder.
Since: 3.16
struct IdeServiceInterface { GTypeInterface parent_interface; void (*context_loaded) (IdeService *self); const gchar *(*get_name) (IdeService *self); void (*start) (IdeService *self); void (*stop) (IdeService *self); };
Implement this virtual function to be notified when the IdeContext has completed loading. |
||
Implement this virtual function to provide a useful name of the service. By default, the type name is used. |
||
Implement this virtual function be notified when the service
should start processing. This is usually before |
||
Implement this virtual function to be notified when the service should shut itself down by cleaning up any resources. |
Since: 3.16
“context-loaded”
signalvoid user_function (IdeService *self, gpointer user_data)
The "context-loaded" signal is emitted when the owning IdeContext has completed loading the project. This may be useful if you want to defer startup procedures until the context is fully loaded.
Flags: Run Last
Since: 3.20