It seems that the only things left to document are FoobarDetails
[mmediamanager.git] / libmmanager-gtk / mm-gtk-attribute-store.h
blob9f5174deba6cf22710da90e21f90c169044ed17d
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_GTK_ATTRIBUTE_STORE_H__
22 #define __MM_GTK_ATTRIBUTE_STORE_H__
24 #include <glib-object.h>
25 #include <gtk/gtk.h>
27 #include <libmmanager/mm-attribute.h>
28 #include <libmmanager/mm-attribute-manager.h>
30 #define MM_GTK_TYPE_ATTRIBUTE_STORE mm_gtk_attribute_store_get_type()
31 #define MM_GTK_ATTRIBUTE_STORE(obj) \
32 (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_GTK_TYPE_ATTRIBUTE_STORE, MMGtkAttributeStore))
33 #define MM_GTK_ATTRIBUTE_STORE_CLASS(klass) \
34 (G_TYPE_CHECK_CLASS_CAST ((klass), MM_GTK_TYPE_ATTRIBUTE_STORE, MMGtkAttributeStoreClass))
35 #define MM_GTK_IS_ATTRIBUTE_STORE(obj) \
36 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MM_GTK_TYPE_ATTRIBUTE_STORE))
37 #define MM_GTK_IS_ATTRIBUTE_STORE_CLASS(klass) \
38 (G_TYPE_CHECK_CLASS_TYPE ((klass), MM_GTK_TYPE_ATTRIBUTE_STORE))
39 #define MM_GTK_ATTRIBUTE_STORE_GET_CLASS(obj) \
40 (G_TYPE_INSTANCE_GET_CLASS ((obj), MM_GTK_TYPE_ATTRIBUTE_STORE, MMGtkAttributeStoreClass))
42 /**
43 * SECTION:mm-gtk-attribute-store
44 * @short_description: #GtkListStore that holds attributes.
46 * #MMGtkAttributeStore is a #GtkListStore that holds attributes, with one
47 * column for each attribute property.
50 /**
51 * MMGtkAttributeStore:
53 * #GtkListStore implementation to store #MMAttribute structs.
56 typedef struct _MMGtkAttributeStore MMGtkAttributeStore;
57 typedef struct _MMGtkAttributeStoreClass MMGtkAttributeStoreClass;
59 struct _MMGtkAttributeStore {
60 GtkListStore parent;
63 struct _MMGtkAttributeStoreClass {
64 GtkListStoreClass parent_class;
67 enum {
68 MM_GTK_ATTR_STORE_ATTR_COL,
69 MM_GTK_ATTR_STORE_ID_COL,
70 MM_GTK_ATTR_STORE_NAME_COL,
71 MM_GTK_ATTR_STORE_DESC_COL,
72 MM_GTK_ATTR_STORE_GTYPE_COL,
73 MM_GTK_ATTR_STORE_N_COL
76 GType mm_gtk_attribute_store_get_type (void);
77 MMGtkAttributeStore* mm_gtk_attribute_store_new (void);
78 void mm_gtk_attribute_store_add_attribute
79 (MMGtkAttributeStore *self,
80 MMAttribute *attr);
81 void mm_gtk_attribute_store_set_from_attribute_manager
82 (MMGtkAttributeStore *self,
83 MMAttributeManager *attr_manager);
85 #endif /* __MM_GTK_ATTRIBUTE_STORE__ */