NetSurf
Enumerations | Functions | Variables
file.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  {
  AMINS_SAVE_SOURCE , AMINS_SAVE_TEXT , AMINS_SAVE_COMPLETE , AMINS_SAVE_PDF ,
  AMINS_SAVE_IFF , AMINS_SAVE_SELECTION
}
 

Functions

void ami_file_req_init (void)
 
void ami_file_req_free (void)
 
void ami_file_open (struct gui_window_2 *gwin)
 
void ami_file_save_req (int type, struct gui_window_2 *gwin, struct hlcache_handle *object)
 
void ami_file_save (int type, char *fname, struct Window *win, struct hlcache_handle *object, struct hlcache_handle *favicon, struct browser_window *bw)
 

Variables

struct FileRequester * filereq
 
struct FileRequester * savereq
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
AMINS_SAVE_SOURCE 
AMINS_SAVE_TEXT 
AMINS_SAVE_COMPLETE 
AMINS_SAVE_PDF 
AMINS_SAVE_IFF 
AMINS_SAVE_SELECTION 

Definition at line 27 of file file.h.

Function Documentation

◆ ami_file_open()

void ami_file_open ( struct gui_window_2 gwin)

Definition at line 83 of file file.c.

References ami_gui2_get_browser_window(), ami_gui2_get_window(), ami_gui_get_screen(), amiga_warn_user(), aslhookfunc, browser_window_navigate(), BW_NAVIGATE_HISTORY, filereq, messages_get(), netsurf_path_to_nsurl(), NSERROR_OK, and nsurl_unref().

Referenced by HOOKF().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_file_req_free()

void ami_file_req_free ( void  )

Definition at line 300 of file file.c.

References filereq, and savereq.

Referenced by ami_gui_opts_use(), and gui_quit().

Here is the caller graph for this function:

◆ ami_file_req_init()

void ami_file_req_init ( void  )

Definition at line 281 of file file.c.

References aslhookfunc, download_dir, filereq, nsoption_charp, and savereq.

Referenced by ami_gui_opts_use(), and main().

Here is the caller graph for this function:

◆ ami_file_save()

void ami_file_save ( int  type,
char *  fname,
struct Window *  win,
struct hlcache_handle object,
struct hlcache_handle favicon,
struct browser_window bw 
)

Definition at line 147 of file file.c.

References ami_bitmap_set_title(), ami_bitmap_set_url(), ami_download_check_overwrite(), ami_file_set_type(), ami_mime_compare(), ami_update_pointer(), amiga_bitmap_save(), amiga_icon_superimpose_favicon(), AMINS_SAVE_COMPLETE, AMINS_SAVE_IFF, AMINS_SAVE_PDF, AMINS_SAVE_SELECTION, AMINS_SAVE_SOURCE, AMINS_SAVE_TEXT, browser_window_get_selection(), content_get_bitmap(), content_get_source_data(), content_get_title(), FClose, FOpen, GUI_POINTER_DEFAULT, GUI_POINTER_WAIT, hlcache_handle_get_url(), nsurl_access(), save_as_text(), save_complete(), and type.

Referenced by ami_file_save_req().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_file_save_req()

void ami_file_save_req ( int  type,
struct gui_window_2 gwin,
struct hlcache_handle object 
)

Definition at line 225 of file file.c.

References ami_file_save(), ami_gui2_get_browser_window(), ami_gui2_get_gui_window(), ami_gui2_get_window(), ami_gui_get_favicon(), ami_gui_get_screen(), AMINS_SAVE_IFF, AMINS_SAVE_PDF, AMINS_SAVE_SELECTION, AMINS_SAVE_SOURCE, AMINS_SAVE_TEXT, hlcache_handle_get_url(), messages_get(), nsurl_nice(), savereq, and type.

Referenced by HOOKF().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ filereq

struct FileRequester* filereq
extern

◆ savereq

struct FileRequester* savereq
extern