Summary Files Commits Branches @commit @diff @stats
path: root / downloads.h
diff options
context:
space:
mode:
Commita49df8ad9869a47a10138738b38fd0ffdb95e402 (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2020-05-18 04:50:42 +0200
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2020-05-18 04:50:42 +0200
Files08a4eee2a5110415214e5f70f572c3c47e5c3b08 /downloads.h
goodwolf-1.0.0.tar
goodwolf-1.0.0.tar.gz
goodwolf-1.0.0.zip
Parentc3cadbabf760fd86a0b21bf1869e01653fa5dbbe (diff)
Parent1dbcade1d73cc2e45c61663cc97da17ddec7eb04 (diff)
Merge branch 'release-1.0' for v1.0.0 v1.0.0
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);