1 /*
2  * Copyright (C) 2013 Red Hat, Inc
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License as
6  * published by the Free Software Foundation; either version 2 of the
7  * License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, see <http://www.gnu.org/licenses/>.
16  *
17  * Written by:
18  *     Jasper St. Pierre <jstpierre@mecheye.net>
19  *     Matthias Clasen <mclasen@redhat.com>
20  */
21 
22 #ifndef __GIS_INPUT_CHOOSER_H__
23 #define __GIS_INPUT_CHOOSER_H__
24 
25 #include <gtk/gtk.h>
26 #include <glib-object.h>
27 
28 #define CC_TYPE_INPUT_CHOOSER            (cc_input_chooser_get_type ())
29 #define CC_INPUT_CHOOSER(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), CC_TYPE_INPUT_CHOOSER, CcInputChooser))
30 #define CC_INPUT_CHOOSER_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass),  CC_TYPE_INPUT_CHOOSER, CcInputChooserClass))
31 #define CC_IS_INPUT_CHOOSER(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CC_TYPE_INPUT_CHOOSER))
32 #define CC_IS_INPUT_CHOOSER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),  CC_TYPE_INPUT_CHOOSER))
33 #define CC_INPUT_CHOOSER_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj),  CC_TYPE_INPUT_CHOOSER, CcInputChooserClass))
34 
35 G_BEGIN_DECLS
36 
37 typedef struct _CcInputChooser        CcInputChooser;
38 typedef struct _CcInputChooserClass   CcInputChooserClass;
39 
40 struct _CcInputChooser
41 {
42         GtkBox parent;
43 };
44 
45 struct _CcInputChooserClass
46 {
47         GtkBoxClass parent_class;
48 };
49 
50 GType cc_input_chooser_get_type (void);
51 
52 void          cc_input_chooser_clear_filter (CcInputChooser *chooser);
53 const gchar * cc_input_chooser_get_input_id (CcInputChooser  *chooser);
54 const gchar * cc_input_chooser_get_input_type (CcInputChooser  *chooser);
55 void          cc_input_chooser_set_input (CcInputChooser *chooser,
56                                           const gchar    *id,
57                                           const gchar    *type);
58 void	      cc_input_chooser_get_layout (CcInputChooser *chooser,
59 					   const gchar    **layout,
60 					   const gchar    **variant);
61 gboolean      cc_input_chooser_get_showing_extra (CcInputChooser *chooser);
62 
63 G_END_DECLS
64 
65 #endif /* __GIS_INPUT_CHOOSER_H__ */
66