NetSurf
|
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdbool.h>
#include <time.h>
#include "utils/log.h"
#include "utils/messages.h"
#include "utils/nsoption.h"
#include "netsurf/inttypes.h"
#include "netsurf/browser_window.h"
#include "netsurf/download.h"
#include "desktop/save_complete.h"
#include "desktop/download.h"
#include "atari/gui.h"
#include "atari/misc.h"
#include "atari/res/netsurf.rsh"
#include "atari/download.h"
#include "atari/osspec.h"
Go to the source code of this file.
Functions | |
static void | gui_download_window_destroy (struct gui_download_window *gdw) |
static void | on_abort_click (struct gui_download_window *dw) |
static void | on_cbrdy_click (struct gui_download_window *dw) |
static void | on_close (struct gui_download_window *dw) |
static void | on_redraw (struct gui_download_window *dw, GRECT *clip) |
static void | toolbar_redraw_cb (GUIWIN *win, uint16_t msg, GRECT *clip) |
static short | on_aes_event (GUIWIN *win, EVMULT_OUT *ev_out, short msg[8]) |
static char * | select_filepath (const char *path, const char *filename) |
static struct gui_download_window * | gui_download_window_create (download_context *ctx, struct gui_window *parent) |
static nserror | gui_download_window_data (struct gui_download_window *dw, const char *data, unsigned int size) |
static void | gui_download_window_error (struct gui_download_window *dw, const char *error_msg) |
static void | gui_download_window_done (struct gui_download_window *dw) |
Variables | |
struct gui_window * | input_window |
GRECT | desk_area |
static struct gui_download_table | download_table |
struct gui_download_table * | atari_download_table = &download_table |
|
static |
Definition at line 245 of file download.c.
References gui_download_window::abort, gui_download_window::aes_handle, atari_warn_user(), gui_download_window::ctx, desk_area, gui_download_window::destination, die(), download_context_get_filename(), download_context_get_total_length(), gui_download_window::fbuf, gui_download_window::fbufsize, gui_download_window::fd, gui_download_window::filename, gemdos_realpath(), gui_download_window_destroy(), gui_download_window::guiwin, gui_download_window::lastrdw, gui_download_window::lbl_file, MAX_SLEN_LBL_FILE, NSATARI_DOWNLOAD_WORKING, NSLOG, nsoption_charp, on_aes_event(), gui_download_window::parent, parent, PATH_MAX, select_filepath(), gui_download_window::size_downloaded, gui_download_window::size_total, gui_download_window::start, gui_download_window::status, toolbar_redraw_cb(), and gui_download_window::tree.
|
static |
Definition at line 355 of file download.c.
References gui_download_window::abort, gui_download_window::ctx, download_context_abort(), gui_download_window::fd, gui_download_window::guiwin, human_friendly_bytesize(), gui_download_window::lastrdw, gui_download_window::lbl_done, gui_download_window::lbl_percent, gui_download_window::lbl_speed, MAX_SLEN_LBL_DONE, MAX_SLEN_LBL_PERCENT, MAX_SLEN_LBL_SPEED, NSATARI_DOWNLOAD_CANCELED, NSERROR_OK, NSLOG, gui_download_window::size, gui_download_window::size_downloaded, gui_download_window::size_total, gui_download_window::speed, gui_download_window::start, and gui_download_window::status.
|
static |
Definition at line 195 of file download.c.
References gui_download_window::aes_handle, gui_download_window::ctx, gui_download_window::destination, download_context_abort(), download_context_destroy(), gui_download_window::fbuf, gui_download_window::fd, gui_download_window::guiwin, NSATARI_DOWNLOAD_WORKING, NSLOG, and gui_download_window::status.
Referenced by gui_download_window_create(), and on_close().
|
static |
Definition at line 419 of file download.c.
References atari_window_set_status(), gui_download_window::close_on_finish, gui_download_window::fd, gui_download_window::guiwin, human_friendly_bytesize(), input_window, gui_download_window::lbl_done, gui_download_window::lbl_percent, MAX_SLEN_LBL_DONE, MAX_SLEN_LBL_PERCENT, messages_get(), NSATARI_DOWNLOAD_COMPLETE, NSLOG, gui_download_window::size_downloaded, gui_download_window::size_total, and gui_download_window::status.
|
static |
Definition at line 407 of file download.c.
References atari_window_set_status(), gui_download_window::guiwin, input_window, gui_download_window::lbl_file, MAX_SLEN_LBL_FILE, messages_get(), NSATARI_DOWNLOAD_ERROR, NSLOG, and gui_download_window::status.
|
static |
Definition at line 169 of file download.c.
References gui_download_window::abort, gui_download_window::guiwin, NSATARI_DOWNLOAD_CANCELED, NSATARI_DOWNLOAD_COMPLETE, NSATARI_DOWNLOAD_ERROR, and gui_download_window::status.
Referenced by on_aes_event().
|
static |
Definition at line 67 of file download.c.
References clip(), on_abort_click(), on_cbrdy_click(), on_close(), on_redraw(), and gui_download_window::win.
Referenced by gui_download_window_create().
|
static |
Definition at line 180 of file download.c.
References gui_download_window::close_on_finish, gui_download_window::guiwin, NSATARI_DOWNLOAD_COMPLETE, and gui_download_window::status.
Referenced by on_aes_event().
|
static |
Definition at line 190 of file download.c.
References gui_download_window_destroy().
Referenced by on_aes_event().
|
static |
Definition at line 125 of file download.c.
References gui_download_window::aes_handle, clip(), gui_download_window::close_on_finish, DOWNLOAD_BAR_MAX, gui_download_window::guiwin, gui_download_window::lbl_done, gui_download_window::lbl_file, gui_download_window::lbl_percent, gui_download_window::lbl_speed, MIN, gui_download_window::size_downloaded, gui_download_window::size_total, and gui_download_window::tree.
Referenced by on_aes_event(), and toolbar_redraw_cb().
|
static |
Definition at line 221 of file download.c.
References gui_download_window::filename, messages_get(), path(), and PATH_MAX.
Referenced by gui_download_window_create().
|
static |
Definition at line 54 of file download.c.
References clip(), on_redraw(), and gui_download_window::win.
Referenced by gui_download_window_create().
struct gui_download_table* atari_download_table = &download_table |
Definition at line 453 of file download.c.
Referenced by main().
|
extern |
Definition at line 79 of file gui.c.
Referenced by gui_download_window_create().
|
static |
Definition at line 446 of file download.c.
|
extern |
Definition at line 74 of file gui.c.
Referenced by gui_download_window_done(), and gui_download_window_error().