Back to index

gcompris  8.2.2
properties.h
Go to the documentation of this file.
00001 /* gcompris - properties.h
00002  *
00003  * Time-stamp: <2006/08/28 23:54:33 bruno>
00004  *
00005  * Copyright (C) 2000 Bruno Coudoin
00006  *
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2 of the License, or
00010  * (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00020  */
00021 
00022 #ifndef _PROPERTIES_H_
00023 #define _PROPERTIES_H_
00024 
00025 #include "profile.h"
00026 
00027 typedef struct {
00028   gint        music;
00029   gint        fx;
00030   gint        fullscreen;
00031   gint        noxf86vm;
00032   gint        screensize;
00033   gint        defaultcursor;
00034   gint        timer;
00035   gint        filter_style;
00036   gint        difficulty_filter;
00037   gint        difficulty_max;
00038   gint        disable_quit;
00039   gint        disable_config;
00040   gint        display_resource;
00041   gchar        *root_menu;
00042   gchar        *local_directory;
00043   gchar        *user_data_dir;
00044   gchar        *package_data_dir;
00045   gchar        *package_locale_dir;
00046   gchar        *package_plugin_dir;
00047   gchar        *package_python_plugin_dir;
00048   gchar        *system_icon_dir;
00049   gchar        *cache_dir;
00050   gchar              *locale;
00051   gchar              *skin;
00052   gchar              *key;
00053   GcomprisProfile *profile;
00054   GcomprisUser    *logged_user;
00055   GcomprisBoard        *menu_board;
00056   gchar              *database;
00057   gint          administration;
00058   gint          reread_menu;
00059   gchar        *shared_dir;
00060   gchar        *users_dir;
00061   /* this are set by gc_im_init() */
00062   GtkIMContext *context;
00063   gchar        *default_context;
00064   gint         experimental;
00065   gchar        *menu_position;
00066   gchar        *server;
00067 } GcomprisProperties;
00068 
00069 GcomprisProperties   *gc_prop_get (void);
00070 GcomprisProperties   *gc_prop_new (void);
00071 void                  gc_prop_destroy (GcomprisProperties *props);
00072 void                  gc_prop_save (GcomprisProperties *props);
00073 
00074 gchar                   *gc_prop_default_database_name_get (gchar *shared_dir);
00075 int                   gc_setenv (const char * name, const char * value);
00076 
00077 /* Directories */
00078 gchar                *gc_prop_user_dirname_get(GcomprisUser *user);
00079 gchar                *gc_prop_current_user_dirname_get();
00080 gchar                *gc_prop_board_dirname_get(GcomprisBoard *board);
00081 gchar                *gc_prop_current_board_dirname_get();
00082 
00083 
00084 #endif