Download
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.
Constructors
Properties
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 fail.
The local path to where the download will be saved.
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 number of bytes expected to be received for a download. If you need a more accurate progress information you can connect to #WebKitDownload::received-data signal to track the progress.
The #WebKitURIResponse associated with this download.
Functions
This signal is emitted after #WebKitDownload::decide-destination and before #WebKitDownload::received-data to notify that destination file has been created successfully at @destination.
This signal is emitted after response is received to decide a destination for the download using webkit_download_set_destination(). If this signal is not handled, the file will be downloaded to %G_USER_DIRECTORY_DOWNLOAD directory using @suggested_filename.
This signal is emitted when an error occurs during the download operation. The given @error, of the domain %WEBKIT_DOWNLOAD_ERROR, contains further details of the failure. If the download is cancelled with webkit_download_cancel(), this signal is emitted with error %WEBKIT_DOWNLOAD_ERROR_CANCELLED_BY_USER. The download operation finishes after an error and #WebKitDownload::finished signal is emitted after this one.
This signal is emitted when download finishes successfully or due to an error. In case of errors #WebKitDownload::failed signal is emitted before this one.
This signal is emitted after response is received, every time new data has been written to the destination. It's useful to know the progress of the download operation.
Gets the elapsed time in seconds, including any fractional part.
Gets the length of the data already downloaded for @download.
Retrieves the #WebKitURIRequest object that backs the download process.
Get the #WebKitWebView that initiated the download.
Sets the destination to which the downloaded file will be written.