Defines | |
#define | ICD_GCONF_IAP_TYPE "type" |
#define | ICD_GCONF_IAP_NAME "name" |
#define | ICD_GCONF_IAP_IS_TEMPORARY "temporary" |
#define | ICD_GCONF_AGGRESSIVE_SCANNING "aggressive_scanning" |
Functions | |
static void | icd_gconf_check_error (GError **error) |
gchar * | icd_gconf_get_iap_string (const char *iap_name, const char *key_name) |
gchar * | icd_gconf_get_iap_bytearray (const char *iap_name, const char *key_name) |
gboolean | icd_gconf_get_iap_bool (const char *iap_name, const char *key_name, gboolean def) |
gint | icd_gconf_get_iap_int (const char *iap_name, const char *key_name) |
GSList * | icd_gconf_get_iap_string_list (const char *iap_name, const char *key_name) |
gboolean | icd_gconf_is_temporary (const gchar *settings_name) |
static gboolean | icd_gconf_remove_dir (const gchar *settings_name) |
gboolean | icd_gconf_remove_temporary (const gchar *settings_name) |
gboolean | icd_gconf_rename (const gchar *settings_name, const gchar *name) |
static void | icd_gconf_notify (GConfClient *gconf_client, guint connection_id, GConfEntry *entry, gpointer user_data) |
gboolean | icd_gconf_add_notify (void) |
void | icd_gconf_del_notify (void) |
static gboolean | icd_gconf_agressive_scanning () |
#define ICD_GCONF_AGGRESSIVE_SCANNING "aggressive_scanning" |
The key holding aggressive scanning setting status
Referenced by icd_gconf_agressive_scanning().
#define ICD_GCONF_IAP_IS_TEMPORARY "temporary" |
The key holding temporary connection setting status
Referenced by icd_gconf_is_temporary(), and icd_gconf_rename().
#define ICD_GCONF_IAP_NAME "name" |
The key holding IAP name
Referenced by icd_gconf_rename().
#define ICD_GCONF_IAP_TYPE "type" |
The key holding the type of an IAP
Referenced by icd_dbus_api_disconnect_req(), and icd_osso_ic_get_type().
gboolean icd_gconf_add_notify | ( | void | ) |
Set notification func for gconf changes
References icd_context::iap_deletion_notify, icd_context_get(), icd_ctx, and icd_gconf_notify().
Referenced by main().
static gboolean icd_gconf_agressive_scanning | ( | ) | [inline, static] |
Check whether the scanning should be initiated when search dialog opens.
References ICD_GCONF_AGGRESSIVE_SCANNING, and icd_gconf_get_iap_bool().
Referenced by icd_scan_results_request().
static void icd_gconf_check_error | ( | GError ** | error | ) | [static] |
Print out a gconf error
error | reference to the GError |
References ILOG_ERR.
Referenced by icd_gconf_get_iap_bool(), icd_gconf_get_iap_bytearray(), icd_gconf_get_iap_int(), icd_gconf_get_iap_string(), icd_gconf_get_iap_string_list(), icd_gconf_remove_dir(), and icd_gconf_remove_temporary().
void icd_gconf_del_notify | ( | void | ) |
Remove notification func for gconf changes
References icd_context::iap_deletion_notify, icd_context_get(), and icd_ctx.
Referenced by main().
gboolean icd_gconf_get_iap_bool | ( | const char * | iap_name, | |
const char * | key_name, | |||
gboolean | def | |||
) |
Get a boolean value from gconf
iap_name | unescaped gconf IAP name | |
key_name | key name | |
def | the default expected value |
References icd_gconf_check_error().
Referenced by icd_gconf_agressive_scanning(), and icd_gconf_is_temporary().
gchar * icd_gconf_get_iap_bytearray | ( | const char * | iap_name, | |
const char * | key_name | |||
) |
Get a byte array from gconf
iap_name | unescaped gconf IAP name | |
key_name | key name |
References icd_gconf_check_error(), and ILOG_ERR.
gint icd_gconf_get_iap_int | ( | const char * | iap_name, | |
const char * | key_name | |||
) |
Get an int from gconf
iap_name | unescaped gconf IAP name | |
key_name | key name |
References icd_gconf_check_error().
gchar * icd_gconf_get_iap_string | ( | const char * | iap_name, | |
const char * | key_name | |||
) |
Get a string from gconf
iap_name | unescaped gconf IAP name | |
key_name | key name |
References icd_gconf_check_error().
Referenced by icd_dbus_api_disconnect_req(), icd_osso_ic_get_type(), and icd_wlan_defs_get_secmode().
GSList * icd_gconf_get_iap_string_list | ( | const char * | iap_name, | |
const char * | key_name | |||
) |
Get a string list from gconf
iap_name | unescaped gconf IAP name | |
key_name | key name |
References icd_gconf_check_error().
gboolean icd_gconf_is_temporary | ( | const gchar * | settings_name | ) |
Check wheter the setting is temporary
settings_name | name of the IAP |
References icd_gconf_get_iap_bool(), ICD_GCONF_IAP_IS_TEMPORARY, and ILOG_DEBUG.
Referenced by icd_gconf_remove_dir(), and icd_iap_post_up_script_done().
static void icd_gconf_notify | ( | GConfClient * | gconf_client, | |
guint | connection_id, | |||
GConfEntry * | entry, | |||
gpointer | user_data | |||
) | [static] |
Notice if IAP is removed in gconf.
References icd_scan_cache_remove_iap(), and ILOG_DEBUG.
Referenced by icd_gconf_add_notify().
static gboolean icd_gconf_remove_dir | ( | const gchar * | settings_name | ) | [static] |
Remove a gconf directory if it is a temporary IAP
settings_name | escaped IAP name |
References icd_gconf_check_error(), icd_gconf_is_temporary(), and ILOG_DEBUG.
Referenced by icd_gconf_remove_temporary().
gboolean icd_gconf_remove_temporary | ( | const gchar * | settings_name | ) |
Remove temporary IAPs from gconf
settings_name | name of temporary IAP to remove or NULL for all |
References icd_gconf_check_error(), and icd_gconf_remove_dir().
Referenced by icd_iap_free(), and main().
gboolean icd_gconf_rename | ( | const gchar * | settings_name, | |
const gchar * | name | |||
) |
Rename settings
settings_name | current IAP settings name | |
name | new name of the settings |
References ICD_GCONF_IAP_IS_TEMPORARY, ICD_GCONF_IAP_NAME, and ILOG_ERR.
Referenced by icd_iap_rename().