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!
17 COLLECTION_LOAD_NONE = 0,
18 COLLECTION_LOAD_APPEND = 1 << 0,
19 COLLECTION_LOAD_FLUSH = 1 << 1,
20 COLLECTION_LOAD_GEOMETRY= 1 << 2,
21 } CollectionLoadFlags;
23 gint collection_load(CollectionData *cd, const gchar *path, CollectionLoadFlags flags);
25 gint collection_load_begin(CollectionData *cd, const gchar *path, CollectionLoadFlags flags);
26 void collection_load_stop(CollectionData *cd);
28 void collection_load_thumb_idle(CollectionData *cd);
30 gint collection_save(CollectionData *cd, const gchar *path);
32 gint collection_load_only_geometry(CollectionData *cd, const gchar *path);
35 /* these are used to update collections contained in user's collection
36 * folder when moving or renaming files.
38 * deletes file when newpath == NULL
39 * adds file when oldpath == NULL
41 void collect_manager_moved(FileData *fd);
43 /* add or removing from a specific collection */
44 void collect_manager_add(FileData *fd, const gchar *collection);
45 void collect_manager_remove(FileData *fd, const gchar *collection);
47 /* commit pending operations to disk */
48 void collect_manager_flush(void);