Imported Upstream version 0.0.7
[ptask-pkg-ubuntu.git] / src / settings.h
1 /*
2  * Copyright (C) 2012-2013 jeanfi@gmail.com
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, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  * 02110-1301 USA
18  */
19
20 #ifndef _PTASK_SETTINGS_H_
21 #define _PTASK_SETTINGS_H_
22
23 #include <gtk/gtk.h>
24
25 extern const char *SETTINGS_KEY_WINDOW_WIDTH;
26 extern const char *SETTINGS_KEY_WINDOW_HEIGHT;
27 extern const char *SETTINGS_KEY_WINDOW_X;
28 extern const char *SETTINGS_KEY_WINDOW_Y;
29 extern const char *SETTINGS_KEY_SPLITER_VERTICAL_POS;
30 extern const char *SETTINGS_KEY_SPLITER_HORIZONTAL_POS;
31 extern const char *SETTINGS_KEY_TASKS_SORT_COL;
32 extern const char *SETTINGS_KEY_TASKS_SORT_ORDER;
33 extern const char * const SETTINGS_VISIBLE_COL_KEYS[];
34
35 void settings_init();
36
37 gint settings_get_int(const gchar *key);
38 void settings_set_int(const gchar *key, gint value);
39 gboolean settings_get_boolean(const gchar *key);
40 void settings_set_boolean(const gchar *key, gboolean value);
41 gchar *settings_get_str(const gchar *key);
42 void settings_set_str(const gchar *key, const gchar *value);
43
44 const char *settings_get_notes_dir();
45 void settings_set_notes_dir(const char *dir);
46
47 #endif