commit a neatness on the gtk download window code

This commit is contained in:
Vincent Sanders 2019-10-16 21:51:01 +01:00
parent 1f0dc9dd6e
commit a54cbb5aea
2 changed files with 509 additions and 326 deletions

File diff suppressed because it is too large Load Diff

View File

@ -19,13 +19,12 @@
#ifndef GTK_DOWNLOAD_H
#define GTK_DOWNLOAD_H
#include <gtk/gtk.h>
/**
* download operation table for gtk
*/
extern struct gui_download_table *nsgtk_download_table;
/**
* Initialise download window ready for use.
*
@ -33,9 +32,27 @@ extern struct gui_download_table *nsgtk_download_table;
*/
nserror nsgtk_download_init(void);
void nsgtk_download_destroy (void);
/**
* Destroy download window
*/
void nsgtk_download_destroy(void);
/**
* Check with user if download is in progress they want to complete
*
* \param parent The parent window for the prompt dialog.
* \return true if the user wants to continue else false.
*/
bool nsgtk_check_for_downloads(GtkWindow *parent);
/**
* Show the download window
*
* \param parent The parent window to use for the shown window
*/
void nsgtk_download_show(GtkWindow *parent);
void nsgtk_download_add(gchar *url, gchar *destination);
#endif