diff options
Diffstat (limited to 'src/fs/gnunet-fs-gtk_download-save-as.h')
-rw-r--r-- | src/fs/gnunet-fs-gtk_download-save-as.h | 73 |
1 files changed, 14 insertions, 59 deletions
diff --git a/src/fs/gnunet-fs-gtk_download-save-as.h b/src/fs/gnunet-fs-gtk_download-save-as.h index 37a6e3a9..db0f8018 100644 --- a/src/fs/gnunet-fs-gtk_download-save-as.h +++ b/src/fs/gnunet-fs-gtk_download-save-as.h | |||
@@ -27,62 +27,7 @@ | |||
27 | #define GNUNET_FS_GTK_DOWNLOAD_SAVE_AS_H | 27 | #define GNUNET_FS_GTK_DOWNLOAD_SAVE_AS_H |
28 | 28 | ||
29 | #include "gnunet-fs-gtk_common.h" | 29 | #include "gnunet-fs-gtk_common.h" |
30 | 30 | #include "gnunet-fs-gtk_event-handler.h" | |
31 | |||
32 | /** | ||
33 | * Information we keep for a download. | ||
34 | */ | ||
35 | struct DownloadContext; | ||
36 | |||
37 | |||
38 | /** | ||
39 | * Information we keep for a download. | ||
40 | */ | ||
41 | struct DownloadContext | ||
42 | { | ||
43 | /** | ||
44 | * URI for the download. | ||
45 | */ | ||
46 | struct GNUNET_FS_Uri *uri; | ||
47 | |||
48 | /** | ||
49 | * Meta data. | ||
50 | */ | ||
51 | struct GNUNET_CONTAINER_MetaData *meta; | ||
52 | |||
53 | /** | ||
54 | * Suggested filename, or NULL. | ||
55 | */ | ||
56 | char *filename; | ||
57 | |||
58 | /** | ||
59 | * Row reference (if URI was found by search, or | ||
60 | * part of directory, etc.); otherwise NULL (download by URI). | ||
61 | */ | ||
62 | GtkTreeRowReference *rr; | ||
63 | |||
64 | /** | ||
65 | * Associated search result, or NULL. | ||
66 | */ | ||
67 | struct GNUNET_FS_SearchResult *sr; | ||
68 | |||
69 | /** | ||
70 | * Is this a recursive download? | ||
71 | */ | ||
72 | int is_recursive; | ||
73 | |||
74 | /** | ||
75 | * Desired (default) anonymity level. | ||
76 | */ | ||
77 | int anonymity; | ||
78 | |||
79 | /** | ||
80 | * Tab where this download is currently on display. | ||
81 | * (this is the same as sr->tab, but sr is opaque here). | ||
82 | */ | ||
83 | struct SearchTab *tab; | ||
84 | |||
85 | }; | ||
86 | 31 | ||
87 | 32 | ||
88 | /** | 33 | /** |
@@ -91,10 +36,10 @@ struct DownloadContext | |||
91 | * respective tree model and trigger a start of the download using the | 36 | * respective tree model and trigger a start of the download using the |
92 | * FS-API. | 37 | * FS-API. |
93 | * | 38 | * |
94 | * @param dc download context of the download to execute | 39 | * @param de download entry of the download to execute |
95 | */ | 40 | */ |
96 | void | 41 | void |
97 | GNUNET_FS_GTK_download_context_start_download (struct DownloadContext *dc); | 42 | GNUNET_FS_GTK_download_context_start_download (struct DownloadEntry *de); |
98 | 43 | ||
99 | 44 | ||
100 | /** | 45 | /** |
@@ -106,7 +51,17 @@ GNUNET_FS_GTK_download_context_start_download (struct DownloadContext *dc); | |||
106 | * @param dc download context for the file/directory | 51 | * @param dc download context for the file/directory |
107 | */ | 52 | */ |
108 | void | 53 | void |
109 | GNUNET_FS_GTK_open_download_as_dialog (struct DownloadContext *dc); | 54 | GNUNET_FS_GTK_open_download_as_dialog (struct DownloadEntry *de); |
55 | |||
56 | |||
57 | /** | ||
58 | * Free resources associated with the given download entry. | ||
59 | * | ||
60 | * @param de context to free | ||
61 | */ | ||
62 | void | ||
63 | GNUNET_FS_GTK_free_download_entry (struct DownloadEntry *de); | ||
64 | |||
110 | 65 | ||
111 | 66 | ||
112 | #endif | 67 | #endif |