Top | ![]() |
![]() |
![]() |
![]() |
gboolean
ide_application_has_network (IdeApplication *self
);
This is a helper that uses an internal GNetworkMonitor to track if we have access to the network. It works around some issues we've seen in the wild that make determining if we have network access difficult.
Since: 3.32
gchar ** ide_application_get_argv (IdeApplication *self
,GApplicationCommandLine *cmdline
);
Gets the commandline for cmdline
as it was before any processing.
This is useful to handle both local and remote processing of argv
when you need to know what the arguments were before further
options parsing.
Since: 3.32
GDateTime *
ide_application_get_started_at (IdeApplication *self
);
Gets the time the application was started.
Since: 3.32
gboolean ide_application_get_command_line_handled (IdeApplication *self
,GApplicationCommandLine *cmdline
);
void ide_application_set_command_line_handled (IdeApplication *self
,GApplicationCommandLine *cmdline
,gboolean handled
);
void ide_application_open_project_async (IdeApplication *self
,IdeProjectInfo *project_info
,GType workspace_type
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
IdeWorkbench * ide_application_open_project_finish (IdeApplication *self
,GAsyncResult *result
,GError **error
);
Completes a request to open a project.
The workbench containing the project is returned, which may be an existing workbench if the project was already opened.
Since: 3.32
void ide_application_set_workspace_type (IdeApplication *self
,GType workspace_type
);
Sets the GType of an IdeWorkspace that should be used when creating the next workspace upon handling files from command-line arguments. This is reset after the files are opened and is generally only useful from IdeApplicationAddin's who need to alter the default workspace.
Since: 3.32
void ide_application_add_workbench (IdeApplication *self
,IdeWorkbench *workbench
);
void ide_application_remove_workbench (IdeApplication *self
,IdeWorkbench *workbench
);
void ide_application_foreach_workbench (IdeApplication *self
,GFunc callback
,gpointer user_data
);
Calls callback
for each of the registered workbenches.
Since: 3.32
void ide_application_get_worker_async (IdeApplication *self
,const gchar *plugin_name
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously requests a GDBusProxy to a service provided in a worker
process. The worker should be an IdeWorker implemented by the plugin named
plugin_name
. The IdeWorker is responsible for created both the service
registered on the bus and the proxy to it.
The IdeApplication is responsible for spawning a subprocess for the worker.
callback
should call ide_application_get_worker_finish()
with the result
provided to retrieve the result.
self |
||
plugin_name |
The name of the plugin. |
|
cancellable |
a GCancellable or |
[allow-none] |
callback |
a GAsyncReadyCallback or |
|
user_data |
user data for |
Since: 3.32
GDBusProxy * ide_application_get_worker_finish (IdeApplication *self
,GAsyncResult *result
,GError **error
);
Completes an asynchronous request to get a proxy to a worker process.
Since: 3.32
IdeWorkbench * ide_application_find_workbench_for_file (IdeApplication *self
,GFile *file
);
Looks for the workbench that is the closest match to file
.
If no workbench is the root of file
, then NULL
is returned.
Since: 3.32
gpointer ide_application_find_addin_by_module_name (IdeApplication *self
,const gchar *module_name
);
Finds a loaded IdeApplicationAddin within self
that was part of
the plugin matching module_name
.
Since: 3.34