aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fs/fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fs/fs.h')
-rw-r--r--src/plugins/fs/fs.h136
1 files changed, 135 insertions, 1 deletions
diff --git a/src/plugins/fs/fs.h b/src/plugins/fs/fs.h
index 690bf072..24a638a1 100644
--- a/src/plugins/fs/fs.h
+++ b/src/plugins/fs/fs.h
@@ -29,7 +29,7 @@
29 29
30#include <GNUnet/gnunet_ecrs_lib.h> 30#include <GNUnet/gnunet_ecrs_lib.h>
31#include <GNUnet/gnunet_fsui_lib.h> 31#include <GNUnet/gnunet_fsui_lib.h>
32 32#include "gnunetgtk_common.h"
33 33
34/** 34/**
35 * On search box, for namespace selection 35 * On search box, for namespace selection
@@ -58,6 +58,7 @@ enum {
58 SEARCH_URI, 58 SEARCH_URI,
59 SEARCH_META, 59 SEARCH_META,
60 SEARCH_INTERNAL, 60 SEARCH_INTERNAL,
61 SEARCH_INTERNAL_PARENT,
61 SEARCH_NUM, 62 SEARCH_NUM,
62}; 63};
63 64
@@ -129,6 +130,139 @@ enum {
129 KTYPE_NUM, 130 KTYPE_NUM,
130}; 131};
131 132
133
134/**
135 * @brief linked list of pages in the search notebook
136 */
137typedef struct SL {
138 struct SL * next;
139 /**
140 * Reference to the glade XML context that was
141 * used to create the search page.
142 */
143 GladeXML * searchXML;
144
145 /**
146 * Reference to the glade XML context that was
147 * used to create the search label.
148 */
149 GladeXML * labelXML;
150
151 /**
152 * Tree view widget that is used to display the
153 * search results.
154 */
155 GtkTreeView * treeview;
156
157 /**
158 * Model of the tree view.
159 */
160 GtkTreeStore * tree;
161
162 /**
163 * The label used in the notebook page.
164 */
165 GtkWidget * tab_label;
166
167 /**
168 * The notebook page that is associated with this
169 * search.
170 */
171 GtkWidget * searchpage;
172
173 /**
174 * Path to the entry in the summary list
175 * for this search.
176 */
177 GtkTreeRowReference * summaryViewRowReference;
178
179 /**
180 * URI for this search.
181 */
182 struct ECRS_URI * uri;
183
184 /**
185 * String describing the search.
186 */
187 char * searchString;
188
189 /**
190 * Number of results received so far.
191 */
192 unsigned int resultsReceived;
193
194 /**
195 * FSUI search handle.
196 */
197 struct FSUI_SearchList * fsui_list;
198} SearchList;
199
200
201typedef struct DL {
202 struct DL * next;
203
204 /**
205 * URI of the download.
206 */
207 struct ECRS_URI * uri;
208
209 /**
210 * Where is the download being saved to?
211 */
212 char * filename;
213
214 /**
215 * Path in the summary view for this download.
216 */
217 GtkTreeRowReference * summaryViewRowReference;
218
219 /**
220 * Search that this download belongs to.
221 * Maybe NULL.
222 */
223 struct SL * searchList;
224
225 /**
226 * Path in the search view that this
227 * download is represented by. Maybe NULL
228 * if search has been closed or if download
229 * was initiated from URI without search.
230 */
231 GtkTreeRowReference * searchViewRowReference;
232
233 /**
234 * FSUI reference for the download.
235 */
236 struct FSUI_DownloadList * fsui_list;
237
238 /**
239 * Total size of the download.
240 */
241 unsigned long long total;
242
243 /**
244 * Is this a GNUnet directory? (by mime-type)
245 */
246 int is_directory;
247
248 int has_terminated;
249
250} DownloadList;
251
132extern struct FSUI_Context * ctx; 252extern struct FSUI_Context * ctx;
133 253
254extern struct GE_Context * ectx;
255
256extern struct GC_Configuration * cfg;
257
258extern SearchList * search_head;
259
260extern DownloadList * download_head;
261
262extern GtkListStore * search_summary;
263
264extern GtkTreeStore * download_summary;
265
266
267
134#endif 268#endif