}
system_setting_callback_slot_e;
+typedef struct _system_setting_s *system_setting_h;
+
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-typedef int (*system_setting_get_value_cb)(system_settings_key_e key, void **value);
+typedef int (*system_setting_get_value_cb)(system_setting_h item, void **value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-typedef int (*system_setting_set_value_cb)(system_settings_key_e key, void *value);
+typedef int (*system_setting_set_value_cb)(system_setting_h item, void *value);
typedef int (*system_setting_add_value_cb)(system_settings_key_e key, void *value);
typedef int (*system_setting_del_value_cb)(system_settings_key_e key, void *value);
typedef int (*system_setting_list_value_cb)(system_settings_key_e key, system_settings_iter_cb callback, void *user_data);
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-typedef int (*system_setting_set_changed_callback_cb)(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
+typedef int (*system_setting_set_changed_callback_cb)(system_setting_h item, void *user_data);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-typedef int (*system_setting_unset_changed_callback_cb)(system_settings_key_e key);
+typedef int (*system_setting_unset_changed_callback_cb)(system_setting_h item);
/**
* @retval #SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
*/
-typedef struct {
+typedef struct _system_setting_s {
system_settings_key_e key; /**< key */
const char * const vconf_key; /**< vconf key */
system_setting_data_type_e data_type; /**< data type */
} system_setting_s;
-typedef system_setting_s *system_setting_h;
/**
* @brief get vconf value for genernal case
* @since_tizen 6.0
*
- * @param[in] system_settings_key_e key
+ * @param[in] system_setting_h item
* @param[in] void value pointer
*
* @return 0 on success, -1 on error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_vconf(system_settings_key_e key, void **value);
+int system_setting_get_vconf(system_setting_h item, void **value);
/**
* @internal
* @brief set vconf value for genernal case
* @since_tizen 6.0
*
- * @param[in] system_settings_key_e key
+ * @param[in] system_setting_h item
* @param[in] void value pointer
*
* @return 0 on success, -1 on error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_vconf(system_settings_key_e key, void *value);
+int system_setting_set_vconf(system_setting_h item, void *value);
+
+/**
+ * @internal
+ * @brief set vconf notification callback for genernal case
+ * @since_tizen 6.0
+ *
+ * @param[in] system_setting_h item
+ * @param[in] system_settings_changed_cb callback
+ * @param[in] user_data user data
+ *
+ * @return 0 on success, -1 on error
+ * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ */
+int system_setting_set_changed_vconf_genernal_callback(system_setting_h item, void *user_data);
+
+/**
+ * @internal
+ * @brief unset vconf notification callback for genernal case
+ * @since_tizen 6.0
+ *
+ * @param[in] system_setting_h item
+ *
+ * @return 0 on success, -1 on error
+ * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ */
+int system_setting_unset_changed_vconf_genernal_callback(system_setting_h item);
+
/**
* @internal
* @brief Set the system settings notification callback
* @since_tizen 2.3
* @param[in] vconf_key
* @param[in] key
- * @param[in] slot internal slot to set the key (0~5)
+ * @param[in] slot internal slot to set the key (0~4)
* @param[in] user_data user data
* @return 0 on success, otherwise a negative error value
* @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
/**
* @internal
- * @brief get current font size
- * @since_tizen 2.3
- * @param[in] key key name should be SYSTEM_SETTINGS_KEY_FONT_SIZE
- * @param[in] datatype should be SYSTEM_SETTING_DATA_TYPE_INT
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_font_size(system_settings_key_e key, void **value);
-
-/**
- * @internal
* @brief set current font size
* @since_tizen 2.3
* @param[in] key key name should be SYSTEM_SETTINGS_KEY_FONT_SIZE
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_font_size(system_settings_key_e key, void *value);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_font_size(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_font_size(system_settings_key_e key);
-
-
+int system_setting_set_font_size(system_setting_h item, void *value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_incoming_call_ringtone(system_settings_key_e key, void **value);
+int system_setting_get_incoming_call_ringtone(system_setting_h item, void **value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_incoming_call_ringtone(system_settings_key_e key, void *value);
+int system_setting_set_incoming_call_ringtone(system_setting_h item, void *value);
/**
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_changed_callback_incoming_call_ringtone(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_incoming_call_ringtone(system_settings_key_e key);
-
-
-/**
- * @internal
- * @since_tizen 2.3
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_email_alert_ringtone(system_settings_key_e key, void **value);
+int system_setting_get_email_alert_ringtone(system_setting_h item, void **value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_email_alert_ringtone(system_settings_key_e key, void *value);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_email_alert_ringtone(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_email_alert_ringtone(system_settings_key_e key);
-
-
-
-/**
- * @internal
- * @since_tizen 2.3
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_wallpaper_home_screen(system_settings_key_e key, void **value);
+int system_setting_set_email_alert_ringtone(system_setting_h item, void *value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_wallpaper_home_screen(system_settings_key_e key, void *value);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_wallpaper_home_screen(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_wallpaper_home_screen(system_settings_key_e key);
-
-
-
-/**
- * @internal
- * @since_tizen 2.3
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_wallpaper_lock_screen(system_settings_key_e key, void **value);
+int system_setting_set_wallpaper_home_screen(system_setting_h item, void *value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_wallpaper_lock_screen(system_settings_key_e key, void *value);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_wallpaper_lock_screen(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_wallpaper_lock_screen(system_settings_key_e key);
-
-
-/**
- * @internal
- * @since_tizen 2.3
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_default_font_type(system_settings_key_e key, void **value);
-
+int system_setting_set_wallpaper_lock_screen(system_setting_h item, void *value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_font_type(system_settings_key_e key, void **value);
+int system_setting_get_default_font_type(system_setting_h item, void **value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_font_type(system_settings_key_e key, void *value);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_font_type(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_font_type(system_settings_key_e key);
-
-
-/**
- * @internal
- * @since_tizen 2.3
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_motion_activation(system_settings_key_e key, void **value);
+int system_setting_set_font_type(system_setting_h item, void *value);
/**
* @internal
- * @brief set on/off of the motion activation
* @since_tizen 2.3
- * @param[in] key key name should be SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION
- * @param[in] datatype should be SYSTEM_SETTING_DATA_TYPE_BOOL
- * @param[out] value the motion activation
* @return 0 on success, otherwise a negative error value
* @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_motion_activation(system_settings_key_e key, void *value);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_motion_activation(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_motion_activation(system_settings_key_e key);
-
-
-/**
- * @internal
- * @since_tizen 2.3
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_usb_debugging_option(system_settings_key_e key, void **value);
+int system_setting_get_lockscreen_app(system_setting_h item, void **value);
/**
* @internal
- * @brief set on/off of the debugging options
* @since_tizen 2.3
- * @param[in] key key name should be SYSTEM_SETTINGS_KEY_USB_DEBUGGING_ENABLED
- * @param[in] datatype should be SYSTEM_SETTING_DATA_TYPE_BOOL
- * @param[out] value the usb debug option
* @return 0 on success, otherwise a negative error value
* @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_usb_debugging_option(system_settings_key_e key, void *value);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_usb_debugging_option(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_usb_debugging_option(system_settings_key_e key);
-
-
-/**
- * @internal
- * @since_tizen 2.3
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_3g_data_network(system_settings_key_e key, void **value);
+int system_setting_set_lockscreen_app(system_setting_h item, void *value);
/**
* @internal
- * @brief set on/off of the 3G data network option
* @since_tizen 2.3
- * @param[in] key key name should be SYSTEM_SETTINGS_KEY_3G_DATA_NETWORK_ENABLED
- * @param[in] datatype should be SYSTEM_SETTING_DATA_TYPE_BOOL
- * @param[out] value the 3G data network option
* @return 0 on success, otherwise a negative error value
* @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_3g_data_network(system_settings_key_e key, void *value);
-
+int system_setting_get_locale_country(system_setting_h item, void **value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_changed_callback_3g_data_network(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
+int system_setting_set_locale_country(system_setting_h item, void *value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_unset_changed_callback_3g_data_network(system_settings_key_e key);
-
+int system_setting_get_locale_language(system_setting_h item, void **value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_tap_and_hold_delay(system_settings_key_e key, void **value);
+int system_setting_set_locale_language(system_setting_h item, void *value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_tap_and_hold_delay(system_settings_key_e key, void *value);
-
+int system_setting_get_locale_timeformat_24hour(system_setting_h item, void **value);
/**
* @internal
* @since_tizen 2.3
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_changed_callback_tap_and_hold_delay(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
+int system_setting_set_locale_timeformat_24hour(system_setting_h item, void *value);
/**
* @internal
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_unset_changed_callback_tap_and_hold_delay(system_settings_key_e key);
+int system_setting_get_locale_timezone(system_setting_h item, void **value);
/**
* @internal
- * @since_tizen 2.3
+ * @since_tizen 3.0
* @return 0 on success, otherwise a negative error value
* @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
* @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
* @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_lockscreen_app(system_settings_key_e key, void **value);
+int system_setting_set_locale_timezone(system_setting_h item, void *value);
/**
* @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ * @brief get current UDS status
+ * @since_tizen 3.0
+ * @return 0 on success, otherwise a negative error value
+ * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
+ * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
+ * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_lockscreen_app(system_settings_key_e key, void *value);
+int system_setting_get_uds_state(system_setting_h item, void **value);
/**
* @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ * @brief get current ADS ID
+ * @since_tizen 3.0
+ * @return 0 on success, otherwise a negative error value
+ * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
+ * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
+ * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_changed_callback_lockscreen_app(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
+int system_setting_get_ads_id(system_setting_h item, void **value);
/**
* @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ * @brief set ADS ID
+ * @since_tizen 3.0
+ * @return 0 on success, otherwise a negative error value
+ * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
+ * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
+ * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_unset_changed_callback_lockscreen_app(system_settings_key_e key);
+int system_setting_set_ads_id(system_setting_h item, void *value);
/**
* @internal
* @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_locale_country(system_settings_key_e key, void **value);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_locale_country(system_settings_key_e key, void *value);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_locale_country(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ * @return 0 on success, otherwise a negative error value
+ * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
+ * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
+ * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_unset_changed_callback_locale_country(system_settings_key_e key);
+int system_setting_set_sound_notification(system_setting_h item, void *value);
/**
* @internal
* @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ * @return 0 on success, otherwise a negative error value
+ * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
+ * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
+ * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_get_locale_language(system_settings_key_e key, void **value);
+int system_setting_set_screen_backlight_time(system_setting_h item, void *value);
+
/**
* @internal
* @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ * @return 0 on success, otherwise a negative error value
+ * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
+ * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
+ * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_locale_language(system_settings_key_e key, void *value);
+int system_setting_get_network_wifi_notification(system_setting_h item, void **value);
+
/**
* @internal
* @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ * @return 0 on success, otherwise a negative error value
+ * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
+ * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
+ * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_set_changed_callback_locale_language(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
+int system_setting_get_sound_silent_mode(system_setting_h item, void **value);
+
/**
* @internal
* @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ * @return 0 on success, otherwise a negative error value
+ * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
+ * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
+ * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_unset_changed_callback_locale_language(system_settings_key_e key);
+int system_setting_set_sound_silent_mode(system_setting_h item, void *value);
/**
* @internal
* @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_locale_timeformat_24hour(system_settings_key_e key, void **value);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_locale_timeformat_24hour(system_settings_key_e key, void *value);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_locale_timeformat_24hour(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_locale_timeformat_24hour(system_settings_key_e key);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_locale_timezone(system_settings_key_e key, void **value);
-
-/**
- * @internal
- * @since_tizen 3.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_locale_timezone(system_settings_key_e key, void *value);
-
-/**
- * @internal
- * @since_tizen 3.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_locale_timezone(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-
-/**
- * @internal
- * @since_tizen 3.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_locale_timezone(system_settings_key_e key);
-
-
-
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_locale_timezone_changed(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_locale_timezone_changed(system_settings_key_e key);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_time_changed(system_settings_key_e key, void **value);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_time_changed(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_time_changed(system_settings_key_e key);
-
-
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_sound_lock(system_settings_key_e key, void **value);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_sound_lock(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_sound_lock(system_settings_key_e key);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_sound_silent_mode(system_settings_key_e key, void **value);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_sound_silent_mode(system_settings_key_e key, void *value);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_sound_silent_mode(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_sound_silent_mode(system_settings_key_e key);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_sound_touch(system_settings_key_e key, void **value);
-
-/**
- * @internal
- * @since_tizen 5.5
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_sound_touch(system_settings_key_e key, void *value);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_sound_touch(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_sound_touch(system_settings_key_e key);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_auto_rotation_mode(system_settings_key_e key, void **value);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_auto_rotation_mode(system_settings_key_e key, void *value);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_auto_rotation_mode(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_auto_rotation_mode(system_settings_key_e key);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_screen_backlight_time(system_settings_key_e key, void **value);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_screen_backlight_time(system_settings_key_e key, void *value);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_screen_backlight_time(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_screen_backlight_time(system_settings_key_e key);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_sound_notification(system_settings_key_e key, void **value);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_sound_notification(system_settings_key_e key, void *value);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_sound_notification(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_sound_notification(system_settings_key_e key);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_notification_repetition_period(system_settings_key_e key, void **value);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_notification_repetition_period(system_settings_key_e key, void *value);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_notification_repetition_period(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_notification_repetition_period(system_settings_key_e key);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_device_name(system_settings_key_e key, void **value);
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_device_name(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_device_name(system_settings_key_e key);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_network_flight_mode(system_settings_key_e key, void **value);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_network_flight_mode(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_network_flight_mode(system_settings_key_e key);
-
-
-
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_network_wifi_notification(system_settings_key_e key, void **value);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_network_wifi_notification(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_network_wifi_notification(system_settings_key_e key);
-
-
-/**
- * @internal
- * @brief get current Idle Lock State
- * @since_tizen 2.3.1
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_lock_state(system_settings_key_e key, void **value);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_lock_state(system_settings_key_e key, void *value);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_lock_state(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-
-/**
- * @internal
- * @since_tizen 2.3
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_lock_state(system_settings_key_e key);
-
-/**
- * @internal
- * @brief get current ADS ID
- * @since_tizen 3.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_ads_id(system_settings_key_e key, void **value);
-
-/**
- * @internal
- * @brief set ADS ID
- * @since_tizen 3.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_ads_id(system_settings_key_e key, void *value);
-
-/**
- * @internal
- * @since_tizen 3.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_ads_id(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-
-/**
- * @internal
- * @since_tizen 3.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_ads_id(system_settings_key_e key);
-
-/**
- * @internal
- * @brief get current UDS status
- * @since_tizen 3.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_uds_state(system_settings_key_e key, void **value);
-
-/**
- * @internal
- * @since_tizen 3.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_uds_state(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-
-/**
- * @internal
- * @since_tizen 3.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_uds_state(system_settings_key_e key);
-
-
-/**
- * @internal
- * @since_tizen 3.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_uds_pkg_list(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-
-
-/**
- * @internal
- * @since_tizen 4.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_accessibility_tts(system_settings_key_e key, void **value);
-
-/**
- * @internal
- * @since_tizen 5.5
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_accessibility_tts(system_settings_key_e key, void *value);
-
-/**
- * @internal
- * @since_tizen 4.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_accessibility_tts(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-/**
- * @internal
- * @since_tizen 4.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_accessibility_tts(system_settings_key_e key);
-
-/**
- * @internal
- * @since_tizen 4.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_vibration(system_settings_key_e key, void **value);
-
-/**
- * @internal
- * @since_tizen 4.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_vibration(system_settings_key_e key, void *value);
-
-/**
- * @internal
- * @since_tizen 4.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_vibration(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-
-/**
- * @internal
- * @since_tizen 4.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_vibration(system_settings_key_e key);
-
-/**
- * @internal
- * @since_tizen 5.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_automatic_time_update(system_settings_key_e key, void **value);
-
-/**
- * @internal
- * @since_tizen 5.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_automatic_time_update(system_settings_key_e key, void *value);
-
-/**
- * @internal
- * @since_tizen 5.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_automatic_time_update(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-
-/**
- * @internal
- * @since_tizen 5.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_automatic_time_update(system_settings_key_e key);
-
-/**
- * @internal
- * @since_tizen 5.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_developer_option_state(system_settings_key_e key, void **value);
-
-/**
- * @internal
- * @since_tizen 5.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_developer_option_state(system_settings_key_e key, void *value);
-
-/**
- * @internal
- * @since_tizen 5.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_developer_option_state(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-
-/**
- * @internal
- * @since_tizen 5.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_developer_option_state(system_settings_key_e key);
-
-/**
- * @internal
- * @since_tizen 5.5
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_accessibility_grayscale(system_settings_key_e key, void **value);
-
-/**
- * @internal
- * @since_tizen 5.5
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_accessibility_grayscale(system_settings_key_e key, void *value);
-
-/**
- * @internal
- * @since_tizen 5.5
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_accessibility_grayscale(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-
-/**
- * @internal
- * @since_tizen 5.5
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_accessibility_grayscale(system_settings_key_e key);
-
-/**
- * @internal
- * @since_tizen 5.5
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_accessibility_negative_color(system_settings_key_e key, void **value);
-
-/**
- * @internal
- * @since_tizen 5.5
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_accessibility_negative_color(system_settings_key_e key, void *value);
-
-/**
- * @internal
- * @since_tizen 5.5
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_accessibility_negative_color(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-
-/**
- * @internal
- * @since_tizen 5.5
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_accessibility_negative_color(system_settings_key_e key);
-
-/**
- * @internal
- * @since_tizen 5.5
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_get_rotary_event_enabled(system_settings_key_e key, void **value);
-
-/**
- * @internal
- * @since_tizen 5.5
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_rotary_event_enabled(system_settings_key_e key, void *value);
-
-/**
- * @internal
- * @since_tizen 5.5
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_set_changed_callback_rotary_event_enabled(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-
-/**
- * @internal
- * @since_tizen 5.5
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
- */
-int system_setting_unset_changed_callback_rotary_event_enabled(system_settings_key_e key);
-
-/**
- * @internal
- * @since_tizen 3.0
- * @return 0 on success, otherwise a negative error value
- * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ * @return 0 on success, otherwise a negative error value
+ * @retval #SYSTEM_SETTINGS_ERROR_NONE Successful
+ * @retval #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
+ * @retval #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
*/
-int system_setting_unset_changed_callback_uds_pkg_list(system_settings_key_e key);
+int system_setting_get_time_changed(system_setting_h item, void **value);
/**
* @internal
* @return the ringtone file path specified by user in normal case
* if it's not accessable, return the default ringtone path
*/
-int system_setting_get_incoming_call_ringtone(system_settings_key_e key, void **value)
+int system_setting_get_incoming_call_ringtone(system_setting_h item, void **value)
{
SETTING_TRACE_BEGIN;
char *vconf_value = NULL;
- if (system_setting_vconf_get_value_string(VCONFKEY_SETAPPL_CALL_RINGTONE_PATH_STR, &vconf_value)) {
+ if (system_setting_vconf_get_value_string(item->vconf_key, &vconf_value)) {
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
if (is_load == 0) {
*value = vconf_value;
} else { /* not zero on errro */
- *value = vconf_get_str(VCONFKEY_SETAPPL_CALL_RINGTONE_DEFAULT_PATH_STR);
+ *value = vconf_get_str(item->vconf_key);
free(vconf_value);
}
}
-int system_setting_get_email_alert_ringtone(system_settings_key_e key, void **value)
+/* LCOV_EXCL_START */
+int system_setting_get_email_alert_ringtone(system_setting_h item, void **value)
{
SETTING_TRACE_BEGIN;
char *vconf_value = NULL;
- if (system_setting_vconf_get_value_string(VCONFKEY_SETAPPL_NOTI_MSG_RINGTONE_PATH_STR, &vconf_value)) {
+ if (system_setting_vconf_get_value_string(item->vconf_key, &vconf_value)) {
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
return SYSTEM_SETTINGS_ERROR_NONE;
}
+/* LCOV_EXCL_STOP */
-int system_setting_get_default_font_type(system_settings_key_e key, void **value)
+int system_setting_get_default_font_type(system_setting_h item, void **value)
{
SETTING_TRACE_BEGIN;
char *font_name = dl_get_default_font_info();
/*////////////////////////////////////////////////////////////////////////////////////////////////// */
-
-
/**
* get current lock scren app package name (string)
*
* @return SYSTEM_SETTINGS_ERROR_LOCKSCREEN_APP_PASSWORD_MODE raise exception if current lock type is 'password'
*/
-int system_setting_get_lockscreen_app(system_settings_key_e key, void **value)
+/* LCOV_EXCL_START */
+int system_setting_get_lockscreen_app(system_setting_h item, void **value)
{
SETTING_TRACE_BEGIN;
char *pkg_name = NULL;
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
- if (system_setting_vconf_get_value_string(VCONFKEY_SETAPPL_3RD_LOCK_PKG_NAME_STR, &pkg_name)) {
+ if (system_setting_vconf_get_value_string(item->vconf_key, &pkg_name)) {
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
*value = pkg_name;
return SYSTEM_SETTINGS_ERROR_NONE;
}
-
+/* LCOV_EXCL_STOP */
/*////////////////////////////////////////////////////////////////////////////////////////////////// */
/* LCOV_EXCL_START */
-int system_setting_set_incoming_call_ringtone(system_settings_key_e key, void *value)
+int system_setting_set_incoming_call_ringtone(system_setting_h item, void *value)
{
SETTING_TRACE_BEGIN;
char *vconf_value;
int ret = _is_file_accessible(vconf_value);
if (ret == 0) {
- if (system_setting_vconf_set_value_string(VCONFKEY_SETAPPL_CALL_RINGTONE_PATH_STR, vconf_value)) {
+ if (system_setting_vconf_set_value_string(item->vconf_key, vconf_value)) {
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
} else {
/* LCOV_EXCL_START */
-int system_setting_set_email_alert_ringtone(system_settings_key_e key, void *value)
+int system_setting_set_email_alert_ringtone(system_setting_h item, void *value)
{
SETTING_TRACE_BEGIN;
char *vconf_value;
int ret = _is_file_accessible(vconf_value);
if (ret == 0) {
- if (system_setting_vconf_set_value_string(VCONFKEY_SETAPPL_NOTI_MSG_RINGTONE_PATH_STR, vconf_value)) {
+ if (system_setting_vconf_set_value_string(item->vconf_key, vconf_value)) {
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
} else {
#define WALLPAPER_MAX_COUNT 10
#endif
/* LCOV_EXCL_START */
-int system_setting_set_wallpaper_home_screen(system_settings_key_e key, void *value)
+int system_setting_set_wallpaper_home_screen(system_setting_h item, void *value)
{
SETTING_TRACE_BEGIN;
char *vconf_value;
if (_is_file_accessible(vconf_value) != 0)
return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
#ifdef TIZEN_MOBILE
- if (system_setting_vconf_set_value_string(VCONFKEY_BGSET, vconf_value)) {
+ if (system_setting_vconf_set_value_string(item->vconf_key, vconf_value)) {
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
#endif
}
}
- if (system_setting_vconf_set_value_string(VCONFKEY_BGSET, file_name_buffer)) {
+ if (system_setting_vconf_set_value_string(item->vconf_key, file_name_buffer)) {
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
} else {
- if (system_setting_vconf_set_value_string(VCONFKEY_BGSET, vconf_value)) {
+ if (system_setting_vconf_set_value_string(item->vconf_key, vconf_value)) {
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
}
/* LCOV_EXCL_STOP */
/* LCOV_EXCL_START */
-int system_setting_set_wallpaper_lock_screen(system_settings_key_e key, void *value)
+int system_setting_set_wallpaper_lock_screen(system_setting_h item, void *value)
{
SETTING_TRACE_BEGIN;
char *vconf_value;
if (_is_file_accessible(vconf_value) != 0)
return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
- if (system_setting_vconf_set_value_string(VCONFKEY_IDLE_LOCK_BGSET, vconf_value)) {
+ if (system_setting_vconf_set_value_string(item->vconf_key, vconf_value)) {
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
/* LCOV_EXCL_STOP */
/* LCOV_EXCL_START */
-int system_setting_set_font_size(system_settings_key_e key, void *value)
+int system_setting_set_font_size(system_setting_h item, void *value)
{
SETTING_TRACE_BEGIN;
int *vconf_value;
return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
}
- if (system_setting_vconf_set_value_int(VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_SIZE, *vconf_value)) {
+ if (system_setting_vconf_set_value_int(item->vconf_key, *vconf_value)) {
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
dl_font_size_set();
/* LCOV_EXCL_STOP */
/* LCOV_EXCL_START */
-int system_setting_set_font_type(system_settings_key_e key, void *value)
+int system_setting_set_font_type(system_setting_h item, void *value)
{
SETTING_TRACE_BEGIN;
char *font_name = NULL;
char *vconf_value;
vconf_value = (char *)value;
- if (system_setting_vconf_set_value_string(VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_NAME, vconf_value)) {
+ if (system_setting_vconf_set_value_string(item->vconf_key, vconf_value)) {
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
return SYSTEM_SETTINGS_ERROR_NONE;
*/
/* LCOV_EXCL_START */
-int system_setting_set_lockscreen_app(system_settings_key_e key, void *value)
+int system_setting_set_lockscreen_app(system_setting_h item, void *value)
{
SETTING_TRACE_BEGIN;
char *vconf_value;
/* LCOV_EXCL_STOP */
/*/////////////////////////////////////////////////////////////////////////////////////////////// */
-/* */
-
-int system_setting_set_changed_callback_incoming_call_ringtone(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_CALL_RINGTONE_PATH_STR, SYSTEM_SETTINGS_KEY_INCOMING_CALL_RINGTONE, SYSTEM_SETTING_CALLBACK_SLOT_0, user_data);
-}
-
-int system_setting_unset_changed_callback_incoming_call_ringtone(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_CALL_RINGTONE_PATH_STR, SYSTEM_SETTING_CALLBACK_SLOT_0);
-}
-
-int system_setting_set_changed_callback_email_alert_ringtone(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_NOTI_MSG_RINGTONE_PATH_STR, SYSTEM_SETTINGS_KEY_EMAIL_ALERT_RINGTONE, SYSTEM_SETTING_CALLBACK_SLOT_0, user_data);
-}
-
-int system_setting_unset_changed_callback_email_alert_ringtone(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_NOTI_MSG_RINGTONE_PATH_STR, SYSTEM_SETTING_CALLBACK_SLOT_0);
-}
-
-int system_setting_set_changed_callback_wallpaper_home_screen(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_BGSET, SYSTEM_SETTINGS_KEY_WALLPAPER_HOME_SCREEN, SYSTEM_SETTING_CALLBACK_SLOT_0, user_data);
-}
-
-int system_setting_unset_changed_callback_wallpaper_home_screen(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_BGSET, SYSTEM_SETTING_CALLBACK_SLOT_0);
-}
-
-int system_setting_set_changed_callback_wallpaper_lock_screen(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_IDLE_LOCK_BGSET, SYSTEM_SETTINGS_KEY_WALLPAPER_LOCK_SCREEN, SYSTEM_SETTING_CALLBACK_SLOT_0, user_data);
-}
-
-int system_setting_unset_changed_callback_wallpaper_lock_screen(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_IDLE_LOCK_BGSET, SYSTEM_SETTING_CALLBACK_SLOT_0);
-}
-
-int system_setting_set_changed_callback_font_size(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_SIZE, SYSTEM_SETTINGS_KEY_FONT_SIZE, SYSTEM_SETTING_CALLBACK_SLOT_1, user_data);
-}
-
-int system_setting_unset_changed_callback_font_size(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_SIZE, SYSTEM_SETTING_CALLBACK_SLOT_1);
-}
-
-int system_setting_set_changed_callback_usb_debugging_option(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_USB_DEBUG_MODE_BOOL, SYSTEM_SETTINGS_KEY_USB_DEBUGGING_ENABLED, SYSTEM_SETTING_CALLBACK_SLOT_1, user_data);
-}
-
-int system_setting_unset_changed_callback_usb_debugging_option(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_USB_DEBUG_MODE_BOOL, SYSTEM_SETTING_CALLBACK_SLOT_1);
-}
-
-int system_setting_set_changed_callback_3g_data_network(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_3G_ENABLE, SYSTEM_SETTINGS_KEY_3G_DATA_NETWORK_ENABLED, SYSTEM_SETTING_CALLBACK_SLOT_1, user_data);
-}
-
-int system_setting_unset_changed_callback_3g_data_network(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_3G_ENABLE, SYSTEM_SETTING_CALLBACK_SLOT_1);
-}
-
-int system_setting_set_changed_callback_lockscreen_app(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_3RD_LOCK_PKG_NAME_STR, SYSTEM_SETTINGS_KEY_LOCKSCREEN_APP, SYSTEM_SETTING_CALLBACK_SLOT_1, user_data);
-}
-
-int system_setting_unset_changed_callback_lockscreen_app(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_3RD_LOCK_PKG_NAME_STR, SYSTEM_SETTING_CALLBACK_SLOT_1);
-}
-
-
/**
* @todo need to add custom event notification method
*/
-int system_setting_set_changed_callback_font_type(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_NAME, SYSTEM_SETTINGS_KEY_FONT_TYPE, SYSTEM_SETTING_CALLBACK_SLOT_2, user_data);
-}
-
-int system_setting_unset_changed_callback_font_type(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_NAME, SYSTEM_SETTING_CALLBACK_SLOT_2);
-}
-/* TODO : 2th argument, callback, is not in use. */
-int system_setting_set_changed_callback_motion_activation(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_MOTION_ACTIVATION, SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION, SYSTEM_SETTING_CALLBACK_SLOT_3, user_data);
-}
-
-int system_setting_unset_changed_callback_motion_activation(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_MOTION_ACTIVATION, SYSTEM_SETTING_CALLBACK_SLOT_3);
-}
/*//////////////////////////////////////////////////////////////////////////////////////// */
/*--------------------------------------- */
-int system_setting_get_locale_country(system_settings_key_e key, void **value)
+int system_setting_get_locale_country(system_setting_h item, void **value)
{
SETTING_TRACE_BEGIN;
char *vconf_value = NULL;
- if (system_setting_vconf_get_value_string(VCONFKEY_REGIONFORMAT, &vconf_value)) {
+ if (system_setting_vconf_get_value_string(item->vconf_key, &vconf_value)) {
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
}
/* LCOV_EXCL_START */
-int system_setting_set_locale_country(system_settings_key_e key, void *value)
+int system_setting_set_locale_country(system_setting_h item, void *value)
{
SETTING_TRACE_BEGIN;
char *vconf_value = NULL;
char arr[20];
snprintf(arr, 20, "%s.%s", vconf_value, ext);
- if (system_setting_vconf_set_value_string(VCONFKEY_REGIONFORMAT, arr)) {
+ if (system_setting_vconf_set_value_string(item->vconf_key, arr)) {
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
return SYSTEM_SETTINGS_ERROR_NONE;
}
/* LCOV_EXCL_STOP */
-int system_setting_set_changed_callback_locale_country(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_REGIONFORMAT, SYSTEM_SETTINGS_KEY_LOCALE_COUNTRY, SYSTEM_SETTING_CALLBACK_SLOT_3, user_data);
-}
-
-int system_setting_unset_changed_callback_locale_country(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_REGIONFORMAT, SYSTEM_SETTING_CALLBACK_SLOT_3);
-}
-
-
/*--------------------------------------- */
-int system_setting_get_locale_language(system_settings_key_e key, void **value)
+int system_setting_get_locale_language(system_setting_h item, void **value)
{
SETTING_TRACE_BEGIN;
char *vconf_value = NULL;
- if (system_setting_vconf_get_value_string(VCONFKEY_LANGSET, &vconf_value)) {
+ if (system_setting_vconf_get_value_string(item->vconf_key, &vconf_value)) {
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
}
/* LCOV_EXCL_START */
-int system_setting_set_locale_language(system_settings_key_e key, void *value)
+int system_setting_set_locale_language(system_setting_h item, void *value)
{
SETTING_TRACE_BEGIN;
char *vconf_value = NULL;
char arr[20];
snprintf(arr, 20, "%s.%s", vconf_value, ext);
- if (system_setting_vconf_set_value_string(VCONFKEY_LANGSET, arr)) {
+ if (system_setting_vconf_set_value_string(item->vconf_key, arr)) {
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
return SYSTEM_SETTINGS_ERROR_NONE;
}
/* LCOV_EXCL_STOP */
-int system_setting_set_changed_callback_locale_language(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- /*return system_setting_vconf_set_changed_cb(VCONFKEY_LANGSET, SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE, 3, user_data ); */
- return system_setting_vconf_set_changed_cb(VCONFKEY_LANGSET, SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE, SYSTEM_SETTING_CALLBACK_SLOT_5, user_data);
-}
-
-int system_setting_unset_changed_callback_locale_language(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_LANGSET, SYSTEM_SETTING_CALLBACK_SLOT_5);
-}
-
/*--------------------------------------- */
/* LCOV_EXCL_START */
-int system_setting_get_locale_timeformat_24hour(system_settings_key_e key, void **value)
+int system_setting_get_locale_timeformat_24hour(system_setting_h item, void **value)
{
SETTING_TRACE_BEGIN;
int vconf_value;
- if (system_setting_vconf_get_value_int(VCONFKEY_REGIONFORMAT_TIME1224, &vconf_value)) {
+ if (system_setting_vconf_get_value_int(item->vconf_key, &vconf_value)) {
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
}
/* LCOV_EXCL_STOP */
-int system_setting_set_locale_timeformat_24hour(system_settings_key_e key, void *value)
+/* LCOV_EXCL_START */
+int system_setting_set_locale_timeformat_24hour(system_setting_h item, void *value)
{
SETTING_TRACE_BEGIN;
bool *vconf_value;
vconf_value = (bool *)value;
if (*vconf_value) {
- if (system_setting_vconf_set_value_int(VCONFKEY_REGIONFORMAT_TIME1224, VCONFKEY_TIME_FORMAT_24)) {
+ if (system_setting_vconf_set_value_int(item->vconf_key, VCONFKEY_TIME_FORMAT_24)) {
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
} else {
- if (system_setting_vconf_set_value_int(VCONFKEY_REGIONFORMAT_TIME1224, VCONFKEY_TIME_FORMAT_12)) {
+ if (system_setting_vconf_set_value_int(item->vconf_key, VCONFKEY_TIME_FORMAT_12)) {
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
return SYSTEM_SETTINGS_ERROR_NONE;
}
+/* LCOV_EXCL_STOP */
-int system_setting_set_changed_callback_locale_timeformat_24hour(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_REGIONFORMAT_TIME1224, SYSTEM_SETTINGS_KEY_LOCALE_TIMEFORMAT_24HOUR, SYSTEM_SETTING_CALLBACK_SLOT_3, user_data);
-}
-
-int system_setting_unset_changed_callback_locale_timeformat_24hour(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_REGIONFORMAT_TIME1224, SYSTEM_SETTING_CALLBACK_SLOT_3);
-}
-
-int system_setting_get_locale_timezone(system_settings_key_e key, void **value)
+/* LCOV_EXCL_START */
+int system_setting_get_locale_timezone(system_setting_h item, void **value)
{
char tzpath[256];
ssize_t len = readlink(SETTING_TZONE_SYMLINK_PATH, tzpath, sizeof(tzpath)-1);
*value = strdup(&tzpath[20]);
return SYSTEM_SETTINGS_ERROR_NONE;
}
+/* LCOV_EXCL_STOP */
/* LCOV_EXCL_START */
-int system_setting_set_locale_timezone(system_settings_key_e key, void *value)
+int system_setting_set_locale_timezone(system_setting_h item, void *value)
{
SETTING_TRACE_BEGIN;
char *timezone_value = NULL;
if (is_load == 0) {
alarmmgr_set_timezone(tz_path);
- if (system_setting_vconf_set_value_string(VCONFKEY_SETAPPL_TIMEZONE_ID, timezone_value)) {
+ if (system_setting_vconf_set_value_string(item->vconf_key, timezone_value)) {
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
return SYSTEM_SETTINGS_ERROR_NONE;
}
/* LCOV_EXCL_STOP */
-
-
-/* LCOV_EXCL_START */
-int system_setting_set_changed_callback_locale_timezone(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_TIMEZONE_ID, SYSTEM_SETTINGS_KEY_LOCALE_TIMEZONE, SYSTEM_SETTING_CALLBACK_SLOT_4, user_data);
-}
-/* LCOV_EXCL_STOP */
-
/* LCOV_EXCL_START */
-int system_setting_unset_changed_callback_locale_timezone(system_settings_key_e key)
-{
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_TIMEZONE_ID, SYSTEM_SETTING_CALLBACK_SLOT_4);
-}
-/* LCOV_EXCL_STOP */
-
-/* LCOV_EXCL_START */
-int system_setting_set_changed_callback_locale_timezone_changed(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
-}
-/* LCOV_EXCL_STOP */
-
-/* LCOV_EXCL_START */
-int system_setting_unset_changed_callback_locale_timezone_changed(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
-}
-/* LCOV_EXCL_STOP */
-
-
-/* LCOV_EXCL_START */
-int system_setting_get_time_changed(system_settings_key_e key, void **value)
+int system_setting_get_time_changed(system_setting_h item, void **value)
{
SETTING_TRACE_BEGIN;
time_t cur_tick;
}
/* LCOV_EXCL_STOP */
-int system_setting_set_changed_callback_time_changed(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_SYSTEM_TIME_CHANGED, SYSTEM_SETTINGS_KEY_TIME_CHANGED, SYSTEM_SETTING_CALLBACK_SLOT_3, user_data);
-}
-
-int system_setting_unset_changed_callback_time_changed(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SYSTEM_TIME_CHANGED, SYSTEM_SETTING_CALLBACK_SLOT_3);
-}
-
-int system_setting_set_changed_callback_sound_lock(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_SOUND_LOCK_BOOL, SYSTEM_SETTINGS_KEY_SOUND_LOCK, SYSTEM_SETTING_CALLBACK_SLOT_3, user_data);
-}
-
-int system_setting_unset_changed_callback_sound_lock(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_SOUND_LOCK_BOOL, SYSTEM_SETTING_CALLBACK_SLOT_3);
-}
-
/**
- * a = VCONFKEY_SETAPPL_SOUND_STATUS_BOOL b = VCONFKEY_SETAPPL_VIBRATION_STATUS_BOOL
+ * a = VCONFKEY_SETAPPL_SOUND_STATUS_BOOL(==item->vconf_key) b = VCONFKEY_SETAPPL_VIBRATION_STATUS_BOOL
*
* a == false, b == false --> silent mode
* a == true, b == false --> sound mode
* a == false, b == true --> vibration mode
*/
/* LCOV_EXCL_START */
-int system_setting_get_sound_silent_mode(system_settings_key_e key, void **value)
+int system_setting_get_sound_silent_mode(system_setting_h item, void **value)
{
SETTING_TRACE_BEGIN;
bool sound_cond;
bool vib_cond;
bool vconf_value;
- if (system_setting_vconf_get_value_bool(VCONFKEY_SETAPPL_SOUND_STATUS_BOOL, &sound_cond)) {
+ if (system_setting_vconf_get_value_bool(item->vconf_key, &sound_cond)) {
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
/* LCOV_EXCL_STOP */
/**
- * a = VCONFKEY_SETAPPL_SOUND_STATUS_BOOL b = VCONFKEY_SETAPPL_VIBRATION_STATUS_BOOL
+ * a = VCONFKEY_SETAPPL_SOUND_STATUS_BOOL(==item->vconf_key) b = VCONFKEY_SETAPPL_VIBRATION_STATUS_BOOL
*
* a == false, b == false --> silent mode
* a == true, b == false --> sound mode
*/
-int system_setting_set_sound_silent_mode(system_settings_key_e key, void *value)
+int system_setting_set_sound_silent_mode(system_setting_h item, void *value)
{
SETTING_TRACE_BEGIN;
bool *vconf_value;
vconf_vib = false;
}
- if (system_setting_vconf_set_value_bool(VCONFKEY_SETAPPL_SOUND_STATUS_BOOL, vconf_sound)) {
+ if (system_setting_vconf_set_value_bool(item->vconf_key, vconf_sound)) {
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
if (system_setting_vconf_set_value_bool(VCONFKEY_SETAPPL_VIBRATION_STATUS_BOOL, vconf_vib)) {
return SYSTEM_SETTINGS_ERROR_NONE;
}
-
-
-/* TODO */
-int system_setting_set_changed_callback_sound_silent_mode(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_SOUND_STATUS_BOOL, SYSTEM_SETTINGS_KEY_SOUND_SILENT_MODE, SYSTEM_SETTING_CALLBACK_SLOT_3, user_data);
-}
-
-/* TODO */
-int system_setting_unset_changed_callback_sound_silent_mode(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_SOUND_STATUS_BOOL, SYSTEM_SETTING_CALLBACK_SLOT_3);
-}
-
-int system_setting_set_changed_callback_sound_touch(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_TOUCH_SOUNDS_BOOL, SYSTEM_SETTINGS_KEY_SOUND_TOUCH, SYSTEM_SETTING_CALLBACK_SLOT_2, user_data);
-}
-
-int system_setting_unset_changed_callback_sound_touch(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_TOUCH_SOUNDS_BOOL, SYSTEM_SETTING_CALLBACK_SLOT_2);
-}
-
-int system_setting_set_changed_callback_auto_rotation_mode(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_AUTO_ROTATE_SCREEN_BOOL, SYSTEM_SETTINGS_KEY_DISPLAY_SCREEN_ROTATION_AUTO, SYSTEM_SETTING_CALLBACK_SLOT_2, user_data);
-}
-
-int system_setting_unset_changed_callback_auto_rotation_mode(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_AUTO_ROTATE_SCREEN_BOOL, SYSTEM_SETTING_CALLBACK_SLOT_2);
-}
-
/* LCOV_EXCL_START */
-int system_setting_set_screen_backlight_time(system_settings_key_e key, void *value)
+int system_setting_set_screen_backlight_time(system_setting_h item, void *value)
{
SETTING_TRACE_BEGIN;
int *vconf_value;
return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
}
- if (system_setting_vconf_set_value_int(VCONFKEY_SETAPPL_LCD_TIMEOUT_NORMAL, *vconf_value)) {
+ if (system_setting_vconf_set_value_int(item->vconf_key, *vconf_value)) {
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
SETTING_TRACE_END;
}
/* LCOV_EXCL_STOP */
-int system_setting_set_changed_callback_screen_backlight_time(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_LCD_TIMEOUT_NORMAL, SYSTEM_SETTINGS_KEY_SCREEN_BACKLIGHT_TIME, SYSTEM_SETTING_CALLBACK_SLOT_2, user_data);
-}
-
-int system_setting_unset_changed_callback_screen_backlight_time(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_LCD_TIMEOUT_NORMAL, SYSTEM_SETTING_CALLBACK_SLOT_2);
-}
-
/* LCOV_EXCL_START */
-int system_setting_set_sound_notification(system_settings_key_e key, void *value)
+int system_setting_set_sound_notification(system_setting_h item, void *value)
{
SETTING_TRACE_BEGIN;
char *vconf_value = NULL;
int is_load = _is_file_accessible(vconf_value);
if (is_load == 0) {
//SETTING_TRACE(" system_setting_vconf_set_value_string(VCONFKEY_SETAPPL_NOTI_MSG_RINGTONE_PATH_STR, %s) TRY", vconf_value);
- if (system_setting_vconf_set_value_string(VCONFKEY_SETAPPL_NOTI_MSG_RINGTONE_PATH_STR, vconf_value)) {
+ if (system_setting_vconf_set_value_string(item->vconf_key, vconf_value)) {
//SETTING_TRACE(" system_setting_vconf_set_value_string(VCONFKEY_SETAPPL_NOTI_MSG_RINGTONE_PATH_STR, %s) FAIL", vconf_value);
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
}
/* LCOV_EXCL_STOP */
-int system_setting_set_changed_callback_sound_notification(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_NOTI_MSG_RINGTONE_PATH_STR, SYSTEM_SETTINGS_KEY_SOUND_NOTIFICATION, SYSTEM_SETTING_CALLBACK_SLOT_0, user_data);
-}
-
-int system_setting_unset_changed_callback_sound_notification(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_NOTI_MSG_RINGTONE_PATH_STR, SYSTEM_SETTING_CALLBACK_SLOT_0);
-}
-
-int system_setting_set_changed_callback_notification_repetition_period(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_NOTI_MSG_ALERT_REP_TYPE_INT, SYSTEM_SETTINGS_KEY_SOUND_NOTIFICATION_REPETITION_PERIOD, SYSTEM_SETTING_CALLBACK_SLOT_1, user_data);
-}
-
-int system_setting_unset_changed_callback_notification_repetition_period(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_NOTI_MSG_ALERT_REP_TYPE_INT, SYSTEM_SETTING_CALLBACK_SLOT_1);
-}
-
/* LCOV_EXCL_START */
int system_setting_set_device_name(system_settings_key_e key, void *value)
{
}
/* LCOV_EXCL_STOP */
-int system_setting_set_changed_callback_device_name(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_DEVICE_NAME_STR, SYSTEM_SETTINGS_KEY_DEVICE_NAME, SYSTEM_SETTING_CALLBACK_SLOT_0, user_data);
-}
-
-int system_setting_unset_changed_callback_device_name(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_DEVICE_NAME_STR, SYSTEM_SETTING_CALLBACK_SLOT_0);
-}
-
-int system_setting_set_changed_callback_network_flight_mode(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_TELEPHONY_FLIGHT_MODE, SYSTEM_SETTINGS_KEY_NETWORK_FLIGHT_MODE, SYSTEM_SETTING_CALLBACK_SLOT_3, user_data);
-}
-
-int system_setting_unset_changed_callback_network_flight_mode(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_TELEPHONY_FLIGHT_MODE, SYSTEM_SETTING_CALLBACK_SLOT_3);
-}
-
-int system_setting_get_network_wifi_notification(system_settings_key_e key, void **value)
+int system_setting_get_network_wifi_notification(system_setting_h item, void **value)
{
SETTING_TRACE_BEGIN;
int vconf_value;
- if (system_setting_vconf_get_value_int(VCONFKEY_WIFI_ENABLE_QS, &vconf_value)) {
+ if (system_setting_vconf_get_value_int(item->vconf_key, &vconf_value)) {
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
bool bret ;
return SYSTEM_SETTINGS_ERROR_NONE;
}
-int system_setting_set_changed_callback_network_wifi_notification(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_WIFI_ENABLE_QS, SYSTEM_SETTINGS_KEY_NETWORK_WIFI_NOTIFICATION, SYSTEM_SETTING_CALLBACK_SLOT_4, user_data);
-}
-
-int system_setting_unset_changed_callback_network_wifi_notification(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_WIFI_ENABLE_QS, SYSTEM_SETTING_CALLBACK_SLOT_4);
-}
-
-/* LCOV_EXCL_START */
-int system_setting_set_changed_callback_lock_state(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- return system_setting_vconf_set_changed_cb(VCONFKEY_IDLE_LOCK_STATE_READ_ONLY, SYSTEM_SETTINGS_KEY_LOCK_STATE, SYSTEM_SETTING_CALLBACK_SLOT_4, user_data);
-}
-/* LCOV_EXCL_STOP */
-
-/* LCOV_EXCL_START */
-int system_setting_unset_changed_callback_lock_state(system_settings_key_e key)
-{
- return system_setting_vconf_unset_changed_cb(VCONFKEY_IDLE_LOCK_STATE_READ_ONLY, SYSTEM_SETTING_CALLBACK_SLOT_4);
-}
-/* LCOV_EXCL_STOP */
-
//----------------------------------------------------------------------------------------------------------------------------
#define DEFAULT_ADS_ID "00000000-0000-0000-0000-000000000000"
-int system_setting_get_ads_id(system_settings_key_e key, void **value)
+int system_setting_get_ads_id(system_setting_h item, void **value)
{
SETTING_TRACE_BEGIN;
int optout_value = 0;
}
char *vconf_value = NULL;
- if (system_setting_vconf_get_value_string(VCONFKEY_SETAPPL_AD_ID, &vconf_value)) {
+ if (system_setting_vconf_get_value_string(item->vconf_key, &vconf_value)) {
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
system_setting_set_ad_id(key, uuid_unparsed); //example of setting the value
}
#endif
-int system_setting_set_ads_id(system_settings_key_e key, void *value)
+int system_setting_set_ads_id(system_setting_h item, void *value)
{
SETTING_TRACE_BEGIN;
char *vconf_value = NULL;
vconf_value = (char *)value;
- if (system_setting_vconf_set_value_string(VCONFKEY_SETAPPL_AD_ID, vconf_value)) {
+ if (system_setting_vconf_set_value_string(item->vconf_key, vconf_value)) {
SETTING_TRACE("Setting VCONFKEY_SETAPPL_AD_ID failed");
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
return SYSTEM_SETTINGS_ERROR_NONE;
}
-int system_setting_set_changed_callback_ads_id(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_AD_ID, SYSTEM_SETTINGS_KEY_ADS_ID, SYSTEM_SETTING_CALLBACK_SLOT_0, user_data);
-}
-
-int system_setting_unset_changed_callback_ads_id(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_AD_ID, SYSTEM_SETTING_CALLBACK_SLOT_0);
-}
-
int system_settings_feature_check_bool(char *path)
{
bool feature_data = false;
return ret;
}
+/* LCOV_EXCL_START */
int system_setting_feature_check_wearable_profile(void *value)
{
static bool first_query = true;
return ret;
}
+/* LCOV_EXCL_STOP */
/* LCOV_EXCL_START */
-int system_setting_get_uds_state(system_settings_key_e key, void **value)
+int system_setting_get_uds_state(system_setting_h item, void **value)
{
int ** p_value = (int**)value;
int vconf_value;
char *vconf_string_value = NULL;
- if (system_setting_vconf_get_value_int(VCONFKEY_SETAPPL_UDSM, &vconf_value)) {
+ if (system_setting_vconf_get_value_int(item->vconf_key, &vconf_value)) {
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
return SYSTEM_SETTINGS_ERROR_NONE;
}
/* LCOV_EXCL_STOP */
-
-/* LCOV_EXCL_START */
-int system_setting_set_changed_callback_uds_state(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_UDSM, SYSTEM_SETTINGS_KEY_ULTRA_DATA_SAVE, SYSTEM_SETTING_CALLBACK_SLOT_4, user_data);
-}
-/* LCOV_EXCL_STOP */
-
-/* LCOV_EXCL_START */
-int system_setting_unset_changed_callback_uds_state(system_settings_key_e key)
-{
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_UDSM, SYSTEM_SETTING_CALLBACK_SLOT_4);
-}
-/* LCOV_EXCL_STOP */
-
-/* LCOV_EXCL_START */
-int system_setting_set_changed_callback_uds_pkg_list(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_UDSM_PKGID_LIST, SYSTEM_SETTINGS_KEY_ULTRA_DATA_SAVE_PKG_LIST, SYSTEM_SETTING_CALLBACK_SLOT_4, user_data);
-}
-/* LCOV_EXCL_STOP */
-
-/* LCOV_EXCL_START */
-int system_setting_unset_changed_callback_uds_pkg_list(system_settings_key_e key)
-{
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_UDSM_PKGID_LIST, SYSTEM_SETTING_CALLBACK_SLOT_4);
-}
-/* LCOV_EXCL_STOP */
-
-int system_setting_set_changed_callback_accessibility_tts(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_ACCESSIBILITY_TTS, SYSTEM_SETTINGS_KEY_ACCESSIBILITY_TTS, SYSTEM_SETTING_CALLBACK_SLOT_2, user_data);
-}
-
-int system_setting_unset_changed_callback_accessibility_tts(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_ACCESSIBILITY_TTS, SYSTEM_SETTING_CALLBACK_SLOT_2);
-}
-
-int system_setting_set_changed_callback_vibration(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_VIBRATION_STATUS_BOOL, SYSTEM_SETTINGS_KEY_VIBRATION, SYSTEM_SETTING_CALLBACK_SLOT_2, user_data);
-}
-
-int system_setting_unset_changed_callback_vibration(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_VIBRATION_STATUS_BOOL, SYSTEM_SETTING_CALLBACK_SLOT_2);
-}
-
-int system_setting_set_changed_callback_automatic_time_update(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_STATE_AUTOMATIC_TIME_UPDATE_BOOL, SYSTEM_SETTINGS_KEY_AUTOMATIC_TIME_UPDATE, SYSTEM_SETTING_CALLBACK_SLOT_2, user_data);
-}
-
-int system_setting_unset_changed_callback_automatic_time_update(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_STATE_AUTOMATIC_TIME_UPDATE_BOOL, SYSTEM_SETTING_CALLBACK_SLOT_2);
-}
-
-int system_setting_set_changed_callback_developer_option_state(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_DEVELOPER_OPTION_STATE, SYSTEM_SETTINGS_KEY_DEVELOPER_OPTION_STATE, SYSTEM_SETTING_CALLBACK_SLOT_2, user_data);
-}
-
-int system_setting_unset_changed_callback_developer_option_state(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_DEVELOPER_OPTION_STATE, SYSTEM_SETTING_CALLBACK_SLOT_2);
-}
-
-int system_setting_set_changed_callback_accessibility_grayscale(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_ACCESSIBILITY_GREYSCALE, SYSTEM_SETTINGS_KEY_ACCESSIBILITY_GRAYSCALE, SYSTEM_SETTING_CALLBACK_SLOT_2, user_data);
-}
-
-int system_setting_unset_changed_callback_accessibility_grayscale(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_ACCESSIBILITY_GREYSCALE, SYSTEM_SETTING_CALLBACK_SLOT_2);
-}
-
-int system_setting_set_changed_callback_accessibility_negative_color(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_ACCESSIBILITY_HIGH_CONTRAST, SYSTEM_SETTINGS_KEY_ACCESSIBILITY_NEGATIVE_COLOR, SYSTEM_SETTING_CALLBACK_SLOT_2, user_data);
-}
-
-int system_setting_unset_changed_callback_accessibility_negative_color(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_ACCESSIBILITY_HIGH_CONTRAST, SYSTEM_SETTING_CALLBACK_SLOT_2);
-}
-
-/* LCOV_EXCL_START */
-int system_setting_set_changed_callback_rotary_event_enabled(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_ROTARY_EVENT_ENABLED_BOOL, SYSTEM_SETTINGS_KEY_ROTARY_EVENT_ENABLED, SYSTEM_SETTING_CALLBACK_SLOT_3, user_data);
-}
-/* LCOV_EXCL_STOP */
-
-/* LCOV_EXCL_START */
-int system_setting_unset_changed_callback_rotary_event_enabled(system_settings_key_e key)
-{
- SETTING_TRACE_BEGIN;
- return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_ROTARY_EVENT_ENABLED_BOOL, SYSTEM_SETTING_CALLBACK_SLOT_3);
-}
-/* LCOV_EXCL_STOP */
-/* * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+/*
+ * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
#define LOG_TAG "TIZEN_N_SYSTEM_SETTINGS"
#define SYSTEM_SETTINGS_MAX -1
+#define GET_SLOT(x) ((x)%4)
system_setting_s system_setting_table[] = {
SYSTEM_SETTING_DATA_TYPE_STRING,
system_setting_get_incoming_call_ringtone,
system_setting_set_incoming_call_ringtone,
- system_setting_set_changed_callback_incoming_call_ringtone,
- system_setting_unset_changed_callback_incoming_call_ringtone,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
system_setting_add_incoming_call_ringtone, /* ADD */
system_setting_del_incoming_call_ringtone, /* DEL */
SYSTEM_SETTING_DATA_TYPE_STRING,
system_setting_get_vconf,
system_setting_set_wallpaper_home_screen,
- system_setting_set_changed_callback_wallpaper_home_screen,
- system_setting_unset_changed_callback_wallpaper_home_screen,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_STRING,
system_setting_get_vconf,
system_setting_set_wallpaper_lock_screen,
- system_setting_set_changed_callback_wallpaper_lock_screen,
- system_setting_unset_changed_callback_wallpaper_lock_screen,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_INT,
system_setting_get_vconf,
system_setting_set_font_size,
- system_setting_set_changed_callback_font_size,
- system_setting_unset_changed_callback_font_size,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_STRING,
system_setting_get_vconf,
system_setting_set_font_type,
- system_setting_set_changed_callback_font_type,
- system_setting_unset_changed_callback_font_type,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_BOOL,
system_setting_get_vconf,
system_setting_set_vconf,
- system_setting_set_changed_callback_motion_activation,
- system_setting_unset_changed_callback_motion_activation,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_STRING,
system_setting_get_email_alert_ringtone,
system_setting_set_email_alert_ringtone,
- system_setting_set_changed_callback_email_alert_ringtone,
- system_setting_unset_changed_callback_email_alert_ringtone,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_BOOL,
system_setting_get_vconf,
system_setting_set_vconf,
- system_setting_set_changed_callback_usb_debugging_option,
- system_setting_unset_changed_callback_usb_debugging_option,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_BOOL,
system_setting_get_vconf,
system_setting_set_vconf,
- system_setting_set_changed_callback_3g_data_network,
- system_setting_unset_changed_callback_3g_data_network,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_STRING,
system_setting_get_lockscreen_app,
system_setting_set_lockscreen_app,
- system_setting_set_changed_callback_lockscreen_app,
- system_setting_unset_changed_callback_lockscreen_app,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_STRING,
system_setting_get_locale_country,
system_setting_set_locale_country,
- system_setting_set_changed_callback_locale_country,
- system_setting_unset_changed_callback_locale_country,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_STRING,
system_setting_get_locale_language,
system_setting_set_locale_language,
- system_setting_set_changed_callback_locale_language,
- system_setting_unset_changed_callback_locale_language,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_BOOL,
system_setting_get_locale_timeformat_24hour,
system_setting_set_locale_timeformat_24hour,
- system_setting_set_changed_callback_locale_timeformat_24hour,
- system_setting_unset_changed_callback_locale_timeformat_24hour,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_STRING,
system_setting_get_locale_timezone,
system_setting_set_locale_timezone,
- system_setting_set_changed_callback_locale_timezone,
- system_setting_unset_changed_callback_locale_timezone,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_INT,
system_setting_get_time_changed,
NULL,
- system_setting_set_changed_callback_time_changed,
- system_setting_unset_changed_callback_time_changed,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_BOOL,
system_setting_get_vconf,
NULL,
- system_setting_set_changed_callback_sound_lock,
- system_setting_unset_changed_callback_sound_lock,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_BOOL,
system_setting_get_sound_silent_mode,
system_setting_set_sound_silent_mode,
- system_setting_set_changed_callback_sound_silent_mode,
- system_setting_unset_changed_callback_sound_silent_mode,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_BOOL,
system_setting_get_vconf,
system_setting_set_vconf,
- system_setting_set_changed_callback_sound_touch,
- system_setting_unset_changed_callback_sound_touch,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_BOOL,
system_setting_get_vconf,
system_setting_set_vconf,
- system_setting_set_changed_callback_auto_rotation_mode,
- system_setting_unset_changed_callback_auto_rotation_mode,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_STRING,
system_setting_get_vconf,
NULL,
- system_setting_set_changed_callback_device_name,
- system_setting_unset_changed_callback_device_name,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_BOOL,
system_setting_get_vconf,
NULL,
- system_setting_set_changed_callback_motion_activation,
- system_setting_unset_changed_callback_motion_activation,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_BOOL,
system_setting_get_network_wifi_notification,
NULL,
- system_setting_set_changed_callback_network_wifi_notification,
- system_setting_unset_changed_callback_network_wifi_notification,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_BOOL,
system_setting_get_vconf,
NULL,
- system_setting_set_changed_callback_network_flight_mode,
- system_setting_unset_changed_callback_network_flight_mode,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_INT,
system_setting_get_vconf,
system_setting_set_screen_backlight_time,
- system_setting_set_changed_callback_screen_backlight_time,
- system_setting_unset_changed_callback_screen_backlight_time,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_STRING,
system_setting_get_vconf,
system_setting_set_sound_notification,
- system_setting_set_changed_callback_sound_notification,
- system_setting_unset_changed_callback_sound_notification,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_INT,
system_setting_get_vconf,
system_setting_set_vconf,
- system_setting_set_changed_callback_notification_repetition_period,
- system_setting_unset_changed_callback_notification_repetition_period,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_INT,
system_setting_get_vconf,
system_setting_set_vconf,
- system_setting_set_changed_callback_lock_state,
- system_setting_unset_changed_callback_lock_state,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* add */
NULL, /* del */
SYSTEM_SETTING_DATA_TYPE_STRING,
system_setting_get_ads_id,
system_setting_set_ads_id,
- system_setting_set_changed_callback_ads_id,
- system_setting_unset_changed_callback_ads_id,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* add */
NULL, /* del */
SYSTEM_SETTING_DATA_TYPE_INT,
system_setting_get_uds_state,
NULL,
- system_setting_set_changed_callback_uds_state,
- system_setting_unset_changed_callback_uds_state,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* add */
NULL, /* del */
SYSTEM_SETTING_DATA_TYPE_STRING,
NULL,
NULL,
- system_setting_set_changed_callback_uds_pkg_list,
- system_setting_unset_changed_callback_uds_pkg_list,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* add */
NULL, /* del */
SYSTEM_SETTING_DATA_TYPE_BOOL,
system_setting_get_vconf,
system_setting_set_vconf,
- system_setting_set_changed_callback_accessibility_tts,
- system_setting_unset_changed_callback_accessibility_tts,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_BOOL,
system_setting_get_vconf,
system_setting_set_vconf,
- system_setting_set_changed_callback_vibration,
- system_setting_unset_changed_callback_vibration,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_BOOL,
system_setting_get_vconf,
system_setting_set_vconf,
- system_setting_set_changed_callback_automatic_time_update,
- system_setting_unset_changed_callback_automatic_time_update,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_BOOL,
system_setting_get_vconf,
system_setting_set_vconf,
- system_setting_set_changed_callback_developer_option_state,
- system_setting_unset_changed_callback_developer_option_state,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_BOOL,
system_setting_get_vconf,
system_setting_set_vconf,
- system_setting_set_changed_callback_accessibility_grayscale,
- system_setting_unset_changed_callback_accessibility_grayscale,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_BOOL,
system_setting_get_vconf,
system_setting_set_vconf,
- system_setting_set_changed_callback_accessibility_negative_color,
- system_setting_unset_changed_callback_accessibility_negative_color,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
SYSTEM_SETTING_DATA_TYPE_BOOL,
system_setting_get_vconf,
system_setting_set_vconf,
- system_setting_set_changed_callback_rotary_event_enabled,
- system_setting_unset_changed_callback_rotary_event_enabled,
+ system_setting_set_changed_vconf_genernal_callback,
+ system_setting_unset_changed_vconf_genernal_callback,
NULL,
NULL, /* ADD */
NULL, /* DEL */
}
#else
+/* LCOV_EXCL_START */
int binary_search_for_item(system_settings_key_e key)
{
int start = 0;
LOGE("Enter [%s], key=%d, Can NOT find the key", __FUNCTION__, key);
return -1;
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
int system_settings_get_item(system_settings_key_e key, system_setting_h *item)
{
LOGE("Enter [%s], key=%d", __FUNCTION__, key);
}
#endif
+/* LCOV_EXCL_STOP */
-int system_setting_get_vconf(system_settings_key_e key, void **value)
+int system_setting_get_vconf(system_setting_h item, void **value)
{
SETTING_TRACE_BEGIN;
- system_setting_h item;
char *vconf_char;
int vconf_int;
int **val = (int**)value;
bool vconf_bool;
- int ret = system_settings_get_item(key, &item);
- if (ret != 0) {
- if (ret == SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER) {
- _dump_context_node(key);
- LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid key", __FUNCTION__, SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER);
- }
- return ret;
- }
-
switch(item->data_type) {
case SYSTEM_SETTING_DATA_TYPE_STRING:
if (system_setting_vconf_get_value_string(item->vconf_key, &vconf_char))
return SYSTEM_SETTINGS_ERROR_NONE;
}
-int system_setting_set_vconf(system_settings_key_e key, void *value)
+
+/* LCOV_EXCL_START */
+int system_setting_set_vconf(system_setting_h item, void *value)
{
SETTING_TRACE_BEGIN;
- system_setting_h item;
char *vconf_char;
int vconf_int;
bool vconf_bool;
- int ret = system_settings_get_item(key, &item);
- if (ret != 0) {
- if (ret == SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER) {
- _dump_context_node(key);
- LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid key", __FUNCTION__, SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER);
- }
- return ret;
- }
-
switch(item->data_type) {
case SYSTEM_SETTING_DATA_TYPE_STRING:
vconf_char = (char*)value;
return SYSTEM_SETTINGS_ERROR_NONE;
}
+/* LCOV_EXCL_STOP */
int system_settings_get_value(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
{
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
- return system_setting_getter(key, value);
+ return system_setting_getter(system_setting_item, value);
}
/* LCOV_EXCL_START */
return SYSTEM_SETTINGS_ERROR_NOT_SUPPORTED;
}
- return system_setting_setter(key, value);
+ return system_setting_setter(system_setting_item, value);
}
/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
int system_settings_add_value(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
{
LOGE("Enter [%s]", __FUNCTION__);
return system_setting_adder(key, value);
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
int system_settings_del_value(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
{
LOGE("Enter [%s]", __FUNCTION__);
return system_setting_deler(key, value);
}
+/* LCOV_EXCL_STOP */
-
-
-
+/* LCOV_EXCL_START */
int system_settings_list_value(system_settings_key_e key, system_setting_data_type_e data_type, bool (*system_setting_data_iterator)(int, const char* , void *), void *user_data)
{
LOGE("Enter [%s]", __FUNCTION__);
return system_setting_lister(key, system_setting_data_iterator, user_data);
}
-
-
-
-
-
+/* LCOV_EXCL_STOP */
/* LCOV_EXCL_START */
int system_settings_set_value_int(system_settings_key_e key, int value)
return system_settings_get_value(key, SYSTEM_SETTING_DATA_TYPE_STRING, (void **)value);
}
+int system_setting_set_changed_vconf_genernal_callback(system_setting_h item, void *user_data)
+{
+ SETTING_TRACE_BEGIN;
+ return system_setting_vconf_set_changed_cb(item->vconf_key, item->key, GET_SLOT(item->key), user_data);
+}
+
+int system_setting_unset_changed_vconf_genernal_callback(system_setting_h item)
+{
+ SETTING_TRACE_BEGIN;
+ return system_setting_vconf_unset_changed_cb(item->vconf_key, GET_SLOT(item->key));
+}
/*PUBLIC*/
int system_settings_set_changed_cb(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
- return system_setting_set_changed_cb(key, callback, user_data);
+ return system_setting_set_changed_cb(system_setting_item, user_data);
}
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
- return system_setting_unset_changed_cb(key);
+ return system_setting_unset_changed_cb(system_setting_item);
}
int system_settings_add_changed_cb(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
{
LOGE("Enter [%s]", __FUNCTION__);
- char *vconf_string = NULL;
system_setting_h system_setting_item;
if (callback == NULL)
return ret;
}
- system_settings_vconf_get_key_string(key, &vconf_string);
- LOGE("[%s] key = %d %s", __FUNCTION__, key, vconf_string ? vconf_string : "NULL");
+ if (system_setting_item->vconf_key == NULL)
+ return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+
+ LOGE("[%s] key = %d %s", __FUNCTION__, key, system_setting_item->vconf_key);
/* Store the callback function from application side */
ret = add_multi_callback(&system_setting_item->changed_cb_list, callback, user_data);
}
if (!system_setting_item->changed_cb_list.is_registered) {
- int ret = system_setting_vconf_set_changed_multi_cb(vconf_string, key);
+ int ret = system_setting_vconf_set_changed_multi_cb(system_setting_item->vconf_key, key);
if (ret == SYSTEM_SETTINGS_ERROR_NONE)
system_setting_item->changed_cb_list.is_registered = 1;
LOGE("Leave [%s]", __FUNCTION__);
int system_settings_remove_changed_cb(system_settings_key_e key, system_settings_changed_cb callback)
{
LOGE("Enter [%s]", __FUNCTION__);
- char *vconf_string = NULL;
system_setting_h system_setting_item;
if (callback == NULL) {
if (system_setting_item->changed_cb_list.list == NULL) {
int ret = 0;
- system_settings_vconf_get_key_string(key, &vconf_string);
- if (vconf_string == NULL)
+ if (system_setting_item->vconf_key == NULL)
return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
- ret = system_setting_vconf_unset_changed_multi_cb(vconf_string, key);
+ ret = system_setting_vconf_unset_changed_multi_cb(system_setting_item->vconf_key, key);
if (ret == SYSTEM_SETTINGS_ERROR_NONE)
system_setting_item->changed_cb_list.is_registered = 0;
LOGE("Leave [%s]", __FUNCTION__);
#define LOG_TAG "TIZEN_N_SYSTEM_SETTINGS"
-static char *_system_settings_vconf_table[] = {
- VCONFKEY_SETAPPL_CALL_RINGTONE_PATH_STR,
- VCONFKEY_BGSET,
- VCONFKEY_IDLE_LOCK_BGSET,
- VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_SIZE,
- VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_NAME,
- VCONFKEY_SETAPPL_MOTION_ACTIVATION,
- VCONFKEY_SETAPPL_NOTI_MSG_RINGTONE_PATH_STR,
- VCONFKEY_SETAPPL_USB_DEBUG_MODE_BOOL,
- VCONFKEY_3G_ENABLE,
- NULL,
- VCONFKEY_SETAPPL_3RD_LOCK_PKG_NAME_STR,
- NULL,
- VCONFKEY_REGIONFORMAT,
- VCONFKEY_LANGSET,
- VCONFKEY_REGIONFORMAT_TIME1224,
- VCONFKEY_SETAPPL_TIMEZONE_ID,
- VCONFKEY_SYSTEM_TIME_CHANGED,
- VCONFKEY_SETAPPL_SOUND_LOCK_BOOL,
- VCONFKEY_SETAPPL_SOUND_STATUS_BOOL,
- VCONFKEY_SETAPPL_TOUCH_SOUNDS_BOOL,
- VCONFKEY_SETAPPL_AUTO_ROTATE_SCREEN_BOOL,
- VCONFKEY_SETAPPL_DEVICE_NAME_STR,
- VCONFKEY_SETAPPL_MOTION_ACTIVATION,
- VCONFKEY_WIFI_ENABLE_QS,
- VCONFKEY_TELEPHONY_FLIGHT_MODE,
- VCONFKEY_SETAPPL_LCD_TIMEOUT_NORMAL,
- VCONFKEY_SETAPPL_NOTI_MSG_RINGTONE_PATH_STR,
- VCONFKEY_SETAPPL_NOTI_MSG_ALERT_REP_TYPE_INT,
- VCONFKEY_IDLE_LOCK_STATE_READ_ONLY,
- VCONFKEY_SETAPPL_AD_ID,
- VCONFKEY_SETAPPL_UDSM,
- VCONFKEY_SETAPPL_UDSM_PKGID_LIST,
- VCONFKEY_SETAPPL_ACCESSIBILITY_TTS,
- VCONFKEY_SETAPPL_VIBRATION_STATUS_BOOL,
- VCONFKEY_SETAPPL_STATE_AUTOMATIC_TIME_UPDATE_BOOL,
- VCONFKEY_SETAPPL_DEVELOPER_OPTION_STATE,
- VCONFKEY_SETAPPL_ACCESSIBILITY_GREYSCALE,
- VCONFKEY_SETAPPL_ACCESSIBILITY_HIGH_CONTRAST,
- VCONFKEY_SETAPPL_ROTARY_EVENT_ENABLED_BOOL,
- "MAX"
-};
-
int system_setting_vconf_get_value_int(const char *vconf_key, int *value)
{
return vconf_get_int(vconf_key, value);
/* LCOV_EXCL_STOP */
/* LCOV_EXCL_START */
-static void system_setting_vconf_event_cb5(keynode_t *node, void *event_data)
-{
- system_setting_vconf_event_cb0(node, event_data);
-}
-/* LCOV_EXCL_STOP */
-
-
-/* LCOV_EXCL_START */
static system_setting_vconf_event_cb system_setting_vconf_get_event_cb_slot(system_setting_callback_slot_e slot)
{
switch (slot) {
return system_setting_vconf_event_cb3;
case SYSTEM_SETTING_CALLBACK_SLOT_4:
return system_setting_vconf_event_cb4;
- case SYSTEM_SETTING_CALLBACK_SLOT_5:
- return system_setting_vconf_event_cb5;
default:
return NULL;
}
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
}
-#if 1
if (vconf_notify_key_changed(vconf_key, vconf_event_cb, (void *)key))
-#else
- if (vconf_notify_key_changed(vconf_key, vconf_event_cb, (void *)user_data))
-#endif
{
LOGE("[%s] INVALID_error , %s", __FUNCTION__, "vconf_notify_key_changed error");
return SYSTEM_SETTINGS_ERROR_IO_ERROR;
return SYSTEM_SETTINGS_ERROR_NONE;
}
-int system_settings_vconf_get_key_string(system_settings_key_e key, char **key_string)
-{
- if (key == SYSTEM_SETTINGS_KEY_DEFAULT_FONT_TYPE) {
- *key_string = NULL; /* Not Supported changed callback*/
- return SYSTEM_SETTINGS_ERROR_NOT_SUPPORTED;
- }
-
- *key_string = _system_settings_vconf_table[(int)key];
-
- if (*key_string == NULL)
- return SYSTEM_SETTINGS_ERROR_NOT_SUPPORTED;
-
- return SYSTEM_SETTINGS_ERROR_NONE;
-}
-
static void system_setting_vconf_event_multi_cb(keynode_t *node, void *event_data)
{
LOGE("Enter [%s]", __FUNCTION__);