NetSurf
download.h
Go to the documentation of this file.
1/*
2 * Copyright 2008 Michael Lester <element3260@gmail.com>
3 *
4 * This file is part of NetSurf, http://www.netsurf-browser.org/
5 *
6 * NetSurf is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * NetSurf is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef GTK_DOWNLOAD_H
20#define GTK_DOWNLOAD_H
21
22/**
23 * download operation table for gtk
24 */
26
27
28/**
29 * Initialise download window ready for use.
30 *
31 * \return NSERROR_OK on success else appropriate error code on faliure.
32 */
34
35
36/**
37 * Destroy download window
38 */
39void nsgtk_download_destroy(void);
40
41
42/**
43 * Check with user if download is in progress they want to complete
44 *
45 * \param parent The parent window for the prompt dialog.
46 * \return true if the user wants to continue else false.
47 */
48bool nsgtk_check_for_downloads(GtkWindow *parent);
49
50
51/**
52 * Show the download window
53 *
54 * \param parent The parent window to use for the shown window
55 */
56void nsgtk_download_show(GtkWindow *parent);
57
58#endif
wimp_w parent
Definition: dialog.c:88
nserror
Enumeration of error codes.
Definition: errors.h:29
void nsgtk_download_show(GtkWindow *parent)
Show the download window.
Definition: download.c:1069
void nsgtk_download_destroy(void)
Destroy download window.
Definition: download.c:1026
bool nsgtk_check_for_downloads(GtkWindow *parent)
Check with user if download is in progress they want to complete.
Definition: download.c:1033
nserror nsgtk_download_init(void)
Initialise download window ready for use.
Definition: download.c:934
struct gui_download_table * nsgtk_download_table
download operation table for gtk
Definition: download.c:930
function table for download windows.
Definition: download.h:34