GConf backend for settings
[tunertool] / src / settings.h
1 /* vim: set sts=2 sw=2 et: */
2 /*
3  * Copyright (C) 2008 Jari Tenhunen <jari.tenhunen@iki.fi>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library 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.
9  *
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  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library 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.
19  */
20
21 #ifndef __SETTINGS_H__
22 #define __SETTINGS_H__
23
24 #include <gconf/gconf-client.h>
25
26 #define GCONF_ROOT "/apps/tuner"
27 #define GCONF_KEY_ALGORITHM GCONF_ROOT "/algorithm"
28 #define GCONF_KEY_CALIBRATION GCONF_ROOT "/calibration"
29 #define GCONF_KEY_DISPLAY_KEEPALIVE GCONF_ROOT "/display_keepalive"
30
31 gint settings_get_algorithm (gint default_value);
32 gint settings_get_calibration (gint default_value);
33 gboolean settings_set_calibration (gint value);
34 gboolean settings_get_display_keepalive (gboolean default_value);
35 gboolean settings_init (GConfClientNotifyFunc func, gpointer user_data);
36
37 #endif /* __SETTINGS_H__ */
38