Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

Prefs.h

Go to the documentation of this file.
00001 /*
00002  *    gui - [gega user interface] the flexible solution for user interface problems
00003  *    Copyright (C) 2002  Gergely Gati
00004  *
00005  *    This program is free software; you can redistribute it and/or modify
00006  *    it under the terms of the GNU General Public License as published by
00007  *    the Free Software Foundation; version 2 of the License.
00008  *
00009  *    This program is distributed in the hope that it will be useful,
00010  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *    GNU General Public License for more details.
00013  *
00014  *    You should have received a copy of the GNU General Public License
00015  *    along with this program; if not, write to the Free Software
00016  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00017  *
00018  *    Gergely Gati
00019  *      email:           g.gati@freemail.hu
00020  *      AIM screenname:  GatiGergely
00021  *      ICQ number:      93131690
00022  *
00023  */
00024 #ifndef __PREFS_H
00025 #define __PREFS_H
00026 
00027 
00028 #include "types.h"
00029 
00030 
00031 //#define PREFS_SETLOCAL   0
00032 #define PREFS_SETGLOBAL  (1L<<0)  // csak root
00033 #define PREFS_COMMON     (1L<<1)  // csak a gui_Prefs nevu appnak
00034 
00035 #define PREFSDT_NUMBER   0
00036 #define PREFSDT_STRING   1
00037 
00038 
00039 void prefs_Init(void);
00040 void prefs_CleanUp(void);
00041 
00042 Prefs_t *prefs_InitApp(char *app);
00043 void prefs_CleanUpApp(Prefs_t *prefs);
00044 
00045 int prefs_Save(Prefs_t *prefs);
00046 char *prefs_GetString(Prefs_t *prefs, char *name, char *def);
00047 char *prefs_SetString(Prefs_t *prefs, char *name, char *value, int flags);
00048 u32 prefs_GetNumber(Prefs_t *prefs, char *name, u32 def);
00049 u32 prefs_SetNumber(Prefs_t *prefs, char *name, u32 value, int flags);
00050 void prefs_Delete(Prefs_t *prefs, char *name, int flags);
00051 
00052 #endif

Generated on Tue Jan 7 12:11:23 2003 for THEGUI by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002