1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ |
---|
2 | |
---|
3 | /* |
---|
4 | * Nautilus |
---|
5 | * |
---|
6 | * Copyright (C) 1999, 2000 Eazel, Inc. |
---|
7 | * |
---|
8 | * Nautilus is free software; you can redistribute it and/or |
---|
9 | * modify it under the terms of the GNU General Public License as |
---|
10 | * published by the Free Software Foundation; either version 2 of the |
---|
11 | * License, or (at your option) any later version. |
---|
12 | * |
---|
13 | * Nautilus is distributed in the hope that it will be useful, |
---|
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
16 | * General Public License for more details. |
---|
17 | * |
---|
18 | * You should have received a copy of the GNU General Public License |
---|
19 | * along with this program; if not, write to the Free Software |
---|
20 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
21 | * |
---|
22 | * Authors: John Sullivan <sullivan@eazel.com> |
---|
23 | */ |
---|
24 | |
---|
25 | /* nautilus-bookmark-list.h - interface for centralized list of bookmarks. |
---|
26 | */ |
---|
27 | |
---|
28 | #ifndef NAUTILUS_BOOKMARK_LIST_H |
---|
29 | #define NAUTILUS_BOOKMARK_LIST_H |
---|
30 | |
---|
31 | #include <libnautilus-private/nautilus-bookmark.h> |
---|
32 | |
---|
33 | typedef struct NautilusBookmarkList NautilusBookmarkList; |
---|
34 | typedef struct NautilusBookmarkListClass NautilusBookmarkListClass; |
---|
35 | |
---|
36 | #define NAUTILUS_TYPE_BOOKMARK_LIST \ |
---|
37 | (nautilus_bookmark_list_get_type ()) |
---|
38 | #define NAUTILUS_BOOKMARK_LIST(obj) \ |
---|
39 | (GTK_CHECK_CAST ((obj), NAUTILUS_TYPE_BOOKMARK_LIST, NautilusBookmarkList)) |
---|
40 | #define NAUTILUS_BOOKMARK_LIST_CLASS(klass) \ |
---|
41 | (GTK_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_BOOKMARK_LIST, NautilusBookmarkListClass)) |
---|
42 | #define NAUTILUS_IS_BOOKMARK_LIST(obj) \ |
---|
43 | (GTK_CHECK_TYPE ((obj), NAUTILUS_TYPE_BOOKMARK_LIST)) |
---|
44 | #define NAUTILUS_IS_BOOKMARK_LIST_CLASS(klass) \ |
---|
45 | (GTK_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_BOOKMARK_LIST)) |
---|
46 | |
---|
47 | struct NautilusBookmarkList { |
---|
48 | GtkObject object; |
---|
49 | GList *list; |
---|
50 | }; |
---|
51 | |
---|
52 | struct NautilusBookmarkListClass { |
---|
53 | GtkObjectClass parent_class; |
---|
54 | void (* contents_changed) (NautilusBookmarkList *bookmarks); |
---|
55 | }; |
---|
56 | |
---|
57 | GtkType nautilus_bookmark_list_get_type (void); |
---|
58 | NautilusBookmarkList * nautilus_bookmark_list_new (void); |
---|
59 | void nautilus_bookmark_list_append (NautilusBookmarkList *bookmarks, |
---|
60 | NautilusBookmark *bookmark); |
---|
61 | gboolean nautilus_bookmark_list_contains (NautilusBookmarkList *bookmarks, |
---|
62 | NautilusBookmark *bookmark); |
---|
63 | void nautilus_bookmark_list_contents_changed (NautilusBookmarkList *bookmarks); |
---|
64 | void nautilus_bookmark_list_delete_item_at (NautilusBookmarkList *bookmarks, |
---|
65 | guint index); |
---|
66 | void nautilus_bookmark_list_delete_items_with_uri (NautilusBookmarkList *bookmarks, |
---|
67 | const char *uri); |
---|
68 | void nautilus_bookmark_list_insert_item (NautilusBookmarkList *bookmarks, |
---|
69 | NautilusBookmark *bookmark, |
---|
70 | guint index); |
---|
71 | guint nautilus_bookmark_list_length (NautilusBookmarkList *bookmarks); |
---|
72 | NautilusBookmark * nautilus_bookmark_list_item_at (NautilusBookmarkList *bookmarks, |
---|
73 | guint index); |
---|
74 | void nautilus_bookmark_list_set_window_geometry (NautilusBookmarkList *bookmarks, |
---|
75 | const char *geometry); |
---|
76 | const char * nautilus_bookmark_list_get_window_geometry (NautilusBookmarkList *bookmarks); |
---|
77 | |
---|
78 | #endif /* NAUTILUS_BOOKMARK_LIST_H */ |
---|