NetSurf
Functions | Variables
download.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

nserror nsgtk_download_init (void)
 Initialise download window ready for use. More...
 
void nsgtk_download_destroy (void)
 Destroy download window. More...
 
bool nsgtk_check_for_downloads (GtkWindow *parent)
 Check with user if download is in progress they want to complete. More...
 
void nsgtk_download_show (GtkWindow *parent)
 Show the download window. More...
 

Variables

struct gui_download_tablensgtk_download_table
 download operation table for gtk More...
 

Function Documentation

◆ nsgtk_check_for_downloads()

bool nsgtk_check_for_downloads ( GtkWindow *  parent)

Check with user if download is in progress they want to complete.

Parameters
parentThe parent window for the prompt dialog.
Returns
true if the user wants to continue else false.

Definition at line 1033 of file download.c.

References dialog, dl_ctx, messages_get(), download_window_ctx::num_active, and parent.

Referenced by nsgtk_scaffolding_destroy_all(), and scaffolding_window_delete_event().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nsgtk_download_destroy()

void nsgtk_download_destroy ( void  )

Destroy download window.

Definition at line 1026 of file download.c.

References nsgtk_download_do(), and nsgtk_download_store_cancel_item().

Referenced by nsgtk_finalise().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nsgtk_download_init()

nserror nsgtk_download_init ( void  )

Initialise download window ready for use.

Returns
NSERROR_OK on success else appropriate error code on faliure.

Definition at line 934 of file download.c.

References download_window_ctx::cancel, download_window_ctx::clear, dl_ctx, NSERROR_OK, nsgtk_builder_new_from_resname(), nsgtk_download_do(), nsgtk_download_hide(), NSGTK_DOWNLOAD_N_COLUMNS, nsgtk_download_sensitivity_evaluate(), nsgtk_download_sort(), NSGTK_DOWNLOAD_STATUS, nsgtk_download_store_cancel_item(), nsgtk_download_store_clear_item(), nsgtk_download_tree_view_new(), nsgtk_download_tree_view_row_activated(), NSLOG, download_window_ctx::parent, download_window_ctx::pause, download_window_ctx::progress, download_window_ctx::resume, download_window_ctx::selection, download_window_ctx::store, download_window_ctx::timer, download_window_ctx::tree, and download_window_ctx::window.

Referenced by nsgtk_setup().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nsgtk_download_show()

void nsgtk_download_show ( GtkWindow *  parent)

Show the download window.

Parameters
parentThe parent window to use for the shown window

Definition at line 1069 of file download.c.

References dl_ctx, download_window_ctx::parent, and download_window_ctx::window.

Referenced by downloads_button_clicked_cb(), and gui_download_window_create().

Here is the caller graph for this function:

Variable Documentation

◆ nsgtk_download_table

struct gui_download_table* nsgtk_download_table
extern

download operation table for gtk

Definition at line 930 of file download.c.

Referenced by main().