055d7f5bacb38acb9c674f2457a4ac85e0ea8761
[mmediamanager.git] / libmmanager / mm-module-manager.h
blob055d7f5bacb38acb9c674f2457a4ac85e0ea8761
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_MODULE_MANAGER_H__
22 #define __MM_MODULE_MANAGER_H__
24 #include <glib.h>
25 #include <glib-object.h>
27 #include "mm-category-provider.h"
28 #include "mm-hit-collection-provider.h"
29 #include "mm-application-provider.h"
31 #define MM_TYPE_MODULE_MANAGER (mm_module_manager_get_type ())
32 #define MM_MODULE_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
33 MM_TYPE_MODULE_MANAGER, MMModuleManager))
34 #define MM_MODULE_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\
35 MM_TYPE_MODULE_MANAGER, MMModuleManagerClass))
36 #define MM_IS_MODULE_MANAGER(obj) (G_TYPE_INSTANCE_CHECK_TYPE ((obj),\
37 MM_TYPE_MODULE_MANAGER))
38 #define MM_IS_MODULE_MANAGER_CLASS(klass) (G_TYPE_CLASS_CHECK_CLASS_TYPE ((klass),\
39 MM_TYPE_MODULE_MANAGER))
41 typedef struct _MMModuleManager MMModuleManager;
42 typedef struct _MMModuleManagerDetails MMModuleManagerDetails;
43 typedef struct _MMModuleManagerClass MMModuleManagerClass;
45 struct _MMModuleManager {
46 GObject parent_object;
47 MMModuleManagerDetails *details;
50 struct _MMModuleManagerClass {
51 GObjectClass parent_class;
54 /* public methods */
56 GType mm_module_manager_get_type (void);
58 GList * mm_module_manager_get_all_application_providers (MMModuleManager *manager);
59 MMCategoryProvider*
60 mm_module_manager_get_category_provider_for_application (MMModuleManager *manager,
61 const char *id);
62 MMHitCollectionProvider *
63 mm_module_manager_get_hit_collection_provider_for_application (MMModuleManager *manager,
64 const char *id);
66 #endif /* __MM_MODULE_MANAGER_H__ */