aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-download.h
diff options
context:
space:
mode:
authorGustavo Noronha Silva <gns@src.gnome.org>2009-03-05 07:59:35 +0800
committerGustavo Noronha Silva <gns@src.gnome.org>2009-03-05 07:59:35 +0800
commit42a654901e1cdc2abf20feff9eb1d7128246d6a1 (patch)
treefce1285f78c056de771bc4420ad040c8ec440720 /embed/ephy-download.h
parent8f403c6207687e3ecdec6a40bbe16e02a6815bc1 (diff)
downloadgsoc2013-epiphany-42a654901e1cdc2abf20feff9eb1d7128246d6a1.tar.gz
gsoc2013-epiphany-42a654901e1cdc2abf20feff9eb1d7128246d6a1.tar.zst
gsoc2013-epiphany-42a654901e1cdc2abf20feff9eb1d7128246d6a1.zip
Basic download functionality for ephy/webkit. This update also removes
the EphyDownload wrapper, which should be no longer needed with the advent of WebKitDownload. http://bugzilla.gnome.org/show_bug.cgi?id=570735 svn path=/trunk/; revision=8848
Diffstat (limited to 'embed/ephy-download.h')
-rw-r--r--embed/ephy-download.h114
1 files changed, 0 insertions, 114 deletions
diff --git a/embed/ephy-download.h b/embed/ephy-download.h
deleted file mode 100644
index 6741f776b..000000000
--- a/embed/ephy-download.h
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
- * Copyright © 2000-2003 Marco Pesenti Gritti
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- */
-
-#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION)
-#error "Only <epiphany/epiphany.h> can be included directly."
-#endif
-
-#ifndef EPHY_DOWNLOAD_H
-#define EPHY_DOWNLOAD_H
-
-#include <glib-object.h>
-#include <glib.h>
-
-G_BEGIN_DECLS
-
-#define EPHY_TYPE_DOWNLOAD (ephy_download_get_type ())
-#define EPHY_DOWNLOAD(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EPHY_TYPE_DOWNLOAD, EphyDownload))
-#define EPHY_DOWNLOAD_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EPHY_TYPE_DOWNLOAD, EphyDownloadClass))
-#define EPHY_IS_DOWNLOAD(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EPHY_TYPE_DOWNLOAD))
-#define EPHY_IS_DOWNLOAD_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_DOWNLOAD))
-#define EPHY_DOWNLOAD_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EPHY_TYPE_DOWNLOAD, EphyDownloadClass))
-
-typedef struct _EphyDownload EphyDownload;
-typedef struct _EphyDownloadClass EphyDownloadClass;
-typedef struct _EphyDownloadPrivate EphyDownloadPrivate;
-
-typedef enum
-{
- EPHY_DOWNLOAD_INITIALISING,
- EPHY_DOWNLOAD_DOWNLOADING,
- EPHY_DOWNLOAD_PAUSED,
- EPHY_DOWNLOAD_COMPLETED,
- EPHY_DOWNLOAD_FAILED
-} EphyDownloadState;
-
-struct _EphyDownload
-{
- GObject parent;
-
- /*< private >*/
- EphyDownloadPrivate *priv;
-};
-
-struct _EphyDownloadClass
-{
- GObjectClass parent_class;
-
- char * (* get_source) (EphyDownload *download);
- char * (* get_target) (EphyDownload *download);
- char * (* get_mime) (EphyDownload *download);
- int (* get_percent) (EphyDownload *download);
- gint64 (* get_current_progress) (EphyDownload *download);
- gint64 (* get_total_progress) (EphyDownload *download);
- gint64 (* get_elapsed_time) (EphyDownload *download);
- void (* cancel) (EphyDownload *download);
- void (* pause) (EphyDownload *download);
- void (* resume) (EphyDownload *download);
- EphyDownloadState (* get_state) (EphyDownload *download);
-
- /* Signals */
- void (* changed) (EphyDownload *download);
-};
-
-/* Time is expressed in seconds, file sizes in bytes */
-
-GType ephy_download_get_type (void);
-
-EphyDownload *ephy_download_new (void);
-
-char *ephy_download_get_name (EphyDownload *download);
-
-char *ephy_download_get_source (EphyDownload *download);
-
-char *ephy_download_get_target (EphyDownload *download);
-
-char *ephy_download_get_mime (EphyDownload *download);
-
-int ephy_download_get_percent (EphyDownload *download);
-
-EphyDownloadState ephy_download_get_state (EphyDownload *download);
-
-gint64 ephy_download_get_current_progress (EphyDownload *download);
-
-gint64 ephy_download_get_total_progress (EphyDownload *download);
-
-gint64 ephy_download_get_elapsed_time (EphyDownload *download);
-
-gint64 ephy_download_get_remaining_time (EphyDownload *download);
-
-void ephy_download_cancel (EphyDownload *download);
-
-void ephy_download_pause (EphyDownload *download);
-
-void ephy_download_resume (EphyDownload *download);
-
-G_END_DECLS
-
-#endif