annotate src/collect-io.h @ 1675:5bb036e67d6d

added script for importing GQView and Geeqie-alpha metadata
author nadvornik
date Sun, 28 Jun 2009 08:32:27 +0000
parents 3a9fb1b52559
children 956aab097ea7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
1 /*
196
f6e307c7bad6 rename GQview -> Geeqie over the code
nadvornik
parents: 138
diff changeset
2 * Geeqie
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
3 * (C) 2004 John Ellis
1284
8b89e3ff286b Add year 2009 to copyright info everywhere.
zas_
parents: 1055
diff changeset
4 * Copyright (C) 2008 - 2009 The Geeqie Team
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
5 *
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
6 * Author: John Ellis
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
7 *
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
8 * This software is released under the GNU General Public License (GNU GPL).
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
9 * Please read the included file COPYING for more information.
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
10 * This software comes with no warranty of any kind, use at your own risk!
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
11 */
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
12
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
13
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
14 #ifndef COLLECT_IO_H
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
15 #define COLLECT_IO_H
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
16
358
384eed18df04 Use flags for collection_load*().
zas_
parents: 196
diff changeset
17 typedef enum {
384eed18df04 Use flags for collection_load*().
zas_
parents: 196
diff changeset
18 COLLECTION_LOAD_NONE = 0,
384eed18df04 Use flags for collection_load*().
zas_
parents: 196
diff changeset
19 COLLECTION_LOAD_APPEND = 1 << 0,
384eed18df04 Use flags for collection_load*().
zas_
parents: 196
diff changeset
20 COLLECTION_LOAD_FLUSH = 1 << 1,
359
96fb24f948b7 Merge collection_load_only_geometry() into collection_load().
zas_
parents: 358
diff changeset
21 COLLECTION_LOAD_GEOMETRY= 1 << 2,
358
384eed18df04 Use flags for collection_load*().
zas_
parents: 196
diff changeset
22 } CollectionLoadFlags;
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
23
1420
3a9fb1b52559 Use gboolean where applicable, for the sake of consistency.
zas_
parents: 1284
diff changeset
24 gboolean collection_load(CollectionData *cd, const gchar *path, CollectionLoadFlags flags);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
25
1420
3a9fb1b52559 Use gboolean where applicable, for the sake of consistency.
zas_
parents: 1284
diff changeset
26 gboolean collection_load_begin(CollectionData *cd, const gchar *path, CollectionLoadFlags flags);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
27 void collection_load_stop(CollectionData *cd);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
28
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
29 void collection_load_thumb_idle(CollectionData *cd);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
30
1420
3a9fb1b52559 Use gboolean where applicable, for the sake of consistency.
zas_
parents: 1284
diff changeset
31 gboolean collection_save(CollectionData *cd, const gchar *path);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
32
1420
3a9fb1b52559 Use gboolean where applicable, for the sake of consistency.
zas_
parents: 1284
diff changeset
33 gboolean collection_load_only_geometry(CollectionData *cd, const gchar *path);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
34
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
35
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
36 /* these are used to update collections contained in user's collection
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
37 * folder when moving or renaming files.
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
38 * also handles:
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
39 * deletes file when newpath == NULL
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
40 * adds file when oldpath == NULL
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
41 */
138
71e1ebee420e replaced gchar* path with FileData *fd
nadvornik
parents: 9
diff changeset
42 void collect_manager_moved(FileData *fd);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
43
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
44 /* add or removing from a specific collection */
138
71e1ebee420e replaced gchar* path with FileData *fd
nadvornik
parents: 9
diff changeset
45 void collect_manager_add(FileData *fd, const gchar *collection);
71e1ebee420e replaced gchar* path with FileData *fd
nadvornik
parents: 9
diff changeset
46 void collect_manager_remove(FileData *fd, const gchar *collection);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
47
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
48 /* commit pending operations to disk */
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
49 void collect_manager_flush(void);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
50
799
278962ba162a use the new notification for collections
nadvornik
parents: 475
diff changeset
51 void collect_manager_notify_cb(FileData *fd, NotifyType type, gpointer data);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
52
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
53
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
54 #endif
1055
1646720364cf Adding a vim modeline to all files - patch by Klaus Ethgen
nadvornik
parents: 799
diff changeset
55 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */