NetSurf
|
context for each download. More...
#include <download.h>
Data Fields | |
struct ami_generic_window | w |
struct Window * | win |
Object * | objects [GID_D_LAST] |
BPTR | fh |
uint32 | size |
uint32 | downloaded |
uint32 | progress |
struct dlnode * | dln |
struct browser_window * | bw |
struct download_context * | ctx |
Associated context, or 0 if the fetch has completed or aborted. More... | |
const char * | url |
char | fname [1024] |
int | result |
struct gui_window * | parent |
GUIWIN * | guiwin |
short | aes_handle |
OBJECT * | tree |
nsatari_download_status | status |
char * | destination |
FILE * | fd |
char | lbl_done [MAX_SLEN_LBL_DONE] |
char | lbl_percent [MAX_SLEN_LBL_PERCENT] |
char | lbl_speed [MAX_SLEN_LBL_SPEED] |
char | lbl_file [MAX_SLEN_LBL_FILE] |
uint32_t | start |
uint32_t | lastrdw |
uint32_t | size_total |
uint32_t | size_downloaded |
char * | fbuf |
size_t | fbufsize |
bool | abort |
bool | close_on_finish |
download_context * | ctx |
Associated context, or 0 if the fetch has completed or aborted. More... | |
NSDownloadWindow * | window |
BLocker * | storageLock |
BDataIO * | storage |
nsgtk_download_actions | sensitivity |
nsgtk_download_status | status |
GString * | name |
GString * | time_left |
unsigned long long int | size_total |
unsigned long long int | size_downloaded |
gint | progress |
gfloat | time_remaining |
gfloat | start_time |
gfloat | speed |
GtkTreeRowReference * | row |
GIOChannel * | write |
GError * | error |
struct gui_download_window * | r_next |
struct gui_download_window * | r_prev |
struct gui_window * | g |
download_context * | dlctx |
uint32_t | dwin_num |
char * | host |
unsigned int | received |
Amount of data received so far. More... | |
unsigned int | total_size |
Size of resource, or 0 if unknown. More... | |
wimp_w | window |
RISC OS window handle. More... | |
bits | file_type |
RISC OS file type. More... | |
char | url [256] |
Buffer for URL icon. More... | |
char | sprite_name [20] |
Buffer for sprite icon. More... | |
char | path [RO_DOWNLOAD_MAX_PATH_LEN] |
Buffer for pathname icon. More... | |
char | status [256] |
Buffer for status icon. More... | |
bool | saved |
User has chosen the destination, and it is being written. More... | |
bool | close_confirmed |
bool | error |
Error occurred, aborted. More... | |
os_fw | file |
RISC OS file handle, of temporary file when !saved, and of destination when saved. More... | |
query_id | query |
query_reason | query_rsn |
struct timeval | start_time |
Time download started. More... | |
struct timeval | last_time |
Time status was last updated. More... | |
unsigned int | last_received |
Value of received at last_time. More... | |
float | average_rate |
Moving average download rate. More... | |
unsigned int | average_points |
Number of points in the average. More... | |
bool | send_dataload |
Should send DataLoad message when finished. More... | |
wimp_message | save_message |
Copy of wimp DataSaveAck message. More... | |
struct gui_download_window * | prev |
Previous in linked list. More... | |
struct gui_download_window * | next |
Next in linked list. More... | |
HWND | hwnd |
char * | title |
char * | filename |
char * | domain |
char * | time_left |
char * | total_size |
char * | original_total_size |
int | size |
int | downloaded |
unsigned int | progress |
int | time_remaining |
int | speed |
int | error |
struct gui_window * | window |
FILE * | file |
download_status | status |
bool gui_download_window::abort |
Definition at line 59 of file download.h.
Referenced by gui_download_window_create(), gui_download_window_data(), and on_abort_click().
short gui_download_window::aes_handle |
Definition at line 44 of file download.h.
Referenced by gui_download_window_create(), gui_download_window_destroy(), and on_redraw().
unsigned int gui_download_window::average_points |
Number of points in the average.
Definition at line 118 of file download.c.
Referenced by gui_download_window_create(), and ro_gui_download_update_status().
float gui_download_window::average_rate |
Moving average download rate.
Definition at line 117 of file download.c.
Referenced by gui_download_window_create(), and ro_gui_download_update_status().
struct browser_window* gui_download_window::bw |
Definition at line 100 of file download.c.
Referenced by gui_download_window_create(), and gui_download_window_done().
bool gui_download_window::close_confirmed |
Definition at line 104 of file download.c.
Referenced by gui_download_window_create(), ro_gui_download_close_confirmed(), ro_gui_download_window_destroy(), and ro_gui_download_window_destroy_wrapper().
bool gui_download_window::close_on_finish |
Definition at line 60 of file download.h.
Referenced by gui_download_window_done(), on_cbrdy_click(), and on_redraw().
download_context * gui_download_window::ctx |
Associated context, or 0 if the fetch has completed or aborted.
Definition at line 101 of file download.c.
Referenced by ami_download_window_abort(), download_callback(), download_context_abort(), download_context_create(), download_context_destroy(), download_context_get_filename(), download_context_get_mime_type(), download_context_get_total_length(), download_context_get_url(), download_context_process_headers(), download_ro_filetype(), gui_download_window_create(), gui_download_window_data(), gui_download_window_destroy(), gui_download_window_done(), gui_download_window_error(), nsgtk_download_store_cancel_item(), nsgtk_download_store_clear_item(), ro_gui_download_datasave_ack(), ro_gui_download_keypress(), ro_gui_download_move(), ro_gui_download_overwrite_confirmed(), ro_gui_download_save(), ro_gui_download_update_status(), and ro_gui_download_window_destroy().
download_context* gui_download_window::ctx |
Associated context, or 0 if the fetch has completed or aborted.
Definition at line 59 of file download.cpp.
char* gui_download_window::destination |
Definition at line 47 of file download.h.
Referenced by gui_download_window_create(), gui_download_window_destroy(), and nsgtk_download_dialog_show().
download_context* gui_download_window::dlctx |
Definition at line 37 of file download.c.
Referenced by gui_download_window_create(), and gui_download_window_done().
struct dlnode* gui_download_window::dln |
Definition at line 99 of file download.c.
Referenced by gui_download_window_create(), and gui_download_window_done().
char* gui_download_window::domain |
Definition at line 52 of file download.c.
Referenced by gui_download_window_create(), and nsgtk_download_dialog_show().
uint32 gui_download_window::downloaded |
Definition at line 97 of file download.c.
Referenced by gui_download_window_create(), gui_download_window_data(), nsgtk_download_update(), and nsws_download_event_callback().
int gui_download_window::downloaded |
Definition at line 57 of file download.c.
uint32_t gui_download_window::dwin_num |
Definition at line 38 of file download.c.
Referenced by gui_download_window_create(), gui_download_window_data(), gui_download_window_done(), and gui_download_window_error().
GError* gui_download_window::error |
Definition at line 101 of file download.c.
Referenced by download_callback(), download_context_process_headers(), download_ro_filetype(), NSDownloadWindow::Failure(), gui_download_window_create(), gui_download_window_data(), gui_download_window_done(), gui_download_window_error(), nsgtk_download_handle_error(), nsgtk_download_info_to_string(), ro_gui_download_canonicalise(), ro_gui_download_check_space(), ro_gui_download_click(), ro_gui_download_drag_end(), ro_gui_download_move(), ro_gui_download_save(), ro_gui_download_send_dataload(), and ro_gui_download_window_destroy().
bool gui_download_window::error |
Error occurred, aborted.
Definition at line 105 of file download.c.
int gui_download_window::error |
Definition at line 62 of file download.c.
char* gui_download_window::fbuf |
Definition at line 57 of file download.h.
Referenced by gui_download_window_create(), and gui_download_window_destroy().
size_t gui_download_window::fbufsize |
Definition at line 58 of file download.h.
Referenced by gui_download_window_create().
FILE* gui_download_window::fd |
Definition at line 48 of file download.h.
Referenced by gui_download_window_create(), gui_download_window_data(), gui_download_window_destroy(), and gui_download_window_done().
BPTR gui_download_window::fh |
Definition at line 95 of file download.c.
Referenced by gui_download_window_create(), gui_download_window_data(), and gui_download_window_done().
os_fw gui_download_window::file |
RISC OS file handle, of temporary file when !saved, and of destination when saved.
Definition at line 109 of file download.c.
Referenced by gui_download_window_create(), gui_download_window_data(), gui_download_window_done(), ro_gui_download_check_space(), ro_gui_download_move(), ro_gui_download_save(), and ro_gui_download_window_destroy().
FILE* gui_download_window::file |
Definition at line 64 of file download.c.
bits gui_download_window::file_type |
RISC OS file type.
Definition at line 95 of file download.c.
Referenced by gui_download_window_create(), gui_download_window_done(), ro_gui_download_drag_end(), and ro_gui_download_move().
char* gui_download_window::filename |
Definition at line 51 of file download.c.
Referenced by download_parse_filename(), gui_download_window_create(), nsgtk_download_dialog_show(), and select_filepath().
char gui_download_window::fname[1024] |
Definition at line 103 of file download.c.
Referenced by gui_download_window_create(), and gui_download_window_done().
struct gui_window* gui_download_window::g |
Definition at line 36 of file download.c.
Referenced by gui_download_window_create().
GUIWIN* gui_download_window::guiwin |
Definition at line 43 of file download.h.
Referenced by gui_download_window_create(), gui_download_window_data(), gui_download_window_destroy(), gui_download_window_done(), gui_download_window_error(), on_abort_click(), on_cbrdy_click(), and on_redraw().
char* gui_download_window::host |
Definition at line 39 of file download.c.
HWND gui_download_window::hwnd |
Definition at line 49 of file download.c.
Referenced by gui_download_window_done(), and nsws_download_event_callback().
unsigned int gui_download_window::last_received |
Value of received at last_time.
Definition at line 116 of file download.c.
Referenced by gui_download_window_create(), and ro_gui_download_update_status().
struct timeval gui_download_window::last_time |
Time status was last updated.
Definition at line 115 of file download.c.
Referenced by gui_download_window_create(), and ro_gui_download_update_status().
uint32_t gui_download_window::lastrdw |
Definition at line 54 of file download.h.
Referenced by gui_download_window_create(), and gui_download_window_data().
char gui_download_window::lbl_done[MAX_SLEN_LBL_DONE] |
Definition at line 49 of file download.h.
Referenced by gui_download_window_data(), gui_download_window_done(), and on_redraw().
char gui_download_window::lbl_file[MAX_SLEN_LBL_FILE] |
Definition at line 52 of file download.h.
Referenced by gui_download_window_create(), gui_download_window_error(), and on_redraw().
char gui_download_window::lbl_percent[MAX_SLEN_LBL_PERCENT] |
Definition at line 50 of file download.h.
Referenced by gui_download_window_data(), gui_download_window_done(), and on_redraw().
char gui_download_window::lbl_speed[MAX_SLEN_LBL_SPEED] |
Definition at line 51 of file download.h.
Referenced by gui_download_window_data(), and on_redraw().
GString* gui_download_window::name |
Definition at line 90 of file download.c.
Referenced by gui_download_window_create(), NSDownloadWindow::MessageReceived(), nsgtk_download_info_to_string(), nsgtk_download_store_clear_item(), and ro_gui_download_keypress().
struct gui_download_window* gui_download_window::next |
Next in linked list.
Definition at line 124 of file download.c.
Referenced by gui_download_window_create(), and ro_gui_download_window_destroy().
Object* gui_download_window::objects[GID_D_LAST] |
Definition at line 94 of file download.c.
Referenced by ami_download_window_event(), gui_download_window_create(), gui_download_window_data(), and gui_download_window_done().
char* gui_download_window::original_total_size |
Definition at line 55 of file download.c.
struct gui_window* gui_download_window::parent |
Definition at line 42 of file download.h.
Referenced by gui_download_window_create().
char gui_download_window::path[RO_DOWNLOAD_MAX_PATH_LEN] |
Buffer for pathname icon.
Definition at line 99 of file download.c.
Referenced by gui_download_window_create(), gui_download_window_data(), gui_download_window_done(), ro_gui_download_click(), ro_gui_download_drag_end(), ro_gui_download_keypress(), and ro_gui_download_save().
struct gui_download_window* gui_download_window::prev |
Previous in linked list.
Definition at line 123 of file download.c.
Referenced by gui_download_window_create(), and ro_gui_download_window_destroy().
uint32 gui_download_window::progress |
Definition at line 98 of file download.c.
Referenced by gui_download_window_create(), gui_download_window_data(), gui_download_window_done(), nsgtk_download_store_cancel_item(), nsgtk_download_store_update_item(), and nsgtk_download_update().
gint gui_download_window::progress |
Definition at line 94 of file download.c.
unsigned int gui_download_window::progress |
Definition at line 58 of file download.c.
query_id gui_download_window::query |
Definition at line 111 of file download.c.
Referenced by gui_download_window_create(), ro_gui_download_close_cancelled(), ro_gui_download_close_confirmed(), ro_gui_download_overwrite_cancelled(), ro_gui_download_overwrite_confirmed(), ro_gui_download_save(), ro_gui_download_window_destroy(), and ro_gui_download_window_destroy_wrapper().
query_reason gui_download_window::query_rsn |
Definition at line 112 of file download.c.
Referenced by ro_gui_download_close_confirmed(), ro_gui_download_save(), and ro_gui_download_window_destroy().
struct gui_download_window* gui_download_window::r_next |
Definition at line 34 of file download.c.
struct gui_download_window* gui_download_window::r_prev |
Definition at line 35 of file download.c.
unsigned int gui_download_window::received |
Amount of data received so far.
Definition at line 91 of file download.c.
Referenced by gui_download_window_create(), gui_download_window_data(), ro_gui_download_drag_end(), ro_gui_download_move(), ro_gui_download_save(), and ro_gui_download_update_status().
int gui_download_window::result |
Definition at line 104 of file download.c.
Referenced by ami_download_window_abort(), gui_download_window_create(), gui_download_window_done(), and gui_download_window_error().
GtkTreeRowReference* gui_download_window::row |
Definition at line 99 of file download.c.
Referenced by gui_download_window_create(), nsgtk_download_change_status(), nsgtk_download_store_clear_item(), and nsgtk_download_store_update_item().
wimp_message gui_download_window::save_message |
Copy of wimp DataSaveAck message.
Definition at line 121 of file download.c.
Referenced by ro_gui_download_datasave_ack(), ro_gui_download_overwrite_confirmed(), ro_gui_download_save(), and ro_gui_download_send_dataload().
bool gui_download_window::saved |
User has chosen the destination, and it is being written.
Definition at line 103 of file download.c.
Referenced by gui_download_window_create(), gui_download_window_data(), gui_download_window_done(), ro_gui_download_click(), ro_gui_download_drag_end(), ro_gui_download_save(), and ro_gui_download_window_destroy().
bool gui_download_window::send_dataload |
Should send DataLoad message when finished.
Definition at line 120 of file download.c.
Referenced by gui_download_window_done(), ro_gui_download_datasave_ack(), ro_gui_download_keypress(), ro_gui_download_save(), and ro_gui_download_send_dataload().
nsgtk_download_actions gui_download_window::sensitivity |
Definition at line 87 of file download.c.
Referenced by nsgtk_download_change_sensitivity(), nsgtk_download_sensitivity_evaluate(), nsgtk_download_sensitivity_update_buttons(), nsgtk_download_store_cancel_item(), and nsgtk_download_store_clear_item().
uint32 gui_download_window::size |
Definition at line 96 of file download.c.
Referenced by gui_download_window_create(), gui_download_window_data(), nsgtk_download_dialog_show(), nsws_download_event_callback(), nsws_download_update_label(), and NSDownloadWindow::Progress().
int gui_download_window::size |
Definition at line 56 of file download.c.
uint32_t gui_download_window::size_downloaded |
Definition at line 56 of file download.h.
Referenced by gui_download_window_create(), gui_download_window_data(), gui_download_window_done(), nsgtk_download_info_to_string(), nsgtk_download_store_cancel_item(), nsgtk_download_update(), and on_redraw().
unsigned long long int gui_download_window::size_downloaded |
Definition at line 93 of file download.c.
uint32_t gui_download_window::size_total |
Definition at line 55 of file download.h.
Referenced by gui_download_window_create(), gui_download_window_data(), gui_download_window_done(), nsgtk_download_info_to_string(), nsgtk_download_update(), and on_redraw().
unsigned long long int gui_download_window::size_total |
Definition at line 92 of file download.c.
gfloat gui_download_window::speed |
Definition at line 97 of file download.c.
Referenced by gui_download_window_create(), gui_download_window_data(), gui_download_window_done(), nsgtk_download_store_cancel_item(), nsgtk_download_store_update_item(), nsgtk_download_update(), and ro_gui_download_update_status().
int gui_download_window::speed |
Definition at line 61 of file download.c.
char gui_download_window::sprite_name[20] |
Buffer for sprite icon.
Definition at line 98 of file download.c.
Referenced by gui_download_window_create().
uint32_t gui_download_window::start |
Definition at line 53 of file download.h.
Referenced by gui_download_window_create(), and gui_download_window_data().
struct timeval gui_download_window::start_time |
Definition at line 96 of file download.c.
Referenced by gui_download_window_create(), gui_download_window_data(), nsgtk_download_update(), and ro_gui_download_update_status().
struct timeval gui_download_window::start_time |
Time download started.
Definition at line 114 of file download.c.
nsatari_download_status gui_download_window::status |
Definition at line 46 of file download.h.
Referenced by gui_download_window_create(), gui_download_window_data(), gui_download_window_destroy(), gui_download_window_done(), gui_download_window_error(), nsgtk_download_change_status(), nsgtk_download_info_to_string(), nsgtk_download_sort(), nsgtk_download_store_update_item(), nsgtk_download_update(), on_abort_click(), on_cbrdy_click(), and ro_gui_download_update_status().
nsgtk_download_status gui_download_window::status |
Definition at line 88 of file download.c.
char gui_download_window::status[256] |
Buffer for status icon.
Definition at line 100 of file download.c.
download_status gui_download_window::status |
Definition at line 65 of file download.c.
BDataIO* gui_download_window::storage |
Definition at line 63 of file download.cpp.
Referenced by gui_download_window_create(), gui_download_window_data(), gui_download_window_done(), gui_download_window_error(), and NSDownloadWindow::MessageReceived().
BLocker* gui_download_window::storageLock |
Definition at line 62 of file download.cpp.
Referenced by gui_download_window_create(), gui_download_window_data(), gui_download_window_done(), gui_download_window_error(), and NSDownloadWindow::MessageReceived().
GString* gui_download_window::time_left |
Definition at line 91 of file download.c.
Referenced by gui_download_window_create(), and nsgtk_download_store_clear_item().
char* gui_download_window::time_left |
Definition at line 53 of file download.c.
gfloat gui_download_window::time_remaining |
Definition at line 95 of file download.c.
Referenced by gui_download_window_create(), gui_download_window_data(), gui_download_window_done(), nsgtk_download_store_cancel_item(), nsgtk_download_store_update_item(), and nsgtk_download_update().
int gui_download_window::time_remaining |
Definition at line 59 of file download.c.
char* gui_download_window::title |
Definition at line 50 of file download.c.
unsigned int gui_download_window::total_size |
Size of resource, or 0 if unknown.
Definition at line 92 of file download.c.
Referenced by gui_download_window_create(), ro_gui_download_check_space(), ro_gui_download_drag_end(), and ro_gui_download_update_status().
char* gui_download_window::total_size |
Definition at line 54 of file download.c.
OBJECT* gui_download_window::tree |
Definition at line 45 of file download.h.
Referenced by gui_download_window_create(), nsgtk_download_tree_view_row_activated(), and on_redraw().
const char* gui_download_window::url |
Definition at line 102 of file download.c.
Referenced by download_default_filename(), download_ro_filetype(), gui_download_window_create(), and gui_download_window_done().
char gui_download_window::url[256] |
Buffer for URL icon.
Definition at line 97 of file download.c.
struct ami_generic_window gui_download_window::w |
Definition at line 92 of file download.c.
Referenced by ami_download_window_abort(), ami_download_window_event(), gui_download_window_create(), gui_download_window_data(), nsws_download_clear_data(), nsws_download_update_label(), nsws_download_update_progress(), nsws_download_window_up(), and ro_gui_download_close().
struct Window* gui_download_window::win |
Definition at line 93 of file download.c.
Referenced by gui_download_window_data(), on_aes_event(), and toolbar_redraw_cb().
NSDownloadWindow* gui_download_window::window |
Definition at line 60 of file download.cpp.
Referenced by gui_download_window_create(), gui_download_window_data(), gui_download_window_done(), gui_download_window_error(), nsgtk_download_hide(), ro_gui_download_drag_end(), ro_gui_download_keypress(), ro_gui_download_save(), ro_gui_download_update_status(), ro_gui_download_window_destroy(), and ro_gui_download_window_hide_caret().
wimp_w gui_download_window::window |
RISC OS window handle.
Definition at line 94 of file download.c.
struct gui_window* gui_download_window::window |
Definition at line 63 of file download.c.
GIOChannel* gui_download_window::write |
Definition at line 100 of file download.c.
Referenced by gui_download_window_create(), gui_download_window_data(), and gui_download_window_done().