Implement mm_category_get_hits
[mmediamanager.git] / src / mm-category-provider.h
blob3f70a541858f7f139278d6f2a090e31f4c76b9e8
1 /* MManager - a Desktop wide manager for multimedia applications.
3 * Copyright (C) 2008 Cosimo Cecchi <cosimoc@gnome.org>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #ifndef __MM_CATEGORY_PROVIDER_H__
22 #define __MM_CATEGORY_PROVIDER_H__
24 #include <glib-object.h>
26 #define MM_TYPE_CATEGORY_PROVIDER (mm_application_provider_get_type ())
27 #define MM_CATEGORY_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
28 MM_TYPE_CATEGORY_PROVIDER, MMCategoryProvider))
29 #define MM_IS_CATEGORY_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\
30 MM_TYPE_CATEGORY_PROVIDER))
31 #define MM_CATEGORY_PROVIDER_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj),\
32 MM_TYPE_CATEGORY_PROVIDER, MMCategoryProviderIface))
34 typedef struct _MMCategoryProvider MMCategoryProvider;
35 typedef struct _MMCategoryProviderIface MMCategoryProviderIface;
37 struct _MMCategoryProviderIface {
38 GTypeInterface interface;
40 GList* (* get_categories) (MMCategoryProvider *provider,
41 MMApplication *app);
44 /* Interface functions */
45 GType mm_category_provider_get_type (void);
46 GList* mm_category_provider_get_categories (MMCategoryProvider *provider,
47 MMApplication *app);
49 #endif /* __MM_CATEGORY_PROVIDER_H__ */