diff options
Diffstat (limited to 'src/plugins/fs/fs.h')
-rw-r--r-- | src/plugins/fs/fs.h | 41 |
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 | */ | ||
76 | enum { | 79 | enum { |
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 | */ | ||
113 | enum { | 118 | enum { |
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 | ||
258 | typedef 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 | |||
252 | extern struct FSUI_Context * ctx; | 287 | extern struct FSUI_Context * ctx; |
253 | 288 | ||
254 | extern struct GE_Context * ectx; | 289 | extern struct GE_Context * ectx; |
@@ -259,10 +294,12 @@ extern SearchList * search_head; | |||
259 | 294 | ||
260 | extern DownloadList * download_head; | 295 | extern DownloadList * download_head; |
261 | 296 | ||
297 | extern UploadList * upload_head; | ||
298 | |||
262 | extern GtkListStore * search_summary; | 299 | extern GtkListStore * search_summary; |
263 | 300 | ||
264 | extern GtkTreeStore * download_summary; | 301 | extern GtkTreeStore * download_summary; |
265 | 302 | ||
266 | 303 | extern GtkTreeStore * upload_summary; | |
267 | 304 | ||
268 | #endif | 305 | #endif |