goa: Add missing linker flag (for real).
[platform/upstream/evolution-data-server.git] / libedataserver / e-source-selectable.h
1 /*
2  * e-source-selectable.h
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) version 3.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with the program; if not, see <http://www.gnu.org/licenses/>
16  *
17  */
18
19 #if !defined (__LIBEDATASERVER_H_INSIDE__) && !defined (LIBEDATASERVER_COMPILATION)
20 #error "Only <libedataserver/libedataserver.h> should be included directly."
21 #endif
22
23 #ifndef E_SOURCE_SELECTABLE_H
24 #define E_SOURCE_SELECTABLE_H
25
26 #include <libedataserver/e-source-backend.h>
27
28 /* Standard GObject macros */
29 #define E_TYPE_SOURCE_SELECTABLE \
30         (e_source_selectable_get_type ())
31 #define E_SOURCE_SELECTABLE(obj) \
32         (G_TYPE_CHECK_INSTANCE_CAST \
33         ((obj), E_TYPE_SOURCE_SELECTABLE, ESourceSelectable))
34 #define E_SOURCE_SELECTABLE_CLASS(cls) \
35         (G_TYPE_CHECK_CLASS_CAST \
36         ((cls), E_TYPE_SOURCE_SELECTABLE, ESourceSelectableClass))
37 #define E_IS_SOURCE_SELECTABLE(obj) \
38         (G_TYPE_CHECK_INSTANCE_TYPE \
39         ((obj), E_TYPE_SOURCE_SELECTABLE))
40 #define E_IS_SOURCE_SELECTABLE_CLASS(cls) \
41         (G_TYPE_CHECK_CLASS_TYPE \
42         ((cls), E_TYPE_SOURCE_SELECTABLE))
43 #define E_SOURCE_SELECTABLE_GET_CLASS(obj) \
44         (G_TYPE_INSTANCE_GET_CLASS \
45         ((obj), E_TYPE_SOURCE_SELECTABLE, ESourceSelectableClass))
46
47 G_BEGIN_DECLS
48
49 typedef struct _ESourceSelectable ESourceSelectable;
50 typedef struct _ESourceSelectableClass ESourceSelectableClass;
51 typedef struct _ESourceSelectablePrivate ESourceSelectablePrivate;
52
53 /**
54  * ESourceSelectable:
55  *
56  * Contains only private data that should be read and manipulated using the
57  * functions below.
58  *
59  * Since: 3.6
60  **/
61 struct _ESourceSelectable {
62         ESourceBackend parent;
63         ESourceSelectablePrivate *priv;
64 };
65
66 struct _ESourceSelectableClass {
67         ESourceBackendClass parent_class;
68 };
69
70 GType           e_source_selectable_get_type    (void) G_GNUC_CONST;
71 const gchar *   e_source_selectable_get_color   (ESourceSelectable *extension);
72 gchar *         e_source_selectable_dup_color   (ESourceSelectable *extension);
73 void            e_source_selectable_set_color   (ESourceSelectable *extension,
74                                                  const gchar *color);
75 gboolean        e_source_selectable_get_selected
76                                                 (ESourceSelectable *extension);
77 void            e_source_selectable_set_selected
78                                                 (ESourceSelectable *extension,
79                                                  gboolean selected);
80
81 G_END_DECLS
82
83 #endif /* E_SOURCE_SELECTABLE_H */