00001 #ifndef ICD_GCONF_H 00002 #define ICD_GCONF_H 00003 00013 #include <glib.h> 00014 00021 #define ICD_GCONF_IAP_TYPE "type" 00022 00024 #define ICD_GCONF_IAP_NAME "name" 00025 00027 #define ICD_GCONF_IAP_IS_TEMPORARY "temporary" 00028 00030 #define ICD_GCONF_AGGRESSIVE_SCANNING "aggressive_scanning" 00031 00032 gchar *icd_gconf_get_iap_string (const char *iap_name, 00033 const char *key_name); 00034 gchar *icd_gconf_get_iap_bytearray (const char *iap_name, 00035 const char *key_name); 00036 gboolean icd_gconf_get_iap_bool (const char *iap_name, 00037 const char *key_name, 00038 gboolean def); 00039 gint icd_gconf_get_iap_int (const char *iap_name, 00040 const char *key_name); 00041 GSList* icd_gconf_get_iap_string_list (const char *iap_name, 00042 const char *key_name); 00043 00044 gboolean icd_gconf_is_temporary (const gchar *settings_name); 00045 gboolean icd_gconf_remove_temporary (const gchar *settings_name); 00046 gboolean icd_gconf_rename (const gchar *settings_name, const gchar *name); 00047 gboolean icd_gconf_add_notify(void); 00048 void icd_gconf_del_notify(void); 00049 00053 static inline gboolean icd_gconf_agressive_scanning() 00054 { 00055 return icd_gconf_get_iap_bool(NULL, 00056 ICD_GCONF_AGGRESSIVE_SCANNING, 00057 FALSE); 00058 } 00059 00062 #endif