summaryrefslogtreecommitdiff
path: root/atari/download.h
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2011-02-01 21:26:29 +0000
committerOle Loots <ole@monochrom.net>2011-02-01 21:26:29 +0000
commitd2072648c783f69e1ca748ba63e4997a5d5dbd2d (patch)
tree3e19ca511e8e32d10de650bbda5989ee1a1e92c3 /atari/download.h
parent82267c62edf14941f582c1a8b374159cfffdbe49 (diff)
downloadnetsurf-d2072648c783f69e1ca748ba63e4997a5d5dbd2d.tar.gz
netsurf-d2072648c783f69e1ca748ba63e4997a5d5dbd2d.tar.bz2
Implemented Download dialog.
svn path=/trunk/netsurf/; revision=11591
Diffstat (limited to 'atari/download.h')
-rwxr-xr-xatari/download.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/atari/download.h b/atari/download.h
index e6bff590a..60a1e33f7 100755
--- a/atari/download.h
+++ b/atari/download.h
@@ -19,4 +19,36 @@
#ifndef NS_ATARI_DOWNLOAD_H
#define NS_ATARI_DOWNLOAD_H
+#define MAX_SLEN_LBL_DONE 64
+#define MAX_SLEN_LBL_PERCENT 10
+#define MAX_SLEN_LBL_SPEED 16
+#define MAX_SLEN_LBL_FILE 256
+
+typedef enum {
+ NSATARI_DOWNLOAD_NONE,
+ NSATARI_DOWNLOAD_WORKING,
+ NSATARI_DOWNLOAD_ERROR,
+ NSATARI_DOWNLOAD_COMPLETE,
+ NSATARI_DOWNLOAD_CANCELED
+} nsatari_download_status;
+
+struct gui_download_window {
+ struct download_context *ctx;
+ struct gui_window * parent;
+ WINDOW * form;
+ nsatari_download_status status;
+ char *destination;
+ char *domain;
+ char * url;
+ FILE * fd;
+ char lbl_done[MAX_SLEN_LBL_DONE];
+ char lbl_percent[MAX_SLEN_LBL_PERCENT];
+ char lbl_speed[MAX_SLEN_LBL_SPEED];
+ char lbl_file[MAX_SLEN_LBL_FILE];
+ uint32_t start;
+ uint32_t size_total;
+ uint32_t size_downloaded;
+ bool abort;
+};
+
#endif