Keep on documenting objects.
[mmediamanager.git] / libmmanager / mm-attribute-base-manager.h
blob61c46b7f89e4e24c38c7be00c83f03341e158e53
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_ATTRIBUTE_BASE_MANAGER_H__
22 #define __MM_ATTRIBUTE_BASE_MANAGER_H__
24 #include "mm-attribute-manager.h"
25 #include "mm-base-attributes.h"
26 #include <glib.h>
27 #include <glib-object.h>
29 #define MM_TYPE_ATTRIBUTE_BASE_MANAGER (mm_attribute_base_manager_get_type())
30 #define MM_ATTRIBUTE_BASE_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
31 MM_TYPE_ATTRIBUTE_BASE_MANAGER, MMAttributeBaseManager))
32 #define MM_ATTRIBUTE_BASE_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\
33 MM_TYPE_ATTRIBUTE_BASE_MANAGER, MMAttributeBaseManagerClass))
34 #define MM_IS_ATTRIBUTE_BASE_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),\
35 MM_TYPE_ATTRIBUTE_BASE_MANAGER))
36 #define MM_IS_ATTRIBUTE_BASE_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj),\
37 MM_TYPE_ATTRIBUTE_BASE_MANAGER))
38 #define MM_ATTRIBUTE_BASE_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),\
39 MM_TYPE_ATTRIBUTE_BASE_MANAGER, MMAttributeBaseManagerClass))
41 /**
42 * SECTION:mm-attribute-base-manager
43 * @short_description: manager implementation for base attributes.
45 * Implementation of a #MMAttributeManager for basic attributes. Currently the
46 * only supported attributes are "uri" and "name", but this could be easily
47 * extended with basically no effort. The #MMAttribute<!-- -->s managed by
48 * #MMAttributeBaseManager have the prefix "base" in their id.
51 /**
52 * MMAttributeBaseManager:
54 * An implementation of the #MMAttributeMangaer interface for basic attributes.
57 typedef struct _MMAttributeBaseManager MMAttributeBaseManager;
58 typedef struct _MMAttributeBaseManagerClass MMAttributeBaseManagerClass;
60 struct _MMAttributeBaseManager {
61 GObject parent;
64 struct _MMAttributeBaseManagerClass {
65 GObjectClass parent_class;
68 /* public methods */
70 GType mm_attribute_base_manager_get_type (void);
71 MMAttributeManager * mm_attribute_base_manager_get (void);
73 #endif /* __MM_ATTRIBUTE_BASE_MANAGER_H__ */