diff options
author | zhuyaliang <[email protected]> | 2023-10-25 21:43:03 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2023-11-05 12:00:50 +0100 |
commit | c2e94e1925f3c7acfa3fd3352dc8fdafe6375adc (patch) | |
tree | 3ba609bf57b7bb3eab18d35d78bd1dc86773fba6 /libslab/bookmark-agent.h | |
parent | 23fc7b675ebac7a9b02257a31203974d72f584b1 (diff) | |
download | mate-control-center-c2e94e1925f3c7acfa3fd3352dc8fdafe6375adc.tar.bz2 mate-control-center-c2e94e1925f3c7acfa3fd3352dc8fdafe6375adc.tar.xz |
Remove libslab library
libslab is only used in mate-c-c and there is no need to provide a library
Diffstat (limited to 'libslab/bookmark-agent.h')
-rw-r--r-- | libslab/bookmark-agent.h | 98 |
1 files changed, 0 insertions, 98 deletions
diff --git a/libslab/bookmark-agent.h b/libslab/bookmark-agent.h deleted file mode 100644 index f54415bf..00000000 --- a/libslab/bookmark-agent.h +++ /dev/null @@ -1,98 +0,0 @@ -/* - * This file is part of the Main Menu. - * - * Copyright (c) 2007 Novell, Inc. - * - * The Main Menu is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the Free - * Software Foundation; either version 2 of the License, or (at your option) - * any later version. - * - * The Main Menu is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along with - * the Main Menu; if not, write to the Free Software Foundation, Inc., 51 - * Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef __BOOKMARK_AGENT_H__ -#define __BOOKMARK_AGENT_H__ - -#include <glib.h> -#include <glib-object.h> - -#if !GLIB_CHECK_VERSION(2,66,0) -#include <time.h> -#endif - -G_BEGIN_DECLS - -#define BOOKMARK_AGENT_TYPE (bookmark_agent_get_type ()) -#define BOOKMARK_AGENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), BOOKMARK_AGENT_TYPE, BookmarkAgent)) -#define BOOKMARK_AGENT_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), BOOKMARK_AGENT_TYPE, BookmarkAgentClass)) -#define IS_BOOKMARK_AGENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), BOOKMARK_AGENT_TYPE)) -#define IS_BOOKMARK_AGENT_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), BOOKMARK_AGENT_TYPE)) -#define BOOKMARK_AGENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), BOOKMARK_AGENT_TYPE, BookmarkAgentClass)) - -#define BOOKMARK_AGENT_STORE_STATUS_PROP "store-status" -#define BOOKMARK_AGENT_ITEMS_PROP "items" - -typedef struct { - gchar *uri; - gchar *title; - gchar *mime_type; -#if GLIB_CHECK_VERSION(2,66,0) - GDateTime *mtime; -#else - time_t mtime; -#endif - gchar *icon; - gchar *app_name; - gchar *app_exec; -} BookmarkItem; - -typedef enum { - BOOKMARK_STORE_DEFAULT_ONLY, - BOOKMARK_STORE_DEFAULT, - BOOKMARK_STORE_USER, - BOOKMARK_STORE_ABSENT -} BookmarkStoreStatus; - -typedef enum { - BOOKMARK_STORE_USER_APPS = 0, - BOOKMARK_STORE_USER_DOCS = 1, - BOOKMARK_STORE_USER_DIRS = 2, - BOOKMARK_STORE_RECENT_APPS = 3, - BOOKMARK_STORE_RECENT_DOCS = 4, - BOOKMARK_STORE_SYSTEM = 5, - BOOKMARK_STORE_N_TYPES = 6 -} BookmarkStoreType; - -typedef struct { - GObject g_object; -} BookmarkAgent; - -typedef struct { - GObjectClass g_object_class; -} BookmarkAgentClass; - -GType bookmark_agent_get_type (void); - -BookmarkAgent *bookmark_agent_get_instance (BookmarkStoreType type); -gboolean bookmark_agent_has_item (BookmarkAgent *this, const gchar *uri); -void bookmark_agent_add_item (BookmarkAgent *this, const BookmarkItem *item); -void bookmark_agent_move_item (BookmarkAgent *this, const gchar *uri, const gchar *uri_new); -void bookmark_agent_remove_item (BookmarkAgent *this, const gchar *uri); -void bookmark_agent_reorder_items (BookmarkAgent *this, const gchar **uris); - -void bookmark_agent_update_from_bookmark_file (BookmarkAgent *this, GBookmarkFile *store); -void bookmark_agent_purge_items (BookmarkAgent *this); - -void bookmark_item_free (BookmarkItem *item); - -G_END_DECLS - -#endif /* __BOOKMARK_AGENT_H__ */ |