1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ |
---|
2 | /* gnome-vfs-directory-list.h - Support for directory lists in the |
---|
3 | GNOME Virtual File System. |
---|
4 | |
---|
5 | Copyright (C) 1999 Free Software Foundation |
---|
6 | |
---|
7 | The Gnome Library is free software; you can redistribute it and/or |
---|
8 | modify it under the terms of the GNU Library General Public License as |
---|
9 | published by the Free Software Foundation; either version 2 of the |
---|
10 | License, or (at your option) any later version. |
---|
11 | |
---|
12 | The Gnome Library 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 GNU |
---|
15 | Library General Public License for more details. |
---|
16 | |
---|
17 | You should have received a copy of the GNU Library General Public |
---|
18 | License along with the Gnome Library; see the file COPYING.LIB. If not, |
---|
19 | write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
---|
20 | Boston, MA 02111-1307, USA. |
---|
21 | |
---|
22 | Author: Ettore Perazzoli <ettore@comm2000.it> */ |
---|
23 | |
---|
24 | #ifndef _GNOME_VFS_DIRECTORY_LIST_H |
---|
25 | #define _GNOME_VFS_DIRECTORY_LIST_H |
---|
26 | |
---|
27 | |
---|
28 | GnomeVFSDirectoryList * |
---|
29 | gnome_vfs_directory_list_new (void); |
---|
30 | void gnome_vfs_directory_list_destroy (GnomeVFSDirectoryList *list); |
---|
31 | void gnome_vfs_directory_list_prepend (GnomeVFSDirectoryList *list, |
---|
32 | GnomeVFSFileInfo *info); |
---|
33 | void gnome_vfs_directory_list_append (GnomeVFSDirectoryList *list, |
---|
34 | GnomeVFSFileInfo *info); |
---|
35 | |
---|
36 | void gnome_vfs_directory_list_filter (GnomeVFSDirectoryList *list, |
---|
37 | GnomeVFSDirectoryFilter |
---|
38 | *filter); |
---|
39 | |
---|
40 | void gnome_vfs_directory_list_sort (GnomeVFSDirectoryList *list, |
---|
41 | gboolean reversed, |
---|
42 | const GnomeVFSDirectorySortRule |
---|
43 | *rules); |
---|
44 | void gnome_vfs_directory_list_sort_custom (GnomeVFSDirectoryList *list, |
---|
45 | GnomeVFSDirectorySortFunc |
---|
46 | compare_func, |
---|
47 | gpointer data); |
---|
48 | |
---|
49 | GnomeVFSFileInfo * |
---|
50 | gnome_vfs_directory_list_first (GnomeVFSDirectoryList *list); |
---|
51 | GnomeVFSFileInfo * |
---|
52 | gnome_vfs_directory_list_next (GnomeVFSDirectoryList *list); |
---|
53 | GnomeVFSFileInfo * |
---|
54 | gnome_vfs_directory_list_prev (GnomeVFSDirectoryList *list); |
---|
55 | GnomeVFSFileInfo * |
---|
56 | gnome_vfs_directory_list_last (GnomeVFSDirectoryList *list); |
---|
57 | GnomeVFSFileInfo * |
---|
58 | gnome_vfs_directory_list_current (GnomeVFSDirectoryList *list); |
---|
59 | GnomeVFSFileInfo * |
---|
60 | gnome_vfs_directory_list_nth (GnomeVFSDirectoryList *list, |
---|
61 | guint n); |
---|
62 | |
---|
63 | GnomeVFSFileInfo * |
---|
64 | gnome_vfs_directory_list_get (GnomeVFSDirectoryList *list, |
---|
65 | GnomeVFSDirectoryListPosition |
---|
66 | position); |
---|
67 | |
---|
68 | guint gnome_vfs_directory_list_get_num_entries |
---|
69 | (GnomeVFSDirectoryList *list); |
---|
70 | |
---|
71 | GnomeVFSDirectoryListPosition |
---|
72 | gnome_vfs_directory_list_get_position (GnomeVFSDirectoryList *list); |
---|
73 | void gnome_vfs_directory_list_set_position (GnomeVFSDirectoryList *list, |
---|
74 | GnomeVFSDirectoryListPosition |
---|
75 | position); |
---|
76 | GnomeVFSDirectoryListPosition |
---|
77 | gnome_vfs_directory_list_get_last_position |
---|
78 | (GnomeVFSDirectoryList *list); |
---|
79 | GnomeVFSDirectoryListPosition |
---|
80 | gnome_vfs_directory_list_get_first_position |
---|
81 | (GnomeVFSDirectoryList *list); |
---|
82 | |
---|
83 | GnomeVFSDirectoryListPosition |
---|
84 | gnome_vfs_directory_list_position_next (GnomeVFSDirectoryListPosition |
---|
85 | position); |
---|
86 | GnomeVFSDirectoryListPosition |
---|
87 | gnome_vfs_directory_list_position_prev (GnomeVFSDirectoryListPosition |
---|
88 | position); |
---|
89 | |
---|
90 | GnomeVFSResult gnome_vfs_directory_list_load |
---|
91 | (GnomeVFSDirectoryList **list, |
---|
92 | const gchar *uri, |
---|
93 | GnomeVFSFileInfoOptions options, |
---|
94 | const GnomeVFSDirectoryFilter *filter); |
---|
95 | GnomeVFSResult gnome_vfs_directory_list_load_from_uri |
---|
96 | (GnomeVFSDirectoryList **list, |
---|
97 | GnomeVFSURI *uri, |
---|
98 | GnomeVFSFileInfoOptions options, |
---|
99 | const GnomeVFSDirectoryFilter *filter); |
---|
100 | |
---|
101 | #endif /* _GNOME_VFS_DIRECTORY_LIST_H */ |
---|