9
|
1 /*
|
|
2 * GQview
|
|
3 * (C) 2004 John Ellis
|
|
4 *
|
|
5 * Author: John Ellis
|
|
6 *
|
|
7 * This software is released under the GNU General Public License (GNU GPL).
|
|
8 * Please read the included file COPYING for more information.
|
|
9 * This software comes with no warranty of any kind, use at your own risk!
|
|
10 */
|
|
11
|
|
12
|
|
13 #ifndef COLLECT_IO_H
|
|
14 #define COLLECT_IO_H
|
|
15
|
|
16
|
|
17 gint collection_load(CollectionData *cd, const gchar *path, gint append);
|
|
18
|
|
19 gint collection_load_begin(CollectionData *cd, const gchar *path, gint append);
|
|
20 void collection_load_stop(CollectionData *cd);
|
|
21
|
|
22 void collection_load_thumb_idle(CollectionData *cd);
|
|
23
|
|
24 gint collection_save(CollectionData *cd, const gchar *path);
|
|
25
|
|
26 gint collection_load_only_geometry(CollectionData *cd, const gchar *path);
|
|
27
|
|
28
|
|
29 /* these are used to update collections contained in user's collection
|
|
30 * folder when moving or renaming files.
|
|
31 * also handles:
|
|
32 * deletes file when newpath == NULL
|
|
33 * adds file when oldpath == NULL
|
|
34 */
|
138
|
35 void collect_manager_moved(FileData *fd);
|
9
|
36
|
|
37 /* add or removing from a specific collection */
|
138
|
38 void collect_manager_add(FileData *fd, const gchar *collection);
|
|
39 void collect_manager_remove(FileData *fd, const gchar *collection);
|
9
|
40
|
|
41 /* commit pending operations to disk */
|
|
42 void collect_manager_flush(void);
|
|
43
|
|
44
|
|
45
|
|
46 #endif
|
|
47
|