WebKitDownload

WebKitDownload

Functions

Properties

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── WebKitDownload

Description

Functions

webkit_download_get_request ()

WebKitURIRequest *
webkit_download_get_request (WebKitDownload *download);

webkit_download_get_destination ()

const gchar *
webkit_download_get_destination (WebKitDownload *download);

webkit_download_set_destination ()

void
webkit_download_set_destination (WebKitDownload *download,
                                 const gchar *uri);

webkit_download_get_response ()

WebKitURIResponse *
webkit_download_get_response (WebKitDownload *download);

webkit_download_cancel ()

void
webkit_download_cancel (WebKitDownload *download);

webkit_download_get_estimated_progress ()

gdouble
webkit_download_get_estimated_progress
                               (WebKitDownload *download);

webkit_download_get_elapsed_time ()

gdouble
webkit_download_get_elapsed_time (WebKitDownload *download);

webkit_download_get_received_data_length ()

guint64
webkit_download_get_received_data_length
                               (WebKitDownload *download);

webkit_download_get_web_view ()

WebKitWebView *
webkit_download_get_web_view (WebKitDownload *download);

webkit_download_get_allow_overwrite ()

gboolean
webkit_download_get_allow_overwrite (WebKitDownload *download);

webkit_download_set_allow_overwrite ()

void
webkit_download_set_allow_overwrite (WebKitDownload *download,
                                     gboolean allowed);

Types and Values

struct WebKitDownload

struct WebKitDownload;

Property Details

The “allow-overwrite” property

  “allow-overwrite”          gboolean

Whether the destination may be overwritten.

Flags: Read / Write

Default value: FALSE


The “destination” property

  “destination”              gchar *

The local URI to where the download will be saved.

Flags: Read

Default value: NULL


The “estimated-progress” property

  “estimated-progress”       gdouble

Determines the current progress of the download.

Flags: Read

Allowed values: [0,1]

Default value: 1


The “response” property

  “response”                 WebKitURIResponse *

The response of the download.

Flags: Read

Signal Details

The “created-destination” signal

void
user_function (WebKitDownload *webkitdownload,
               gchar          *arg1,
               gpointer        user_data)

Flags: Run Last


The “decide-destination” signal

gboolean
user_function (WebKitDownload *webkitdownload,
               gchar          *arg1,
               gpointer        user_data)

Flags: Run Last


The “failed” signal

void
user_function (WebKitDownload *webkitdownload,
               GError         *arg1,
               gpointer        user_data)

Flags: Run Last


The “finished” signal

void
user_function (WebKitDownload *webkitdownload,
               gpointer        user_data)

Flags: Run Last


The “received-data” signal

void
user_function (WebKitDownload *webkitdownload,
               guint64         arg1,
               gpointer        user_data)

Flags: Run Last