downloads.h 975 B

1234567891011121314151617181920212223242526272829
  1. #include "badwolf.h"
  2. #include <gtk/gtk.h>
  3. struct Download
  4. {
  5. struct Window *window;
  6. GtkWidget *container;
  7. GtkWidget *icon;
  8. GtkWidget *stop_icon;
  9. GtkWidget *file_path;
  10. GtkWidget *progress;
  11. GtkWidget *status;
  12. GError *error;
  13. };
  14. void download_new_entry(WebKitDownload *webkit_download, struct Download *download);
  15. void
  16. downloadCb_created_destination(WebKitDownload *download, gchar *destination, gpointer user_data);
  17. gboolean downloadCb_decide_destination(WebKitDownload *download,
  18. gchar *suggested_filename,
  19. gpointer user_data);
  20. void downloadCb_failed(WebKitDownload *webkit_download, GError *error, gpointer user_data);
  21. void downloadCb_finished(WebKitDownload *download, gpointer user_data);
  22. void downloadCb_received_data(WebKitDownload *download, guint64 data_lenght, gpointer user_data);
  23. GtkWidget *badwolf_downloads_tab_new();
  24. void badwolf_downloads_tab_attach(struct Window *window);