Pass distcheck! \o/
[mmediamanager.git] / libmmanager / mm-dbus-category.h
blob6665d3180f0a12288f324cc8da56cf995a8b3e2b
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_DBUS_CATEGORY_H__
22 #define __MM_DBUS_CATEGORY_H__
24 #include <glib.h>
25 #include <glib-object.h>
26 #include "mm-dbus-application.h"
27 #include "mm-category.h"
29 #define MM_TYPE_DBUS_CATEGORY (mm_dbus_category_get_type())
30 #define MM_DBUS_CATEGORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
31 MM_TYPE_DBUS_CATEGORY, MMDBusCategory))
32 #define MM_DBUS_CATEGORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\
33 MM_TYPE_DBUS_CATEGORY, MMDBusCategoryClass))
34 #define MM_IS_DBUS_CATEGORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\
35 MM_TYPE_DBUS_CATEGORY))
36 #define MM_IS_DBUS_CATEGORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj),\
37 MM_TYPE_DBUS_CATEGORY))
38 #define MM_DBUS_CATEGORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),\
39 MM_TYPE_DBUS_CATEGORY, MMDBusCategoryClass))
41 /**
42 * SECTION:mm-dbus-category
43 * @short_description: DBus implementation of #MMCategory.
45 * A #MMDBusCategory is an implementation of #MMCategory for categories
46 * using the DBus interface of the library.
49 /**
50 * MMDBusCategory:
52 * A DBus implementation of a #MMCategory.
55 typedef struct _MMDBusCategory MMDBusCategory;
57 /**
58 * MMDBusCategoryClass:
60 * Class of #MMDBusCategory objects.
63 typedef struct _MMDBusCategoryClass MMDBusCategoryClass;
65 struct _MMDBusCategory {
66 MMCategory parent;
69 struct _MMDBusCategoryClass {
70 MMCategoryClass parent_class;
73 /* public methods */
74 GType mm_dbus_category_get_type (void);
75 MMCategory* mm_dbus_category_new (MMDBusApplication *app,
76 const char *name,
77 GIcon *icon);
78 #endif /* __MM_DBUS_CATEGORY_H__ */