4 * Copyright (C) 2008 - 2012 The Geeqie Team
8 * This software is released under the GNU General Public License (GNU GPL).
9 * Please read the included file COPYING for more information.
10 * This software comes with no warranty of any kind, use at your own risk!
18 COLLECTION_LOAD_NONE = 0,
19 COLLECTION_LOAD_APPEND = 1 << 0,
20 COLLECTION_LOAD_FLUSH = 1 << 1,
21 COLLECTION_LOAD_GEOMETRY= 1 << 2,
22 } CollectionLoadFlags;
24 gboolean collection_load(CollectionData *cd, const gchar *path, CollectionLoadFlags flags);
26 gboolean collection_load_begin(CollectionData *cd, const gchar *path, CollectionLoadFlags flags);
27 void collection_load_stop(CollectionData *cd);
29 void collection_load_thumb_idle(CollectionData *cd);
31 gboolean collection_save(CollectionData *cd, const gchar *path);
33 gboolean collection_load_only_geometry(CollectionData *cd, const gchar *path);
36 /* these are used to update collections contained in user's collection
37 * folder when moving or renaming files.
39 * deletes file when newpath == NULL
40 * adds file when oldpath == NULL
42 void collect_manager_moved(FileData *fd);
44 /* add or removing from a specific collection */
45 void collect_manager_add(FileData *fd, const gchar *collection);
46 void collect_manager_remove(FileData *fd, const gchar *collection);
48 /* commit pending operations to disk */
49 void collect_manager_flush(void);
51 void collect_manager_notify_cb(FileData *fd, NotifyType type, gpointer data);
55 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */