NetSurf
Data Fields
gui_download_window Struct Reference

context for each download. More...

#include <download.h>

Collaboration diagram for gui_download_window:
[legend]

Data Fields

struct ami_generic_window w
 
struct Window * win
 
Object * objects [GID_D_LAST]
 
BPTR fh
 
uint32 size
 
uint32 downloaded
 
uint32 progress
 
struct dlnodedln
 
struct browser_windowbw
 
struct download_contextctx
 Associated context, or 0 if the fetch has completed or aborted. More...
 
const char * url
 
char fname [1024]
 
int result
 
struct gui_windowparent
 
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_contextctx
 Associated context, or 0 if the fetch has completed or aborted. More...
 
NSDownloadWindowwindow
 
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_windowr_next
 
struct gui_download_windowr_prev
 
struct gui_windowg
 
download_contextdlctx
 
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_windowprev
 Previous in linked list. More...
 
struct gui_download_windownext
 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_windowwindow
 
FILE * file
 
download_status status
 

Detailed Description

context for each download.

Data for a download window.

Definition at line 91 of file download.c.

Field Documentation

◆ abort

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().

◆ aes_handle

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().

◆ average_points

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().

◆ average_rate

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().

◆ bw

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().

◆ close_confirmed

bool gui_download_window::close_confirmed

◆ close_on_finish

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().

◆ ctx [1/2]

download_context * gui_download_window::ctx

◆ ctx [2/2]

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.

◆ destination

char* gui_download_window::destination

◆ dlctx

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().

◆ dln

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().

◆ domain

char* gui_download_window::domain

Definition at line 52 of file download.c.

Referenced by gui_download_window_create(), and nsgtk_download_dialog_show().

◆ downloaded [1/2]

uint32 gui_download_window::downloaded

◆ downloaded [2/2]

int gui_download_window::downloaded

Definition at line 57 of file download.c.

◆ dwin_num

uint32_t gui_download_window::dwin_num

◆ error [1/3]

GError* gui_download_window::error

◆ error [2/3]

bool gui_download_window::error

Error occurred, aborted.

Definition at line 105 of file download.c.

◆ error [3/3]

int gui_download_window::error

Definition at line 62 of file download.c.

◆ fbuf

char* gui_download_window::fbuf

Definition at line 57 of file download.h.

Referenced by gui_download_window_create(), and gui_download_window_destroy().

◆ fbufsize

size_t gui_download_window::fbufsize

Definition at line 58 of file download.h.

Referenced by gui_download_window_create().

◆ fd

FILE* gui_download_window::fd

◆ fh

BPTR gui_download_window::fh

◆ file [1/2]

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 [2/2]

FILE* gui_download_window::file

Definition at line 64 of file download.c.

◆ file_type

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().

◆ filename

char* gui_download_window::filename

◆ fname

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().

◆ g

struct gui_window* gui_download_window::g

Definition at line 36 of file download.c.

Referenced by gui_download_window_create().

◆ guiwin

GUIWIN* gui_download_window::guiwin

◆ host

char* gui_download_window::host

Definition at line 39 of file download.c.

◆ hwnd

HWND gui_download_window::hwnd

Definition at line 49 of file download.c.

Referenced by gui_download_window_done(), and nsws_download_event_callback().

◆ last_received

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().

◆ last_time

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().

◆ lastrdw

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().

◆ lbl_done

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().

◆ lbl_file

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().

◆ lbl_percent

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().

◆ lbl_speed

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().

◆ name

GString* gui_download_window::name

◆ next

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().

◆ objects

Object* gui_download_window::objects[GID_D_LAST]

◆ original_total_size

char* gui_download_window::original_total_size

Definition at line 55 of file download.c.

◆ parent

struct gui_window* gui_download_window::parent

Definition at line 42 of file download.h.

Referenced by gui_download_window_create().

◆ path

char gui_download_window::path[RO_DOWNLOAD_MAX_PATH_LEN]

◆ prev

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().

◆ progress [1/3]

uint32 gui_download_window::progress

◆ progress [2/3]

gint gui_download_window::progress

Definition at line 94 of file download.c.

◆ progress [3/3]

unsigned int gui_download_window::progress

Definition at line 58 of file download.c.

◆ query

query_id gui_download_window::query

◆ query_rsn

query_reason gui_download_window::query_rsn

◆ r_next

struct gui_download_window* gui_download_window::r_next

Definition at line 34 of file download.c.

◆ r_prev

struct gui_download_window* gui_download_window::r_prev

Definition at line 35 of file download.c.

◆ received

unsigned int gui_download_window::received

◆ result

int gui_download_window::result

◆ row

GtkTreeRowReference* gui_download_window::row

◆ save_message

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().

◆ saved

bool gui_download_window::saved

◆ send_dataload

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().

◆ sensitivity

nsgtk_download_actions gui_download_window::sensitivity

◆ size [1/2]

uint32 gui_download_window::size

◆ size [2/2]

int gui_download_window::size

Definition at line 56 of file download.c.

◆ size_downloaded [1/2]

uint32_t gui_download_window::size_downloaded

◆ size_downloaded [2/2]

unsigned long long int gui_download_window::size_downloaded

Definition at line 93 of file download.c.

◆ size_total [1/2]

uint32_t gui_download_window::size_total

◆ size_total [2/2]

unsigned long long int gui_download_window::size_total

Definition at line 92 of file download.c.

◆ speed [1/2]

gfloat gui_download_window::speed

◆ speed [2/2]

int gui_download_window::speed

Definition at line 61 of file download.c.

◆ sprite_name

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().

◆ start

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().

◆ start_time [1/2]

struct timeval gui_download_window::start_time

◆ start_time [2/2]

struct timeval gui_download_window::start_time

Time download started.

Definition at line 114 of file download.c.

◆ status [1/4]

nsatari_download_status gui_download_window::status

◆ status [2/4]

nsgtk_download_status gui_download_window::status

Definition at line 88 of file download.c.

◆ status [3/4]

char gui_download_window::status[256]

Buffer for status icon.

Definition at line 100 of file download.c.

◆ status [4/4]

download_status gui_download_window::status

Definition at line 65 of file download.c.

◆ storage

BDataIO* gui_download_window::storage

◆ storageLock

BLocker* gui_download_window::storageLock

◆ time_left [1/2]

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().

◆ time_left [2/2]

char* gui_download_window::time_left

Definition at line 53 of file download.c.

◆ time_remaining [1/2]

gfloat gui_download_window::time_remaining

◆ time_remaining [2/2]

int gui_download_window::time_remaining

Definition at line 59 of file download.c.

◆ title

char* gui_download_window::title

Definition at line 50 of file download.c.

◆ total_size [1/2]

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().

◆ total_size [2/2]

char* gui_download_window::total_size

Definition at line 54 of file download.c.

◆ tree

OBJECT* gui_download_window::tree

◆ url [1/2]

const char* gui_download_window::url

◆ url [2/2]

char gui_download_window::url[256]

Buffer for URL icon.

Definition at line 97 of file download.c.

◆ w

struct ami_generic_window gui_download_window::w

◆ win

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().

◆ window [1/3]

NSDownloadWindow* gui_download_window::window

◆ window [2/3]

wimp_w gui_download_window::window

RISC OS window handle.

Definition at line 94 of file download.c.

◆ window [3/3]

struct gui_window* gui_download_window::window

Definition at line 63 of file download.c.

◆ write

GIOChannel* gui_download_window::write

The documentation for this struct was generated from the following files: