midori-download

midori-download

Functions

Object Hierarchy


Description

Functions

midori_download_is_finished ()

gboolean
midori_download_is_finished (WebKitDownload *download);

Parameters

self

the (null) instance

 

download

 

 

midori_download_get_type ()

gint
midori_download_get_type (WebKitDownload *download);

Parameters

self

the (null) instance

 

download

 

 

midori_download_set_type ()

void
midori_download_set_type (WebKitDownload *download,
                          gint type);

Parameters

self

the (null) instance

 

download

 

 

type

 

 

midori_download_get_progress ()

gdouble
midori_download_get_progress (WebKitDownload *download);

Parameters

self

the (null) instance

 

download

 

 

midori_download_get_tooltip ()

gchar *
midori_download_get_tooltip (WebKitDownload *download);

Parameters

self

the (null) instance

 

download

 

 

midori_download_get_content_type ()

gchar *
midori_download_get_content_type (WebKitDownload *download,
                                  const gchar *mime_type);

Parameters

self

the (null) instance

 

download

 

 

mime_type

 

 

midori_download_has_wrong_checksum ()

gboolean
midori_download_has_wrong_checksum (WebKitDownload *download);

Parameters

self

the (null) instance

 

download

 

 

midori_download_action_clear ()

gboolean
midori_download_action_clear (WebKitDownload *download,
                              GtkWidget *widget,
                              GError **error);

Parameters

self

the (null) instance

 

download

 

 

widget

 

 

error

location to store the error occuring, or NULL to ignore

 

midori_download_action_stock_id ()

gchar *
midori_download_action_stock_id (WebKitDownload *download);

Parameters

self

the (null) instance

 

download

 

 

midori_download_open ()

gboolean
midori_download_open (WebKitDownload *download,
                      GtkWidget *widget,
                      GError **error);

Parameters

self

the (null) instance

 

download

 

 

widget

 

 

error

location to store the error occuring, or NULL to ignore

 

midori_download_fallback_extension ()

const gchar *
midori_download_fallback_extension (const gchar *extension,
                                    const gchar *mime_type);

Parameters

self

the (null) instance

 

extension

 

 

mime_type

 

 

Returns

.

[transfer none]


midori_download_clean_filename ()

gchar *
midori_download_clean_filename (const gchar *filename);

Parameters

self

the (null) instance

 

filename

 

 

midori_download_get_suggested_filename ()

gchar *
midori_download_get_suggested_filename
                               (WebKitDownload *download);

Parameters

self

the (null) instance

 

download

 

 

midori_download_get_filename_suggestion_for_uri ()

gchar *
midori_download_get_filename_suggestion_for_uri
                               (const gchar *mime_type,
                                const gchar *uri);

Parameters

self

the (null) instance

 

mime_type

 

 

uri

 

 

Returns

a filename of the form "name.ext" to use as a suggested name for a download of the given uri


midori_download_get_extension_for_uri ()

gchar *
midori_download_get_extension_for_uri (const gchar *uri,
                                       gchar **basename);

Parameters

self

the (null) instance

 

uri

 

 

basename

 

 

midori_download_get_unique_filename ()

gchar *
midori_download_get_unique_filename (const gchar *filename);

Parameters

self

the (null) instance

 

filename

 

 

midori_download_get_basename_for_display ()

gchar *
midori_download_get_basename_for_display
                               (const gchar *uri);

Parameters

self

the (null) instance

 

uri

 

 

midori_download_prepare_destination_uri ()

gchar *
midori_download_prepare_destination_uri
                               (WebKitDownload *download,
                                const gchar *folder);

Parameters

self

the (null) instance

 

download

 

 

folder

 

 

midori_download_has_enough_space ()

gboolean
midori_download_has_enough_space (WebKitDownload *download,
                                  const gchar *destination_uri);

Parameters

self

the (null) instance

 

download

 

 

destination_uri

 

 

Returns

whether it seems possible to save download to the path specified by destination_uri, considering space on disk and permissions

Types and Values