Summary Files Commits Branches @commit @diff @stats
path: root / downloads.h
diff options
context:
space:
mode:
Commitad8b3dd9b8d29d067d9b2f4babe7aaa70be58c3d (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2020-01-21 02:12:30 +0100
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2020-05-03 00:42:08 +0200
Filesd03a4f284e4f7776d2da87e8be19d1a87642238b /downloads.h
goodwolf-ad8b3dd9b8d29d067d9b2f4babe7aaa70be58c3d.tar
goodwolf-ad8b3dd9b8d29d067d9b2f4babe7aaa70be58c3d.tar.gz
goodwolf-ad8b3dd9b8d29d067d9b2f4babe7aaa70be58c3d.zip
Parente64d606e233e320d8df20958ee9e964fd95dca6a (diff)
Download progress tab
1 files changed, 28 insertions, 0 deletions
-rw-r--r--downloads.h28
diff --git a/downloads.h b/downloads.h
new file mode 100644
index 0000000..fa5513e
--- /dev/null
+++ b/downloads.h
@@ -0,0 +1,28 @@
+#include "badwolf.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 *badwolf_downloads_tab_new();
+void badwolf_downloads_tab_attach(struct Window *window);