aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fs/fs.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2006-10-29 21:57:35 +0000
committerChristian Grothoff <christian@grothoff.org>2006-10-29 21:57:35 +0000
commitff49f834ef18690d06cd83fbcbc2fe0b3392c4ba (patch)
tree044d20e88ef424320839c6aa29b29b7d152c1b91 /src/plugins/fs/fs.h
parent965c66fafda17b192e30bfbf1c547144de1e6dc6 (diff)
downloadgnunet-gtk-ff49f834ef18690d06cd83fbcbc2fe0b3392c4ba.tar.gz
gnunet-gtk-ff49f834ef18690d06cd83fbcbc2fe0b3392c4ba.zip
first half of upload refactoring done
Diffstat (limited to 'src/plugins/fs/fs.h')
-rw-r--r--src/plugins/fs/fs.h41
1 files changed, 39 insertions, 2 deletions
diff --git a/src/plugins/fs/fs.h b/src/plugins/fs/fs.h
index 24a638a1..39ff7c1d 100644
--- a/src/plugins/fs/fs.h
+++ b/src/plugins/fs/fs.h
@@ -73,6 +73,9 @@ enum {
73 SEARCH_SUMMARY_NUM 73 SEARCH_SUMMARY_NUM
74}; 74};
75 75
76/**
77 * Entry in download summary.
78 */
76enum { 79enum {
77 DOWNLOAD_FILENAME = 0, 80 DOWNLOAD_FILENAME = 0,
78 DOWNLOAD_SHORTNAME, 81 DOWNLOAD_SHORTNAME,
@@ -109,11 +112,14 @@ enum {
109 IN_NAMESPACE_NUM 112 IN_NAMESPACE_NUM
110}; 113};
111 114
112 115/**
116 * Entry in upload summary.
117 */
113enum { 118enum {
114 UPLOAD_FILENAME = 0, 119 UPLOAD_FILENAME = 0,
115 UPLOAD_PROGRESS, 120 UPLOAD_PROGRESS,
116 UPLOAD_URISTRING, 121 UPLOAD_URISTRING,
122 UPLOAD_INTERNAL,
117 UPLOAD_NUM 123 UPLOAD_NUM
118}; 124};
119 125
@@ -249,6 +255,35 @@ typedef struct DL {
249 255
250} DownloadList; 256} DownloadList;
251 257
258typedef struct UL {
259 struct UL * next;
260
261 /**
262 * Which file or directory are we uploading?
263 */
264 char * filename;
265
266 /**
267 * Path in the summary view for this download.
268 */
269 GtkTreeRowReference * summaryViewRowReference;
270
271 struct FSUI_UploadList * fsui_list;
272
273 /**
274 * Set to final URI upon successful completion.
275 */
276 struct ECRS_URI * uri;
277
278 /**
279 * Total size of the upload.
280 */
281 unsigned long long total;
282
283 int has_terminated;
284
285} UploadList;
286
252extern struct FSUI_Context * ctx; 287extern struct FSUI_Context * ctx;
253 288
254extern struct GE_Context * ectx; 289extern struct GE_Context * ectx;
@@ -259,10 +294,12 @@ extern SearchList * search_head;
259 294
260extern DownloadList * download_head; 295extern DownloadList * download_head;
261 296
297extern UploadList * upload_head;
298
262extern GtkListStore * search_summary; 299extern GtkListStore * search_summary;
263 300
264extern GtkTreeStore * download_summary; 301extern GtkTreeStore * download_summary;
265 302
266 303extern GtkTreeStore * upload_summary;
267 304
268#endif 305#endif