It seems that the only things left to document are FoobarDetails
[mmediamanager.git] / libmmanager-gtk / mm-gtk-application-store.h
blobb2fbb41406d5e91aa90581fd72728f89ca1ae176
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_APPLICATION_STORE__
22 #define __MM_GTK_APPLICATION_STORE__
24 #include <glib-object.h>
25 #include <gtk/gtk.h>
27 #define MM_GTK_TYPE_APPLICATION_STORE mm_gtk_application_store_get_type()
28 #define MM_GTK_APPLICATION_STORE(obj) \
29 (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_GTK_TYPE_APPLICATION_STORE, MMGtkApplicationStore))
30 #define MM_GTK_APPLICATION_STORE_CLASS(klass) \
31 (G_TYPE_CHECK_CLASS_CAST ((klass), MM_GTK_TYPE_APPLICATION_STORE, MMGtkApplicationStoreClass))
32 #define MM_GTK_IS_APPLICATION_STORE(obj) \
33 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MM_GTK_TYPE_APPLICATION_STORE))
34 #define MM_GTK_IS_APPLICATION_STORE_CLASS(klass) \
35 (G_TYPE_CHECK_CLASS_TYPE ((klass), MM_GTK_TYPE_APPLICATION_STORE))
36 #define MM_GTK_APPLICATION_STORE_GET_CLASS(obj) \
37 (G_TYPE_INSTANCE_GET_CLASS ((obj), MM_GTK_TYPE_APPLICATION_STORE, MMGtkApplicationStoreClass))
39 /**
40 * SECTION:mm-gtk-application-store
41 * @short_description: a #GtkListStore to hold applications.
43 * #MMGtkApplicationStore is a #GtkTreeStore subclass, which holds
44 * #MMApplicationType, #MMApplication and #MMCategory objects respectively
45 * at depth 0, 1 and 2.
48 /**
49 * MMGtkApplicationStore:
51 * A #GtkTreeStore which holds libmmanager basic objects.
54 typedef struct _MMGtkApplicationStore MMGtkApplicationStore;
55 typedef struct _MMGtkApplicationStoreClass MMGtkApplicationStoreClass;
57 struct _MMGtkApplicationStore {
58 GtkTreeStore parent;
61 struct _MMGtkApplicationStoreClass {
62 GtkTreeStoreClass parent_class;
65 enum {
66 MM_GTK_APP_STORE_TYPE_COLUMN,
67 MM_GTK_APP_STORE_APP_COLUMN,
68 MM_GTK_APP_STORE_CAT_COLUMN,
69 MM_GTK_APP_STORE_GICON_COLUMN,
70 MM_GTK_APP_STORE_NAME_COLUMN,
71 MM_GTK_APP_STORE_N_COLUMNS
74 GType mm_gtk_application_store_get_type (void);
75 MMGtkApplicationStore* mm_gtk_application_store_new (void);
77 #endif /* _MM_GTK_APPLICATION_STORE */