Download.connectDecideDestination

Connect to DecideDestination signal.

This signal is emitted after response is received to decide a destination for the download using webkit.download.Download.setDestination. If this signal is not handled, the file will be downloaded to G_USER_DIRECTORY_DOWNLOAD directory using suggested_filename.

Since 2.40, you may handle this signal asynchronously by returning true without calling webkit.download.Download.setDestination. This indicates intent to eventually call webkit.download.Download.setDestination. In this case, the download will not proceed until the destination is set or cancelled with webkit.download.Download.cancel.

class Download
ulong
connectDecideDestination
(
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] == string)
)
)
&&
(
Parameters!T.length < 2 ||
(
ParameterStorageClassTuple!T[1] == ParameterStorageClass.none &&
is(Parameters!T[1] : webkit.download.Download)
)
)
&&
Parameters!T.length < 3
)

Parameters

callback T

signal callback delegate or function to connect

bool callback(string suggestedFilename, webkit.download.Download download)

suggestedFilename the filename suggested for the download (optional)

download the instance the signal is connected to (optional)

Returns true to stop other handlers from being invoked for the event, or false to propagate the event further.

after Flag!"After"

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

Return Value

Type: ulong

Signal ID