1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of version 2 of the GNU Lesser General Public
7 * License as published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
20 #if !defined (__LIBEDATASERVER_H_INSIDE__) && !defined (LIBEDATASERVER_COMPILATION)
21 #error "Only <libedataserver/libedataserver.h> should be included directly."
24 #ifndef E_CATEGORIES_H
25 #define E_CATEGORIES_H
27 #include <glib-object.h>
31 GList * e_categories_get_list (void);
33 /* 'unused' parameter was 'color', but it is deprecated now (see bug #308815) */
34 void e_categories_add (const gchar *category,
36 const gchar *icon_file,
38 void e_categories_remove (const gchar *category);
39 gboolean e_categories_exist (const gchar *category);
40 const gchar * e_categories_get_icon_file_for (const gchar *category);
41 void e_categories_set_icon_file_for (const gchar *category,
42 const gchar *icon_file);
43 gboolean e_categories_is_searchable (const gchar *category);
45 void e_categories_register_change_listener
48 void e_categories_unregister_change_listener
54 #endif /* E_CATEGORIES_H */