Add interface for the DBus module.
[mmediamanager.git] / src / mm-manager.h
blobb682943442ba787c584203c56c84f8c44ff5c3ba
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_MANAGER_H__
22 #define __MM_MANAGER_H__
24 #include <glib.h>
25 #include "mm-types.h"
26 #include "mm-application-provider.h"
27 #include "mm-module-manager.h"
29 #define MM_TYPE_MANAGER (mm_manager_get_type())
30 #define MM_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
31 MM_TYPE_MANAGER, MMManager))
32 #define MM_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\
33 MM_TYPE_MANAGER, MMManagerClass))
34 #define MM_IS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\
35 MM_TYPE_MANAGER))
36 #define MM_IS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj),\
37 MM_TYPE_MANAGER))
38 #define MM_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),\
39 MM_TYPE_MANAGER, MMManagerClass))
41 typedef struct _MMManager MMManager;
42 typedef struct _MMManagerDetails MMManagerDetails;
43 typedef struct _MMManagerClass MMManagerClass;
45 struct _MMManager {
46 GObject parent_object;
47 MMManagerDetails *details;
50 struct _MMManagerClass {
51 GObjectClass parent_class;
54 /* public methods */
55 MMManager* mm_manager_get (void);
56 GType mm_manager_get_type (void);
58 /* return a list of the registered applications for the specified types */
59 GList* mm_manager_get_application_list_for_type (MMManager *manager,
60 MMApplicationType type);
61 GList* mm_manager_get_application_list (MMManager *manager);
62 MMApplicationProvider *
63 mm_manager_get_application_provider_for_application (MMManager *manager,
64 MMApplication *app);
65 MMModuleManager *mm_manager_get_module_manager (MMManager *manager);
67 #endif /* __MM_MANAGER_H__ */