Keep on documenting objects.
[mmediamanager.git] / src / mm-dbus-manager.h
blob73c5fc43588fcc5036100848407009941add5564
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_MANAGER_H__
22 #define __MM_DBUS_MANAGER_H__
24 #include <glib-object.h>
25 #include <glib.h>
26 #include <dbus/dbus-glib.h>
28 #define MM_TYPE_DBUS_MANAGER mm_dbus_manager_get_type()
29 #define MM_DBUS_MANAGER(obj) \
30 (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_TYPE_DBUS_MANAGER, MMDBusManager))
31 #define MM_DBUS_MANAGER_CLASS(klass) \
32 (G_TYPE_CHECK_CLASS_CAST ((klass), MM_TYPE_DBUS_MANAGER, MMDBusManagerClass))
33 #define MM_IS_DBUS_MANAGER(obj) \
34 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MM_TYPE_DBUS_MANAGER))
35 #define MM_IS_DBUS_MANAGER_CLASS(klass) \
36 (G_TYPE_CHECK_CLASS_TYPE ((klass), MM_TYPE_DBUS_MANAGER))
37 #define MM_DBUS_MANAGER_GET_CLASS(obj) \
38 (G_TYPE_INSTANCE_GET_CLASS ((obj), MM_TYPE_DBUS_MANAGER, MMDBusManagerClass))
40 typedef struct _MMDBusManager MMDBusManager;
41 typedef struct _MMDBusManagerClass MMDBusManagerClass;
42 typedef struct _MMDBusManagerDetails MMDBusManagerDetails;
44 /* paths */
45 #define MM_DBUS_PATH "/org/gnome/MediaManager"
46 #define MM_DBUS_MANAGER_PATH MM_DBUS_PATH "/Manager"
48 struct _MMDBusManager {
49 GObject parent;
50 MMDBusManagerDetails *details;
53 struct _MMDBusManagerClass {
54 GObjectClass parent_class;
57 /* public methods */
59 GType mm_dbus_manager_get_type (void);
61 #endif /* __MM_DBUS_MANAGER_H__ */