I was wondering if there is a way to know when a webkitdownload has finished without error. I am using the C API. I was hoping a signal would be emitted (similar to when a d
Looks like you have to poll the WebKitDownload by hand:
WebKitDownloadStatus s = webkit_download_get_status(downloader);
if(s == WEBKIT_DOWNLOAD_STATUS_FINISHED) {
/* The download has successfully finished. */
}
else if(s == WEBKIT_DOWNLOAD_STATUS_STARTED) {
/* Still going, 100*webkit_download_get_progress(downloader) percent complete. */
}