NetSurf
|
windows frontend download implementation More...
#include <limits.h>
#include "utils/inet.h"
#include <shlobj.h>
#include <windows.h>
#include "utils/sys_time.h"
#include "utils/log.h"
#include "utils/messages.h"
#include "utils/url.h"
#include "utils/nsurl.h"
#include "utils/utils.h"
#include "utils/string.h"
#include "content/fetch.h"
#include "netsurf/download.h"
#include "desktop/download.h"
#include "windows/download.h"
#include "windows/window.h"
#include "windows/gui.h"
#include "windows/resourceid.h"
#include "windows/schedule.h"
Go to the source code of this file.
Data Structures | |
struct | gui_download_window |
context for each download. More... | |
Functions | |
static void | nsws_download_update_label (void *p) |
static void | nsws_download_update_progress (void *p) |
static void | nsws_download_clear_data (struct gui_download_window *w) |
static BOOL CALLBACK | nsws_download_event_callback (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) |
static bool | nsws_download_window_up (struct gui_download_window *w) |
static struct gui_download_window * | gui_download_window_create (download_context *ctx, struct gui_window *gui) |
static nserror | gui_download_window_data (struct gui_download_window *w, const char *data, unsigned int size) |
static void | gui_download_window_error (struct gui_download_window *w, const char *error_msg) |
static void | gui_download_window_done (struct gui_download_window *w) |
Variables | |
static bool | downloading = false |
static struct gui_download_window * | download1 |
static struct gui_download_table | download_table |
struct gui_download_table * | win32_download_table = &download_table |
windows frontend download implementation
Definition in file download.c.
|
static |
Definition at line 201 of file download.c.
References gui_download_window::ctx, gui_download_window::destination, gui_download_window::domain, download1, download_context_get_total_length(), download_context_get_url(), DOWNLOAD_NONE, downloading, gui_download_window::filename, human_friendly_bytesize(), messages_get(), NSERROR_OK, NSLOG, nsurl_get_component(), nsurl_has_component(), NSURL_HOST, nsurl_nice(), nsws_download_window_up(), PATH_MAX, gui_download_window::size, gui_download_window::total_size, gui_download_window::url, gui_download_window::w, and win32_warning().
|
static |
Definition at line 309 of file download.c.
References gui_download_window::downloaded, gui_download_window::file, NSERROR_OK, NSERROR_SAVE_FAILED, NSLOG, gui_download_window::progress, gui_download_window::size, gui_download_window::start_time, gui_download_window::time_remaining, and gui_download_window::w.
|
static |
Definition at line 336 of file download.c.
References downloading, gui_download_window::hwnd, and nsws_download_clear_data().
|
static |
Definition at line 330 of file download.c.
References NSLOG.
|
static |
Definition at line 137 of file download.c.
References nsws_download_update_label(), nsws_download_update_progress(), gui_download_window::w, and win32_schedule().
Referenced by gui_download_window_done(), and nsws_download_event_callback().
|
static |
Definition at line 159 of file download.c.
References download1, gui_download_window::downloaded, downloading, fallthrough, gui_download_window::hwnd, nsws_download_clear_data(), nsws_download_update_label(), nsws_download_update_progress(), and gui_download_window::size.
Referenced by nsws_download_window_up().
|
static |
Definition at line 72 of file download.c.
References human_friendly_bytesize(), IDC_DOWNLOAD_LABEL, messages_get(), nsws_download_update_label(), gui_download_window::size, SLEN, gui_download_window::w, and win32_schedule().
Referenced by nsws_download_clear_data(), nsws_download_event_callback(), and nsws_download_update_label().
|
static |
Definition at line 122 of file download.c.
References IDC_DOWNLOAD_PROGRESS, nsws_download_update_progress(), gui_download_window::w, and win32_schedule().
Referenced by nsws_download_clear_data(), nsws_download_event_callback(), and nsws_download_update_progress().
|
static |
Definition at line 186 of file download.c.
References gui_window_main_window(), hinst, IDD_DOWNLOAD, nsws_download_event_callback(), ShowWindow, and gui_download_window::w.
Referenced by gui_download_window_create().
|
static |
Definition at line 69 of file download.c.
Referenced by gui_download_window_create(), and nsws_download_event_callback().
|
static |
Definition at line 346 of file download.c.
|
static |
Definition at line 68 of file download.c.
Referenced by gui_download_window_create(), gui_download_window_done(), and nsws_download_event_callback().
struct gui_download_table* win32_download_table = &download_table |
Definition at line 353 of file download.c.
Referenced by WinMain().