aboutsummaryrefslogtreecommitdiffstats
path: root/embed/downloader-view.h
diff options
context:
space:
mode:
authorGustavo Noronha Silva <kov@debian.org>2009-05-23 05:42:46 +0800
committerGustavo Noronha Silva <kov@debian.org>2009-05-23 05:42:46 +0800
commit9365ffd004d6260e656453143eb32f333ae888a2 (patch)
tree911b14b0468173bb4b19961bf8aa5c99b8acd7a3 /embed/downloader-view.h
parent36a1ff182877766efa44d8b61eb0bc27e7716db1 (diff)
downloadgsoc2013-epiphany-9365ffd004d6260e656453143eb32f333ae888a2.tar
gsoc2013-epiphany-9365ffd004d6260e656453143eb32f333ae888a2.tar.gz
gsoc2013-epiphany-9365ffd004d6260e656453143eb32f333ae888a2.tar.bz2
gsoc2013-epiphany-9365ffd004d6260e656453143eb32f333ae888a2.tar.lz
gsoc2013-epiphany-9365ffd004d6260e656453143eb32f333ae888a2.tar.xz
gsoc2013-epiphany-9365ffd004d6260e656453143eb32f333ae888a2.tar.zst
gsoc2013-epiphany-9365ffd004d6260e656453143eb32f333ae888a2.zip
Reimplement the original download logic and dialog.
We are still missing some of the MIME logic, pending on a WebKit feature landing.
Diffstat (limited to 'embed/downloader-view.h')
-rw-r--r--embed/downloader-view.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/embed/downloader-view.h b/embed/downloader-view.h
index 82cb101f0..e331cca02 100644
--- a/embed/downloader-view.h
+++ b/embed/downloader-view.h
@@ -52,6 +52,23 @@ struct _DownloaderViewClass
EphyDialogClass parent_class;
};
+/* These represent actions to be performed after the download is
+ * successfully completed; NONE means no download will happen,
+ * DOWNLOAD is just a way to tell the mime content handler that a file
+ * chooser should be displayed so that the user can select where to
+ * download to, and is usually turned into OPEN_LOCATION after that
+ * happens (in other words, DOWNLOAD will never be an action when the
+ * download is finished). OPEN will try to run the default application
+ * that handles that file type.
+ */
+typedef enum
+{
+ DOWNLOAD_ACTION_NONE,
+ DOWNLOAD_ACTION_DOWNLOAD,
+ DOWNLOAD_ACTION_OPEN,
+ DOWNLOAD_ACTION_OPEN_LOCATION
+} DownloadAction;
+
GType downloader_view_get_type (void);
DownloaderView *downloader_view_new (void);