communicate download activity status with each event
authorChristian Grothoff <christian@grothoff.org>
Sun, 27 Jun 2010 11:11:54 +0000 (11:11 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 27 Jun 2010 11:11:54 +0000 (11:11 +0000)
TODO
src/fs/fs_download.c
src/include/gnunet_fs_service.h

diff --git a/TODO b/TODO
index 6c0de7df2c44a802068a7a39f708a0e2c2e48fa3..3d97e60e313cf3d77b609d5dc5c24c7bb1a02300 100644 (file)
--- 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
index 057f57b538d705a59ffb9436070ed418dfdee66e..92c4b831d5b06b58990fa9d59a167645cacf91f9 100644 (file)
@@ -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);
index a6d116deb9a5ebcda91999e9b34bcaf4b79f8609..09ae3682a03ddc5d269be4cf019548edb2e327d8 100644 (file)
@@ -960,6 +960,11 @@ struct GNUNET_FS_ProgressInfo
        */
       uint32_t anonymity;
 
+      /**
+       * Is the download currently active.
+       */
+      int is_active;
+
       /**
        * Additional values for specific events.
        */