2 * Copyright (C) 2004 John Ellis
3 * Copyright (C) 2008 - 2016 The Geeqie Team
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 COLLECTION_LOAD_NONE = 0,
27 COLLECTION_LOAD_APPEND = 1 << 0,
28 COLLECTION_LOAD_FLUSH = 1 << 1,
29 COLLECTION_LOAD_GEOMETRY= 1 << 2,
30 } CollectionLoadFlags;
32 gboolean collection_load(CollectionData *cd, const gchar *path, CollectionLoadFlags flags);
34 gboolean collection_load_begin(CollectionData *cd, const gchar *path, CollectionLoadFlags flags);
35 void collection_load_stop(CollectionData *cd);
37 void collection_load_thumb_idle(CollectionData *cd);
39 gboolean collection_save(CollectionData *cd, const gchar *path);
41 gboolean collection_load_only_geometry(CollectionData *cd, const gchar *path);
44 /* these are used to update collections contained in user's collection
45 * folder when moving or renaming files.
47 * deletes file when newpath == NULL
48 * adds file when oldpath == NULL
50 void collect_manager_moved(FileData *fd);
52 /* add or removing from a specific collection */
53 void collect_manager_add(FileData *fd, const gchar *collection);
54 void collect_manager_remove(FileData *fd, const gchar *collection);
56 /* commit pending operations to disk */
57 void collect_manager_flush(void);
59 void collect_manager_notify_cb(FileData *fd, NotifyType type, gpointer data);
63 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */