00001 /* liqbase 00002 * Copyright (C) 2008 Gary Birkett 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License version 2 00006 * as published by the Free Software Foundation. 00007 * 00008 * This program is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 * GNU General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU General Public License 00014 * along with this program; if not, write to the Free Software 00015 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00016 */ 00017 00018 /* 00019 * 00020 * Header for app preferences 00021 * 00022 */ 00023 00024 00025 00026 00027 #ifndef LIQAPP_PREFS_H 00028 #define LIQAPP_PREFS_H 00029 00030 #ifdef __cplusplus 00031 extern "C" { 00032 #endif 00033 //#include <stdio.h> 00034 //#include <dirent.h> 00035 00036 00037 00038 #include "liqapp.h" 00039 #include "liqcell.h" 00040 00041 00042 int liqapp_prefs_load(); 00043 char * liqapp_pref_getvalue(char *prefkey); 00044 liqcell * liqapp_pref_getitem(char *prefkey); 00045 int liqapp_pref_checkexists(char *prefkey); 00046 char * liqapp_pref_setvalue(char *prefkey,char *prefvalue); 00047 //char * liqapp_pref_setvalue_vprintf(char *prefkey,char *prefformat, va_list arg); 00048 char * liqapp_pref_setvalue_printf(char *prefkey,char *prefformat, ...); 00049 int liqapp_prefs_save(); 00050 00051 #endif 00052