diff options
author | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-10-17 01:28:46 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-10-17 01:28:46 +0800 |
commit | 24fc218c90c70a06011a851df6991bf34b72d6c3 (patch) | |
tree | 6bb9ee7e434a3b10e636634cbaaa997e6ccebf1f /embed/downloader-view.h | |
parent | b7a8e995fde6c3cf6ac82ea2390c3c4b510024c5 (diff) | |
download | gsoc2013-epiphany-24fc218c90c70a06011a851df6991bf34b72d6c3.tar gsoc2013-epiphany-24fc218c90c70a06011a851df6991bf34b72d6c3.tar.gz gsoc2013-epiphany-24fc218c90c70a06011a851df6991bf34b72d6c3.tar.bz2 gsoc2013-epiphany-24fc218c90c70a06011a851df6991bf34b72d6c3.tar.lz gsoc2013-epiphany-24fc218c90c70a06011a851df6991bf34b72d6c3.tar.xz gsoc2013-epiphany-24fc218c90c70a06011a851df6991bf34b72d6c3.tar.zst gsoc2013-epiphany-24fc218c90c70a06011a851df6991bf34b72d6c3.zip |
Merge new-downloader branch. We reworked the backend, the user
interface is still incomplete.
Diffstat (limited to 'embed/downloader-view.h')
-rw-r--r-- | embed/downloader-view.h | 33 |
1 files changed, 3 insertions, 30 deletions
diff --git a/embed/downloader-view.h b/embed/downloader-view.h index 007b6727b..433523b30 100644 --- a/embed/downloader-view.h +++ b/embed/downloader-view.h @@ -20,6 +20,7 @@ #define DOWNLOADER_VIEW_H #include "ephy-dialog.h" +#include "ephy-download.h" #include <glib-object.h> #include <glib.h> @@ -37,14 +38,6 @@ typedef struct DownloaderView DownloaderView; typedef struct DownloaderViewClass DownloaderViewClass; typedef struct DownloaderViewPrivate DownloaderViewPrivate; -typedef enum -{ - DOWNLOAD_STATUS_DOWNLOADING, - DOWNLOAD_STATUS_PAUSED, - DOWNLOAD_STATUS_RESUMING, - DOWNLOAD_STATUS_COMPLETED -} DownloadStatus; - struct DownloaderView { EphyDialog parent; @@ -54,10 +47,6 @@ struct DownloaderView struct DownloaderViewClass { EphyDialogClass parent_class; - - void (*download_remove) (DownloaderView *dv, gpointer persist_object); - void (*download_pause) (DownloaderView *dv, gpointer persist_object); - void (*download_resume) (DownloaderView *dv, gpointer persist_object); }; GType downloader_view_get_type (void); @@ -65,26 +54,10 @@ GType downloader_view_get_type (void); DownloaderView *downloader_view_new (void); void downloader_view_add_download (DownloaderView *dv, - gchar *filename, - gchar *source, - gchar *dest, - gpointer persist_object); + EphyDownload *download); void downloader_view_remove_download (DownloaderView *dv, - gpointer persist_object); - -void downloader_view_set_download_status (DownloaderView *dv, - DownloadStatus status, - gpointer persist_object); - -void downloader_view_set_download_progress (DownloaderView *dv, - glong elapsed, - glong remaining, - gfloat speed, - gint size_total, - gint size_done, - gfloat progress, - gpointer persist_object); + EphyDownload *download); G_END_DECLS |