SaveDelegate.connectSave
gulong connectSave(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == bool)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gio.task.Task)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : panel.save_delegate.SaveDelegate)))
&& Parameters!T.length < 3)Connect to Save signal.
This signal can be used when subclassing #PanelSaveDelegate is not possible or cumbersome. The default implementation of #PanelSaveDelegateClass.save_async() will emit this signal to allow the consumer to implement asynchronous save in a flexible manner.
The caller is expected to complete task with a boolean when the save operation has completed.
Parameters
callback | signal callback delegate or function to connect bool callback(gio.task.Task task, panel.save_delegate.SaveDelegate saveDelegate) task a #GTask (optional) saveDelegate the instance the signal is connected to (optional) Returns true if the operation was handled. |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID