Download
Object Hierarchy:
WebKit.Download
WebKit.Download
WebKit.Download
GLib.Object
GLib.Object
GLib.Object->WebKit.Download
Description:
[ CCode ( type_id = "webkit_download_get_type ()" ) ]public class Download : Object
Object used to communicate with the application when downloading.
Download carries information about a download request and response, including a
URIRequest and a URIResponse
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.
Content:
Properties:
public bool allow_overwrite { get ; set ; }
Whether or not the download is allowed to overwrite an existing file
on disk.
public string destination { get ; }
The local URI to where the download will be saved.
public double estimated_progress { get ; }
An estimate of the percent completion for the download operation.
public URIResponse response { get ; }
Creation methods:
Methods:
Signals:
public signal void created_destination (string destination)
public virtual signal bool decide_destination (string suggested_filename)
This signal is emitted after response is received to decide a
destination URI for the download.
public signal void failed (DownloadError error)
This signal is emitted when an error occurs during the download
operation.
public signal void finished ()
This signal is emitted when download finishes successfully or due to
an error.
public signal void received_data (uint64 data_length)
This signal is emitted after response is received, every time new data
has been written to the destination.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref