Add TOUCH_SOUND setter function 53/216153/2 accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.025936 accepted/tizen/5.5/unified/mobile/hotfix/20201027.064502 accepted/tizen/5.5/unified/wearable/hotfix/20201027.120719 accepted/tizen/unified/20191021.220209 submit/tizen/20191021.114207 submit/tizen_5.5/20191031.000002 submit/tizen_5.5_mobile_hotfix/20201026.185102 submit/tizen_5.5_wearable_hotfix/20201026.184302 tizen_5.5.m2_release
authorSemun Lee <semun.lee@samsung.com>
Mon, 21 Oct 2019 11:35:08 +0000 (20:35 +0900)
committerSemun Lee <semun.lee@samsung.com>
Mon, 21 Oct 2019 11:38:31 +0000 (20:38 +0900)
Change-Id: I3e15d0f0c2606cfe2ad3e703301c5ed8bf818d9c
Signed-off-by: Semun Lee <semun.lee@samsung.com>
include/system_settings_private.h
src/system_setting_platform.c
src/system_settings.c

index 2fd0a77..b61c0ca 100644 (file)
@@ -1076,6 +1076,17 @@ int system_setting_unset_changed_callback_sound_silent_mode(system_settings_key_
  * @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
index 174d697..b97a2a3 100644 (file)
@@ -1750,6 +1750,13 @@ int system_setting_get_sound_touch(system_settings_key_e key, void **value)
        return ret;
 }
 
+int system_setting_set_sound_touch(system_settings_key_e key, void *value)
+{
+       SETTING_TRACE_BEGIN;
+       return system_setting_vconf_set_value_bool(VCONFKEY_SETAPPL_TOUCH_SOUNDS_BOOL, *(bool *)value);
+}
+
+
 int system_setting_set_changed_callback_sound_touch(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
 {
        SETTING_TRACE_BEGIN;
index 491d061..e7d6e88 100644 (file)
@@ -314,7 +314,7 @@ system_setting_s system_setting_table[] = {
                SYSTEM_SETTINGS_KEY_SOUND_TOUCH,
                SYSTEM_SETTING_DATA_TYPE_BOOL,
                system_setting_get_sound_touch,
-               NULL,
+               system_setting_set_sound_touch,
                system_setting_set_changed_callback_sound_touch,
                system_setting_unset_changed_callback_sound_touch,
                NULL,