SaveDelegate.connectSave

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.

class SaveDelegate
ulong
connectSave
(
T
)
(,
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 &&
)
)
&&
Parameters!T.length < 3
)

Parameters

callback T

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 Flag!"After"

Yes.After to execute callback after default handler, No.After to execute before (default)

Return Value

Type: ulong

Signal ID