Mercurial > geeqie
annotate src/collect-io.h @ 1473:01693e68707b
layout id "_current_" matches the currently active layout window
author | nadvornik |
---|---|
date | Sat, 21 Mar 2009 19:51:07 +0000 |
parents | 3a9fb1b52559 |
children | 956aab097ea7 |
rev | line source |
---|---|
9 | 1 /* |
196 | 2 * Geeqie |
9 | 3 * (C) 2004 John Ellis |
1284 | 4 * Copyright (C) 2008 - 2009 The Geeqie Team |
9 | 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 | |
358 | 17 typedef enum { |
18 COLLECTION_LOAD_NONE = 0, | |
19 COLLECTION_LOAD_APPEND = 1 << 0, | |
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 | 22 } CollectionLoadFlags; |
9 | 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 | 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 | 27 void collection_load_stop(CollectionData *cd); |
28 | |
29 void collection_load_thumb_idle(CollectionData *cd); | |
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 | 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 | 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 */ | |
138 | 42 void collect_manager_moved(FileData *fd); |
9 | 43 |
44 /* add or removing from a specific collection */ | |
138 | 45 void collect_manager_add(FileData *fd, const gchar *collection); |
46 void collect_manager_remove(FileData *fd, const gchar *collection); | |
9 | 47 |
48 /* commit pending operations to disk */ | |
49 void collect_manager_flush(void); | |
50 | |
799 | 51 void collect_manager_notify_cb(FileData *fd, NotifyType type, gpointer data); |
9 | 52 |
53 | |
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: */ |