00001 /* 00002 * This file is part of settings. 00003 * 00004 * settings is free software: you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation, either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * settings 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, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00031 #include <liberregxml/erregapi.h> 00032 00033 #ifndef _ILIAD_CONFIG_DATA_H_ 00034 #define _ILIAD_CONFIG_DATA_H_ 00035 00036 // init the eReader configuration data, given the already 00037 // in memory loaded registry data 00038 void iLiad_config_data_init(void); 00039 00040 void iLiad_config_data_destroy(void); 00041 void iLiad_config_data_display(void); 00042 00043 // compare the flipbar direction at the startup of settings with 00044 // the one in the current config data 00045 gboolean iLiad_config_data_change_flipbar_direction(); 00046 00047 //returned value should be handled as a read only value 00048 char* iLiad_config_data_get_language(void); 00049 00050 //callback routines from the GTK widgets associated with the config data 00051 void on_keys_selection_update(erGtkSelectionGroup* selection, gpointer button, gpointer data); 00052 void on_language_selection_update(erGtkSelectionGroup* selection, gpointer button, gpointer data); 00053 void on_sound_selection_update(erGtkSelectionGroup* selection, gpointer button, gpointer data); 00054 void on_keybuffering_selection_update(erGtkSelectionGroup* selection, gpointer button, gpointer data); 00055 void on_flipbar_direction_selection_update(erGtkSelectionGroup* selection, gpointer button, gpointer data); 00056 00057 //store the config information in the registry 00058 // reload registry data from er_registry.txt, handle lock, update data and 00059 // store updated config registry data in er_registry.txt 00060 void iLiad_config_data_store(void); 00061 00062 00063 #endif
1.5.6