ELinks 0.16.1.1
file_download Struct Reference

#include <download.h>

Collaboration diagram for file_download:

Data Fields

void * magic1
struct file_downloadnext
struct file_downloadprev
void * magic2
struct object object
struct uriuri
char * file
char * external_handler
struct sessionses
struct terminalterm
 The terminal in which message boxes about the download should be displayed.
time_t remotetime
off_t seek
int handle
int redirect_cnt
int notify
struct download download
char * inpext
 input filename extension
char * outext
 output filename extension
unsigned int delete_:1
 Should the file be deleted when destroying the structure.
unsigned int stop:1
 Should the download be stopped/interrupted when destroying the structure.
unsigned int block:1
 Whether to block the terminal when running the external handler.
unsigned int dgi:1
unsigned int copiousoutput:1
 Mailcap entry with copiousoutput.
struct dialog_datadlg_data
 The current dialog for this download.
struct listbox_itembox_item

Field Documentation

◆ block

unsigned int file_download::block

Whether to block the terminal when running the external handler.

◆ box_item

struct listbox_item* file_download::box_item

◆ copiousoutput

unsigned int file_download::copiousoutput

Mailcap entry with copiousoutput.

◆ delete_

unsigned int file_download::delete_

Should the file be deleted when destroying the structure.

◆ dgi

unsigned int file_download::dgi

◆ dlg_data

struct dialog_data* file_download::dlg_data

The current dialog for this download.

Can be NULL.

◆ download

struct download file_download::download

◆ external_handler

char* file_download::external_handler

◆ file

char* file_download::file

◆ handle

int file_download::handle

◆ inpext

char* file_download::inpext

input filename extension

◆ magic1

void* file_download::magic1

◆ magic2

void* file_download::magic2

◆ next

struct file_download* file_download::next

◆ notify

int file_download::notify

◆ object

struct object file_download::object

◆ outext

char* file_download::outext

output filename extension

◆ prev

struct file_download* file_download::prev

◆ redirect_cnt

int file_download::redirect_cnt

◆ remotetime

time_t file_download::remotetime

◆ seek

off_t file_download::seek

◆ ses

struct session* file_download::ses

◆ stop

unsigned int file_download::stop

Should the download be stopped/interrupted when destroying the structure.

◆ term

struct terminal* file_download::term

The terminal in which message boxes about the download should be displayed.

If this terminal is closed, then detach_downloads_from_terminal() changes the pointer to NULL, and get_default_terminal() will be used if a terminal is needed later. However, if the download has an external handler, then detach_downloads_from_terminal() aborts it right away; external handlers always run in the original terminal, if anywhere.

◆ uri

struct uri* file_download::uri

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