Summary Files Commits Branches @commit @diff @stats
path: root / downloads.h
blob: 5c340095117a0e70c7eba18ebee9e869f97c3f7f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "goodwolf.h"

#include <gtk/gtk.h>

struct Download
{
	struct Window *window;

	GtkWidget *container;
	GtkWidget *icon;
	GtkWidget *stop_icon;
	GtkWidget *file_path;
	GtkWidget *progress;
	GtkWidget *status;
	GError *error;
};

void download_new_entry(WebKitDownload *webkit_download, struct Download *download);
void
downloadCb_created_destination(WebKitDownload *download, gchar *destination, gpointer user_data);
gboolean downloadCb_decide_destination(WebKitDownload *download,
                                       gchar *suggested_filename,
                                       gpointer user_data);
void downloadCb_failed(WebKitDownload *webkit_download, GError *error, gpointer user_data);
void downloadCb_finished(WebKitDownload *download, gpointer user_data);
void downloadCb_received_data(WebKitDownload *download, guint64 data_lenght, gpointer user_data);
GtkWidget *goodwolf_downloads_tab_new();
void goodwolf_downloads_tab_attach(struct Window *window);