00001
00002 #ifndef __CAIRO_DOCK_KEYFILE_MANAGER__
00003 #define __CAIRO_DOCK_KEYFILE_MANAGER__
00004
00005 #include <glib.h>
00006 #include <cairo-dock-struct.h>
00007
00008
00009 void cairo_dock_write_keys_to_file (GKeyFile *key_file, gchar *conf_file);
00010 gchar *cairo_dock_get_translated_conf_file_path (gchar *cConfFileName, gchar *cShareDataDirPath);
00011 void cairo_dock_flush_conf_file_full (GKeyFile *pKeyFile, gchar *cConfFilePath, gchar *cShareDataDirPath, gboolean bUseFileKeys, gchar *cTemplateFileName);
00012 void cairo_dock_flush_conf_file (GKeyFile *pKeyFile, gchar *cConfFilePath, gchar *cShareDataDirPath);
00013
00014 void cairo_dock_replace_comments (GKeyFile *pOriginalKeyFile, GKeyFile *pReplacementKeyFile);
00015 void cairo_dock_replace_key_values (GKeyFile *pOriginalKeyFile, GKeyFile *pReplacementKeyFile, gboolean bUseOriginalKeys, gchar iIdentifier);
00016
00017 void cairo_dock_write_one_name (gchar *cName, gpointer value, GString *pString);
00018 void cairo_dock_write_one_name_description (gchar *cName, gchar *cDescriptionFilePath, GString *pString);
00019 void cairo_dock_write_one_module_name (gchar *cName, CairoDockModule *pModule, GString *pString);
00020 void cairo_dock_write_one_theme_name (gchar *cName, gchar *cThemePath, GString *pString);
00021 void cairo_dock_write_one_renderer_name (gchar *cName, CairoDockRenderer *pRenderer, GString *pString);
00022 void cairo_dock_update_conf_file_with_hash_table (gchar *cConfFile, GHashTable *pModuleTable, gchar *cGroupName, gchar *cKeyName, gchar *cNewUsefullComment, GHFunc pWritingFunc);
00023
00024 void cairo_dock_apply_translation_on_conf_file (gchar *cConfFilePath, gchar *cCommentsFilePath);
00025 void cairo_dock_replace_values_in_conf_file (gchar *cConfFilePath, GKeyFile *pValidKeyFile, gboolean bUseFileKeys, gchar iIdentifier);
00026 void cairo_dock_replace_keys_by_identifier (gchar *cConfFilePath, gchar *cReplacementConfFilePath, gchar iIdentifier);
00027
00028 GHashTable *cairo_dock_list_available_translations (gchar *cTranslationsDir, gchar *cFilePrefix, GError **erreur);
00029 void cairo_dock_get_conf_file_language_and_version (GKeyFile *pKeyFile, gchar **cConfFileLanguage, gchar **cConfFileVersion);
00030 gboolean cairo_dock_conf_file_needs_update (GKeyFile *pKeyFile);
00031
00032
00033 #endif