1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
/* gcompris - properties.h
*
* Time-stamp: <2004/05/20 01:07:31 bcoudoin>
*
* Copyright (C) 2000 Bruno Coudoin
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef _PROPERTIES_H_
#define _PROPERTIES_H_
typedef struct {
gint music;
gint fx;
gint audio_works;
gint fullscreen;
gint screensize;
gint defaultcursor;
gint timer;
gint difficulty_filter;
gchar *locale;
gchar *skin;
gchar *key;
} GcomprisProperties;
GcomprisProperties *gcompris_get_properties (void);
GcomprisProperties *gcompris_properties_new (void);
void gcompris_properties_destroy (GcomprisProperties *props);
void gcompris_properties_save (GcomprisProperties *props);
void gcompris_properties_enable_board(gchar *boardName);
void gcompris_properties_disable_board(gchar *boardName);
gboolean gcompris_properties_get_board_status(gchar *boardName);
void gcompris_write_boards_status();
/* private definitions */
typedef enum {
GCOMPRIS_PROP_MUSIC,
GCOMPRIS_PROP_FX,
GCOMPRIS_PROP_SCREENSIZE,
GCOMPRIS_PROP_TIMER,
GCOMPRIS_PROP_FULLSCREEN,
GCOMPRIS_PROP_LOCALE,
GCOMPRIS_PROP_SKIN,
GCOMPRIS_PROP_AUDIO
} GcomprisTokenType;
#endif
/* Local Variables: */
/* mode:c */
/* eval:(load-library "time-stamp") */
/* eval:(make-local-variable 'write-file-hooks) */
/* eval:(add-hook 'write-file-hooks 'time-stamp) */
/* eval:(setq time-stamp-format '(time-stamp-yyyy/mm/dd time-stamp-hh:mm:ss user-login-name)) */
/* End: */
|