aboutsummaryrefslogtreecommitdiffstats
path: root/embed/downloader-view.h
diff options
context:
space:
mode:
Diffstat (limited to 'embed/downloader-view.h')
-rw-r--r--embed/downloader-view.h33
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