NetSurf
Data Structures | Macros | Functions | Variables
download.cpp File Reference
#include <stdbool.h>
#include <sys/types.h>
#include <stdlib.h>
#include "desktop/download.h"
#include "netsurf/download.h"
#include "utils/utils.h"
#include "utils/string.h"
#include "beos/download.h"
#include <File.h>
#include <FilePanel.h>
#include <Locker.h>
#include <Messenger.h>
#include <StatusBar.h>
#include <Window.h>
Include dependency graph for download.cpp:

Go to the source code of this file.

Data Structures

class  NSDownloadWindow
 
struct  gui_download_window
 context for each download. More...
 

Macros

#define __STDBOOL_H__   1
 

Functions

static struct gui_download_windowgui_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

static struct gui_download_table download_table
 
struct gui_download_tablebeos_download_table = &download_table
 

Macro Definition Documentation

◆ __STDBOOL_H__

#define __STDBOOL_H__   1

Definition at line 19 of file download.cpp.

Function Documentation

◆ gui_download_window_create()

static struct gui_download_window * gui_download_window_create ( download_context ctx,
struct gui_window parent 
)
static

Definition at line 186 of file download.cpp.

References gui_download_window::ctx, download_context_get_filename(), gui_download_window::storage, gui_download_window::storageLock, and gui_download_window::window.

Here is the call graph for this function:

◆ gui_download_window_data()

static nserror gui_download_window_data ( struct gui_download_window dw,
const char *  data,
unsigned int  size 
)
static

Definition at line 217 of file download.cpp.

References NSERROR_OK, NSDownloadWindow::Progress(), gui_download_window::size, gui_download_window::storage, gui_download_window::storageLock, and gui_download_window::window.

Here is the call graph for this function:

◆ gui_download_window_done()

static void gui_download_window_done ( struct gui_download_window dw)
static

Definition at line 240 of file download.cpp.

References gui_download_window::file, gui_download_window::storage, gui_download_window::storageLock, NSDownloadWindow::Success(), and gui_download_window::window.

Here is the call graph for this function:

◆ gui_download_window_error()

static void gui_download_window_error ( struct gui_download_window dw,
const char *  error_msg 
)
static

Definition at line 230 of file download.cpp.

References NSDownloadWindow::Failure(), gui_download_window::storage, gui_download_window::storageLock, and gui_download_window::window.

Here is the call graph for this function:

Variable Documentation

◆ beos_download_table

struct gui_download_table* beos_download_table = &download_table

Definition at line 263 of file download.cpp.

Referenced by gui_init_replicant(), and main().

◆ download_table

struct gui_download_table download_table
static
Initial value:
= {
}
static nserror gui_download_window_data(struct gui_download_window *dw, const char *data, unsigned int size)
Definition: download.cpp:217
static void gui_download_window_error(struct gui_download_window *dw, const char *error_msg)
Definition: download.cpp:230
static void gui_download_window_done(struct gui_download_window *dw)
Definition: download.cpp:240
static struct gui_download_window * gui_download_window_create(download_context *ctx, struct gui_window *parent)
Definition: download.cpp:186

Definition at line 256 of file download.cpp.