c6f73b671505aa17c5283905edd0690f6e224019
[milk] / src / milk-list-store.h
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License as
4  * published by the Free Software Foundation; either version 2 of the
5  * License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10  * General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public
13  * License along with this program; if not, write to the
14  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
15  * Boston, MA  02110-1301  USA
16  *
17  * Authors: Travis Reitter <treitter@gmail.com>
18  */
19
20 #ifndef _MILK_LIST_STORE_H
21 #define _MILK_LIST_STORE_H
22
23 G_BEGIN_DECLS
24
25 #define MILK_TYPE_LIST_STORE milk_list_store_get_type()
26
27 #define MILK_LIST_STORE(obj) \
28     (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
29                                  MILK_TYPE_LIST_STORE, MilkListStore))
30
31 #define MILK_LIST_STORE_CLASS(klass) \
32     (G_TYPE_CHECK_CLASS_CAST ((klass), \
33                               MILK_TYPE_LIST_STORE, MilkListStoreClass))
34
35 #define MILK_IS_LIST_STORE(obj) \
36     (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
37                                  MILK_TYPE_LIST_STORE))
38
39 #define MILK_IS_LIST_STORE_CLASS(klass) \
40     (G_TYPE_CHECK_CLASS_TYPE ((klass), \
41                               MILK_TYPE_LIST_STORE))
42
43 #define MILK_LIST_STORE_GET_CLASS(obj) \
44     (G_TYPE_INSTANCE_GET_CLASS ((obj), \
45                                 MILK_TYPE_LIST_STORE, MilkListStoreClass))
46
47 typedef struct _MilkListStore MilkListStore;
48 typedef struct _MilkListStoreClass MilkListStoreClass;
49 typedef struct _MilkListStorePrivate MilkListStorePrivate;
50
51 typedef enum {
52         MILK_LIST_STORE_COLUMN_TASK,
53         MILK_LIST_STORE_COLUMN_LAST,
54 } OssoABookListStoreColumn;
55
56 struct _MilkListStore
57 {
58     GObject parent;
59     MilkListStorePrivate *priv;
60 };
61
62 struct _MilkListStoreClass
63 {
64     GObjectClass parent_class;
65 };
66
67 GType milk_list_store_get_type (void);
68
69
70 MilkListStore* milk_list_store_new ();
71
72 #endif /* _MILK_LIST_STORE_H */