Remove commented out code.
[geeqie.git] / src / collect-io.h
1 /*
2  * Geeqie
3  * (C) 2004 John Ellis
4  * Copyright (C) 2008 - 2012 The Geeqie Team
5  *
6  * Author: John Ellis
7  *
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!
11  */
12
13
14 #ifndef COLLECT_IO_H
15 #define COLLECT_IO_H
16
17 typedef enum {
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;
23
24 gboolean collection_load(CollectionData *cd, const gchar *path, CollectionLoadFlags flags);
25
26 gboolean collection_load_begin(CollectionData *cd, const gchar *path, CollectionLoadFlags flags);
27 void collection_load_stop(CollectionData *cd);
28
29 void collection_load_thumb_idle(CollectionData *cd);
30
31 gboolean collection_save(CollectionData *cd, const gchar *path);
32
33 gboolean collection_load_only_geometry(CollectionData *cd, const gchar *path);
34
35
36 /* these are used to update collections contained in user's collection
37  * folder when moving or renaming files.
38  * also handles:
39  *   deletes file when newpath == NULL
40  *   adds file when oldpath == NULL
41  */
42 void collect_manager_moved(FileData *fd);
43
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);
47
48 /* commit pending operations to disk */
49 void collect_manager_flush(void);
50
51 void collect_manager_notify_cb(FileData *fd, NotifyType type, gpointer data);
52
53
54 #endif
55 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */