2
* This file is part of the Main Menu.
4
* Copyright (c) 2007 Novell, Inc.
6
* The Main Menu is free software; you can redistribute it and/or modify it
7
* under the terms of the GNU General Public License as published by the Free
8
* Software Foundation; either version 2 of the License, or (at your option)
11
* The Main Menu is distributed in the hope that it will be useful, but WITHOUT
12
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16
* You should have received a copy of the GNU General Public License along with
17
* the Main Menu; if not, write to the Free Software Foundation, Inc., 51
18
* Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21
#ifndef __BOOKMARK_AGENT_H__
22
#define __BOOKMARK_AGENT_H__
25
#include <glib-object.h>
29
#define BOOKMARK_AGENT_TYPE (bookmark_agent_get_type ())
30
#define BOOKMARK_AGENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), BOOKMARK_AGENT_TYPE, BookmarkAgent))
31
#define BOOKMARK_AGENT_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), BOOKMARK_AGENT_TYPE, BookmarkAgentClass))
32
#define IS_BOOKMARK_AGENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), BOOKMARK_AGENT_TYPE))
33
#define IS_BOOKMARK_AGENT_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), BOOKMARK_AGENT_TYPE))
34
#define BOOKMARK_AGENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), BOOKMARK_AGENT_TYPE, BookmarkAgentClass))
36
#define BOOKMARK_AGENT_STORE_STATUS_PROP "store-status"
37
#define BOOKMARK_AGENT_ITEMS_PROP "items"
50
BOOKMARK_STORE_DEFAULT_ONLY,
51
BOOKMARK_STORE_DEFAULT,
54
} BookmarkStoreStatus;
57
BOOKMARK_STORE_USER_APPS = 0,
58
BOOKMARK_STORE_USER_DOCS = 1,
59
BOOKMARK_STORE_USER_DIRS = 2,
60
BOOKMARK_STORE_RECENT_APPS = 3,
61
BOOKMARK_STORE_RECENT_DOCS = 4,
62
BOOKMARK_STORE_SYSTEM = 5,
63
BOOKMARK_STORE_N_TYPES = 6
71
GObjectClass g_object_class;
74
GType bookmark_agent_get_type (void);
76
BookmarkAgent *bookmark_agent_get_instance (BookmarkStoreType type);
77
gboolean bookmark_agent_has_item (BookmarkAgent *this, const gchar *uri);
78
void bookmark_agent_add_item (BookmarkAgent *this, const BookmarkItem *item);
79
void bookmark_agent_move_item (BookmarkAgent *this, const gchar *uri, const gchar *uri_new);
80
void bookmark_agent_remove_item (BookmarkAgent *this, const gchar *uri);
81
void bookmark_agent_reorder_items (BookmarkAgent *this, const gchar **uris);
83
void bookmark_agent_update_from_bookmark_file (BookmarkAgent *this, GBookmarkFile *store);
84
void bookmark_agent_purge_items (BookmarkAgent *this);
86
void bookmark_item_free (BookmarkItem *item);