MountOperation.connectShowProcesses
gulong connectShowProcesses(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == string)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == glib.types.Pid[])))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] == string[])))
&& (Parameters!T.length < 4 || (ParameterStorageClassTuple!T[3] == ParameterStorageClass.none && is(Parameters!T[3] : gio.mount_operation.MountOperation)))
&& Parameters!T.length < 5)Connect to ShowProcesses signal.
Emitted when one or more processes are blocking an operation e.g. unmounting/ejecting a #GMount or stopping a #GDrive.
Note that this signal may be emitted several times to update the list of blocking processes as processes close files. The application should only respond with [gio.mount_operation.MountOperation.reply] to the latest signal (setting #GMountOperation:choice to the choice the user made).
If the message contains a line break, the first line should be presented as a heading. For example, it may be used as the primary text in a #GtkMessageDialog.
Parameters
callback | signal callback delegate or function to connect void callback(string message, glib.types.Pid[] processes, string[] choices, gio.mount_operation.MountOperation mountOperation) message string containing a message to display to the user. (optional) processes an array of #GPid for processes blocking the operation. (optional) choices an array of strings for each possible choice. (optional) mountOperation the instance the signal is connected to (optional) |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID