b5e9826d9cf6b4911f4f73aa1ad6458bb8e95da7
[slovak-l10n] / ukeyboard / cpanel / prefs.h
1 /*
2  *  Copyright (c) 2008 Jiri Benc <jbenc@upir.cz>
3  *
4  *  This program is free software; you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License version 2 as
6  *  published by the Free Software Foundation.
7  *
8  *  This program is distributed in the hope that it will be useful,
9  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  *  GNU General Public License for more details.
12  *
13  *  You should have received a copy of the GNU General Public License
14  *  along with this program; if not, write to the Free Software
15  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
16  */
17
18 #ifndef _PREFS_H
19 #define _PREFS_H
20
21 #ifdef HAVE_MAEMO5
22 #define _HL(str) dgettext("hildon-libs",str)
23 #endif
24
25 struct prefs {
26         GtkWidget *(*start)(GConfClient *, GtkWidget *, void **);
27         void (*action)(GConfClient *, void *);
28         void (*stop)(GConfClient *, void *);
29         char *name;
30 };
31
32 typedef void (*init_func)(struct prefs *);
33
34 extern gboolean internal_kbd;
35
36 gboolean get_bool(GConfClient *client, char *key);
37 void set_bool(GConfClient *client, char *key, gboolean val);
38 gint get_int(GConfClient *client, char *key);
39 void set_int(GConfClient *client, char *key, gint val);
40 gchar *get_str(GConfClient *client, char *key);
41 void set_str(GConfClient *client, char *key, gchar *val);
42
43 #endif