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_H__
22 #define __MM_CATEGORY_H__
25 #include "mm-hit-collection.h"
27 #define MM_TYPE_CATEGORY (mm_category_get_type())
28 #define MM_CATEGORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
29 MM_TYPE_CATEGORY, MMCategory))
30 #define MM_CATEGORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\
31 MM_TYPE_CATEGORY, MMCategoryClass))
32 #define MM_IS_CATEGORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\
34 #define MM_IS_CATEGORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj),\
36 #define MM_CATEGORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),\
37 MM_TYPE_CATEGORY, MMCategoryClass))
39 typedef struct _MMCategory MMCategory
;
40 typedef struct _MMCategoryDetails MMCategoryDetails
;
41 typedef struct _MMCategoryClass MMCategoryClass
;
44 GObject parent_object
;
45 MMCategoryDetails
*details
;
48 struct _MMCategoryClass
{
49 GObjectClass parent_class
;
52 MMCategory
* mm_category_new (const char *name
,
54 /* return the icon of the category */
55 GIcon
* mm_category_get_icon (MMCategory
*category
);
56 /* return the name of the category */
57 char* mm_category_get_name (MMCategory
*category
);
58 /* return a collection of hits inside the category for the given filter */
59 MMHitCollection
* mm_category_get_hits (MMCategory
*category
,
62 #endif /* __MM_CATEGORY_H__ */