Add doc files to dist and fix version number in NEWS.
[mmediamanager.git] / libmmanager-gtk / mm-gtk-hit-store.h
blob8a295dd893ed1cb4c968938ac1a054f8868d90e6
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_HIT_STORE_H__
22 #define __MM_GTK_HIT_STORE_H__
24 #include <libmmanager/mm-hit-collection.h>
26 #include <glib-object.h>
27 #include <gtk/gtk.h>
29 #define MM_GTK_TYPE_HIT_STORE mm_gtk_hit_store_get_type()
30 #define MM_GTK_HIT_STORE(obj) \
31 (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_GTK_TYPE_HIT_STORE, MMGtkHitStore))
32 #define MM_GTK_HIT_STORE_CLASS(klass) \
33 (G_TYPE_CHECK_CLASS_CAST ((klass), MM_GTK_TYPE_HIT_STORE, MMGtkHitStoreClass))
34 #define MM_GTK_IS_HIT_STORE(obj) \
35 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MM_GTK_TYPE_HIT_STORE))
36 #define MM_GTK_IS_HIT_STORE_CLASS(klass) \
37 (G_TYPE_CHECK_CLASS_TYPE ((klass), MM_GTK_TYPE_HIT_STORE))
38 #define MM_GTK_HIT_STORE_GET_CLASS(obj) \
39 (G_TYPE_INSTANCE_GET_CLASS ((obj), MM_GTK_TYPE_HIT_STORE, MMGtkHitStoreClass))
41 /**
42 * SECTION:mm-gtk-hit-store
43 * @short_description: stores #MMHit objects.
45 * #MMGtkHitStore is a #GtkListStore which holds #MMHit objects.
48 /**
49 * MMGtkHitStore:
51 * A #GtkListStore holding #MMHit<!-- -->s.
54 typedef struct _MMGtkHitStore MMGtkHitStore;
55 typedef struct _MMGtkHitStoreClass MMGtkHitStoreClass;
57 struct _MMGtkHitStore {
58 GtkListStore parent;
61 struct _MMGtkHitStoreClass {
62 GtkListStoreClass parent_class;
65 enum {
66 MM_GTK_HIT_STORE_HIT_COL,
67 MM_GTK_HIT_STORE_FILE_COL,
68 MM_GTK_HIT_STORE_NAME_COL,
69 MM_GTK_HIT_STORE_ICON_COL,
70 MM_GTK_HIT_STORE_N_COL
73 GType mm_gtk_hit_store_get_type (void);
74 MMGtkHitStore* mm_gtk_hit_store_new (void);
75 void mm_gtk_hit_store_set_collection (MMGtkHitStore *self,
76 MMHitCollection *collection);
78 #endif /* __MM_GTK_HIT_STORE_H__ */