webkit.download
Module for [Download] class
Types 3
Object used to communicate with the application when downloading.
#WebKitDownload carries information about a download request and response, including a #WebKitURIRequest and a #WebKitURIResponse objects. The application may use this object to control the download process, or to simply figure out what is to be downloaded, and handle the download process itself.
Methods
DownloadGidBuilder builder() static nothrowGet builder for [webkit.download.Download] Returns: New builder objectbool allowOverwrite() @property nothrowGet `allowOverwrite` property. Returns: Whether or not the download is allowed to overwrite an existing file on disk. If this property is false and the destination already exists, the download will...void allowOverwrite(bool propval) @property nothrowSet `allowOverwrite` property. Params: propval = Whether or not the download is allowed to overwrite an existing file on disk. If this property is false and the destination already exists, the down...string destination() @property nothrowGet `destination` property. Returns: The local path to where the download will be saved.double estimatedProgress() @property nothrowGet `estimatedProgress` property. Returns: An estimate of the percent completion for the download operation. This value will range from 0.0 to 1.0. The value is an estimate based on the total numbe...webkit.uriresponse.URIResponse response() @property nothrowGet `response` property. Returns: The #WebKitURIResponse associated with this download.bool getAllowOverwrite() nothrowReturns the current value of the #WebKitDownload:allow-overwrite property.string getDestination() nothrowObtains the destination to which the downloaded file will be written.double getEstimatedProgress() nothrowGets the value of the #WebKitDownload:estimated-progress property. Gets the value of the #WebKitDownload:estimated-progress property. You can monitor the estimated progress of the download operatio...webkit.urirequest.URIRequest getRequest() nothrowRetrieves the #WebKitURIRequest object that backs the download process. Returns: the #WebKitURIRequest of downloadwebkit.uriresponse.URIResponse getResponse() nothrowRetrieves the #WebKitURIResponse object that backs the download process.webkit.web_view.WebView getWebView() nothrowGet the #WebKitWebView that initiated the download. Returns: the #WebKitWebView that initiated download, or null if download was not initiated by a #WebKitWebView.void setDestination(string destination) nothrowSets the destination to which the downloaded file will be written.gulong connectCreatedDestination(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] : webkit.download.Download)))
&& Parameters!T.length < 3) nothrowConnect to `CreatedDestination` signal.gulong connectDecideDestination(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] == string)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.download.Download)))
&& Parameters!T.length < 3) nothrowConnect to `DecideDestination` signal.gulong connectFailed(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] == glib.error.ErrorWrap)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.download.Download)))
&& Parameters!T.length < 3) nothrowConnect to `Failed` signal.gulong connectFinished(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] : webkit.download.Download)))
&& Parameters!T.length < 2) nothrowConnect to `Finished` signal.gulong connectReceivedData(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] == ulong)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.download.Download)))
&& Parameters!T.length < 3) nothrowConnect to `ReceivedData` signal.Fluent builder implementation template for webkit.download.Download
Methods
T allowOverwrite(bool propval) nothrowSet `allowOverwrite` property. Params: propval = Whether or not the download is allowed to overwrite an existing file on disk. If this property is false and the destination already exists, the down...Fluent builder for webkit.download.Download