diff options
Diffstat (limited to 'src/upload.h')
-rw-r--r-- | src/upload.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/src/upload.h b/src/upload.h new file mode 100644 index 00000000..64f11d75 --- /dev/null +++ b/src/upload.h | |||
@@ -0,0 +1,65 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet. | ||
3 | (C) 2005 Christian Grothoff (and other contributing authors) | ||
4 | |||
5 | GNUnet is free software; you can redistribute it and/or modify | ||
6 | it under the terms of the GNU General Public License as published | ||
7 | by the Free Software Foundation; either version 2, or (at your | ||
8 | option) any later version. | ||
9 | |||
10 | GNUnet is distributed in the hope that it will be useful, but | ||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU General Public License | ||
16 | along with GNUnet; see the file COPYING. If not, write to the | ||
17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, | ||
18 | Boston, MA 02111-1307, USA. | ||
19 | */ | ||
20 | |||
21 | /** | ||
22 | * @file src/upload.h | ||
23 | * @brief code for uploading with gnunet-gtk | ||
24 | * @author Christian Grothoff | ||
25 | */ | ||
26 | |||
27 | #ifndef GTK_UPLOAD_H | ||
28 | #define GTK_UPLOAD_H | ||
29 | |||
30 | #include "main.h" | ||
31 | #include "fs.h" | ||
32 | |||
33 | /** | ||
34 | */ | ||
35 | void displayUploadUpdate(const char * mainName, | ||
36 | const char * filename, | ||
37 | unsigned long long completed, | ||
38 | unsigned long long total); | ||
39 | |||
40 | /** | ||
41 | */ | ||
42 | void displayUploadComplete(const char * mainName, | ||
43 | const char * filename, | ||
44 | const struct ECRS_URI * uri); | ||
45 | |||
46 | |||
47 | |||
48 | /** | ||
49 | * Add the given result to the model (upload result | ||
50 | * list). | ||
51 | * @param info the information to add to the model | ||
52 | * @param uri the upload URI | ||
53 | * @param path the tree path that selects where to add | ||
54 | * the information, NULL for top-level | ||
55 | */ | ||
56 | void displayUploadResult(const ECRS_FileInfo * info, | ||
57 | const struct ECRS_URI * uri, | ||
58 | GtkTreeRowReference * row); | ||
59 | |||
60 | |||
61 | void fs_upload_start(void); | ||
62 | |||
63 | void fs_upload_stop(void); | ||
64 | |||
65 | #endif | ||