From af68c3a1fa672b4e64f96698453a0371a8c3794e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 27 Jun 2010 11:11:54 +0000 Subject: [PATCH] communicate download activity status with each event --- TODO | 18 +++++++++++++----- src/fs/fs_download.c | 1 + src/include/gnunet_fs_service.h | 5 +++++ 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/TODO b/TODO index 6c0de7df2..3d97e60e3 100644 --- a/TODO +++ b/TODO @@ -7,11 +7,18 @@ - only connect() sockets that are ready (select()) [Nils] [On W32, we need to select after calling socket before doing connect etc.] * GNUNET-GTK: [CG] - - directory support: - + download start: recursive/directory (!) & from-URI only - + handle download lost-parent (move to 'from-URI only' tab) - + display content of directory - + open directory + - from-URI only tab: + + display from open directory (needs 'from-URI only' tab!) + + handle download lost-parent (move to 'from-URI only' tab!) + - recursive downloads: + + download start: recursive/directory (!) + * display directory content from download as part of search + * honor recursion option (may already be done, check!) + - TEST download-start from-URI only in event handler + +* BUGS: + Jun 27 11:51:54 core-7670 ERROR Assertion failed at gnunet-service-core.c:3616. + 0.9.0pre2: * CORE: @@ -79,6 +86,7 @@ + copy URI to clipboard + save-as gnunet-directory - events: + + implement clear button in search tabs (to stop downloads) + search resume + search error + download error diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c index 057f57b53..92c4b831d 100644 --- a/src/fs/fs_download.c +++ b/src/fs/fs_download.c @@ -170,6 +170,7 @@ GNUNET_FS_download_make_status_ (struct GNUNET_FS_ProgressInfo *pi, = GNUNET_TIME_calculate_eta (dc->start_time, dc->completed, dc->length); + pi->value.download.is_active = (dc->client == NULL) ? GNUNET_NO : GNUNET_YES; if (0 == (dc->options & GNUNET_FS_DOWNLOAD_IS_PROBE)) dc->client_info = dc->h->upcb (dc->h->upcb_cls, pi); diff --git a/src/include/gnunet_fs_service.h b/src/include/gnunet_fs_service.h index a6d116deb..09ae3682a 100644 --- a/src/include/gnunet_fs_service.h +++ b/src/include/gnunet_fs_service.h @@ -960,6 +960,11 @@ struct GNUNET_FS_ProgressInfo */ uint32_t anonymity; + /** + * Is the download currently active. + */ + int is_active; + /** * Additional values for specific events. */ -- 2.25.1