tizen 2.3.1 release tizen_2.3.1 submit/tizen_2.3.1/20150915.080006 tizen_2.3.1_release
authorjk7744.park <jk7744.park@samsung.com>
Tue, 8 Sep 2015 13:12:01 +0000 (22:12 +0900)
committerjk7744.park <jk7744.park@samsung.com>
Tue, 8 Sep 2015 13:12:01 +0000 (22:12 +0900)
14 files changed:
CMakeLists.txt
TC/testcase/utc_system_settings.c [changed mode: 0755->0644]
TC_gui/main.c
TC_gui/main.h
capi-system-system-settings.manifest [new file with mode: 0644]
capi-system-system-settings.pc.in
debian/changelog
doc/system_settings_doc.h [new file with mode: 0644]
include/system_settings.h [changed mode: 0755->0644]
include/system_settings_private.h
packaging/capi-system-system-settings.spec
src/system_setting_platform.c [changed mode: 0755->0644]
src/system_settings.c [changed mode: 0755->0644]
src/system_settings_vconf.c

index 24a38f2..75dd623 100755 (executable)
@@ -10,9 +10,15 @@ SET(PREFIX ${CMAKE_INSTALL_PREFIX})
 SET(INC_DIR include)
 INCLUDE_DIRECTORIES(${INC_DIR})
 
-SET(requires "elementary ecore ecore-x ecore-file dlog vconf appcore-efl capi-base-common glib-2.0 gobject-2.0 fontconfig libxml-2.0")
+SET(requires "elementary ecore ecore-x ecore-file dlog vconf appcore-efl capi-base-common glib-2.0 gobject-2.0 fontconfig libxml-2.0 pkgmgr pkgmgr-info efl-assist")
 SET(pc_requires "capi-base-common")
 
+IF(TIZEN_WEARABLE)
+    ADD_DEFINITIONS(-DTIZEN_WEARABLE)
+ENDIF(TIZEN_WEARABLE)
+IF(TIZEN_MOBILE)
+    ADD_DEFINITIONS(-DTIZEN_MOBILE)
+ENDIF(TIZEN_MOBILE)
 
 INCLUDE(FindPkgConfig)
 pkg_check_modules(${fw_name} REQUIRED ${requires})
old mode 100755 (executable)
new mode 100644 (file)
index c91bddf..b272d2b
@@ -23,7 +23,7 @@
 
 #include <system_settings.h>
 
-// test loop code
+/* test loop code */
 #include <glib.h>
 #include <glib-object.h>
 
@@ -44,10 +44,14 @@ void (*tet_cleanup)(void) = cleanup;
 #define API_NAME_SETTINGS_UNSET_CHANGED_CB     "system_settings_unset_changed_cb"
 
 static void utc_system_settings_set_string_p(void);
-static void utc_system_settings_set_bool_p(void);
 static void utc_system_settings_get_string_p(void);
-static void utc_system_settings_get_int_p(void);
+
+static void utc_system_settings_set_bool_p(void);
 static void utc_system_settings_get_bool_p(void);
+
+static void utc_system_settings_get_int_p(void);
+static void utc_system_settings_set_int_p(void);
+
 static void utc_system_settings_set_changed_cb(void);
 static void utc_system_settings_unset_changed_cb(void);
 
@@ -58,12 +62,13 @@ struct tet_testlist tet_testlist[] = {
        {utc_system_settings_get_string_p, 1},
        {utc_system_settings_get_int_p, 1},
        {utc_system_settings_get_bool_p, 1},
+       {utc_system_settings_set_int_p, 1},
        {utc_system_settings_set_changed_cb, 1},
        {utc_system_settings_unset_changed_cb, 1},
        {NULL, 0},
 };
 
-static GMainLoopmain_loop;
+static GMainLoop *main_loop;
 static int timeout = 5;
 
 static void startup(void)
@@ -80,14 +85,11 @@ static gboolean callback(gpointer data)
 {
        /*int ret =*/ system_settings_set_value_bool(SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION, 1);
 
-       //printf("return : %d \n", ret);
-       printf("hello \n");
-
        static int i = 0;
 
        i++;
-       if(timeout == i){
-               g_main_loop_quit((GMainLoop*)data);
+       if (timeout == i) {
+               g_main_loop_quit((GMainLoop *)data);
                return FALSE;
        }
 
@@ -96,8 +98,7 @@ static gboolean callback(gpointer data)
 
 static void utc_system_settings_changed_motion_activation(system_settings_key_e key, void *user_data)
 {
-       printf(">>>>>>>> system_settings_changed_motion_activation key = %d \n", key);
-       printf(">>>>>>>> THIS CALLBACK FUNCTION IS REGISTERED BY APP DEVELOPER \n");
+
 }
 
 static void utc_system_settings_set_string_p(void)
@@ -106,8 +107,7 @@ static void utc_system_settings_set_string_p(void)
 
        if (retcode == SYSTEM_SETTINGS_ERROR_NONE) {
                dts_pass(API_NAME_SETTINGS_SET_VALUE_STRING, "passed");
-       }
-       else {
+       } else {
                dts_fail(API_NAME_SETTINGS_SET_VALUE_STRING, "failed");
        }
 }
@@ -118,8 +118,7 @@ static void utc_system_settings_set_bool_p(void)
 
        if (retcode == SYSTEM_SETTINGS_ERROR_NONE) {
                dts_pass(API_NAME_SETTINGS_SET_VALUE_BOOL, "passed");
-       }
-       else {
+       } else {
                dts_fail(API_NAME_SETTINGS_SET_VALUE_BOOL, "failed");
        }
 }
@@ -131,8 +130,7 @@ static void utc_system_settings_get_string_p(void)
 
        if (retcode == SYSTEM_SETTINGS_ERROR_NONE) {
                dts_pass(API_NAME_SETTINGS_GET_VALUE_STRING, "passed");
-       }
-       else {
+       } else {
                dts_fail(API_NAME_SETTINGS_GET_VALUE_STRING, "failed");
        }
 }
@@ -144,8 +142,7 @@ static void utc_system_settings_get_int_p(void)
 
        if (retcode == SYSTEM_SETTINGS_ERROR_NONE) {
                dts_pass(API_NAME_SETTINGS_GET_VALUE_INT, "passed");
-       }
-       else {
+       } else {
                dts_fail(API_NAME_SETTINGS_GET_VALUE_INT, "failed");
        }
 }
@@ -157,20 +154,30 @@ static void utc_system_settings_get_bool_p(void)
 
        if (retcode == SYSTEM_SETTINGS_ERROR_NONE) {
                dts_pass(API_NAME_SETTINGS_GET_VALUE_BOOL, "passed");
-       }
-       else {
+       } else {
                dts_fail(API_NAME_SETTINGS_GET_VALUE_BOOL, "failed");
        }
 }
 
+static void utc_system_settings_set_int_p(void)
+{
+       int retcode =system_settings_set_value_int(SYSTEM_SETTINGS_KEY_FONT_SIZE, SYSTEM_SETTINGS_FONT_SIZE_NORMAL);
+
+       if (retcode == SYSTEM_SETTINGS_ERROR_NONE) {
+               dts_pass(API_NAME_SETTINGS_SET_VALUE_INT, "passed");
+       } else {
+               dts_fail(API_NAME_SETTINGS_SET_VALUE_INT, "failed");
+       }
+}
+
+
 static void utc_system_settings_set_changed_cb(void)
 {
        int retcode = system_settings_set_changed_cb(SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION, utc_system_settings_changed_motion_activation, NULL);
 
        if (retcode == SYSTEM_SETTINGS_ERROR_NONE) {
                dts_pass(API_NAME_SETTINGS_SET_CHANGED_CB, "passed");
-       }
-       else {
+       } else {
                dts_fail(API_NAME_SETTINGS_SET_CHANGED_CB, "failed");
        }
 
@@ -185,8 +192,7 @@ static void utc_system_settings_unset_changed_cb(void)
 
        if (retcode == SYSTEM_SETTINGS_ERROR_NONE) {
                dts_pass(API_NAME_SETTINGS_UNSET_CHANGED_CB, "passed");
-       }
-       else {
+       } else {
                dts_fail(API_NAME_SETTINGS_UNSET_CHANGED_CB, "failed");
        }
 }
index 7409b6b..ec0ef16 100644 (file)
  */
 #include "main.h"
 #include <system_settings.h>
+#include <system_settings_private.h>
 
-static void _quit_cb(void *data, Evas_Object* obj, void* event_info)
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <unistd.h>
+
+static void _quit_cb(void *data, Evas_Object *obj, void *event_info)
 {
-    Evas_Object *win = (Evas_Object *) data;
-    elm_win_lower(win);
+       Evas_Object *win = (Evas_Object *) data;
+       elm_win_lower(win);
 }
 
-static Evas_Objectcreate_win(const char *name)
+static Evas_Object *create_win(const char *name)
 {
-    Evas_Object *eo;
-    int w, h;
+       Evas_Object *eo;
+       int w, h;
 
-    eo = elm_win_add(NULL, name, ELM_WIN_BASIC);
-    if (!eo) return NULL;
+       eo = elm_win_add(NULL, name, ELM_WIN_BASIC);
+       if (!eo) return NULL;
 
-    elm_win_title_set(eo, name);
-    elm_win_borderless_set(eo, EINA_TRUE);
-    elm_win_autodel_set(eo, EINA_TRUE);
-    evas_object_smart_callback_add(eo, "delete,request", _quit_cb, NULL);
-    ecore_x_window_size_get(ecore_x_window_root_first_get(), &w, &h);
-    evas_object_resize(eo, w, h);
+       elm_win_title_set(eo, name);
+       elm_win_borderless_set(eo, EINA_TRUE);
+       elm_win_autodel_set(eo, EINA_TRUE);
+       evas_object_smart_callback_add(eo, "delete,request", _quit_cb, NULL);
+       ecore_x_window_size_get(ecore_x_window_root_first_get(), &w, &h);
+       evas_object_resize(eo, w, h);
 
-    return eo;
+       return eo;
 }
 
-static Evas_Object_create_bg(Evas_Object *parent)
+static Evas_Object *_create_bg(Evas_Object *parent)
 {
-    Evas_Object *bg;
+       Evas_Object *bg;
 
-    bg = elm_bg_add(parent);
-    evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-    elm_win_resize_object_add(parent, bg);
-    evas_object_show(bg);
+       bg = elm_bg_add(parent);
+       evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       elm_win_resize_object_add(parent, bg);
+       evas_object_show(bg);
 
-    return bg;
+       return bg;
 }
 
-static Evas_Object* _create_layout_main(Evas_Object* parent)
+static Evas_Object *_create_layout_main(Evas_Object *parent)
 {
-    Evas_Object *layout;
+       Evas_Object *layout;
 
-    layout = elm_layout_add(parent);
+       layout = elm_layout_add(parent);
 
-    elm_layout_theme_set(layout, "layout", "application", "default");
-    evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-    elm_win_resize_object_add(parent, layout);
+       elm_layout_theme_set(layout, "layout", "application", "default");
+       evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+       elm_win_resize_object_add(parent, layout);
 
-    evas_object_show(layout);
+       evas_object_show(layout);
 
-    return layout;
+       return layout;
 }
 
-static Evas_Object* _create_naviframe_layout(Evas_Object* parent)
+static Evas_Object *_create_naviframe_layout(Evas_Object *parent)
 {
-    Evas_Object *navi;
+       Evas_Object *navi;
 
-    navi = elm_naviframe_add(parent);
-    elm_object_part_content_set(parent, "elm.swallow.content", navi);
+       navi = elm_naviframe_add(parent);
+       elm_object_part_content_set(parent, "elm.swallow.content", navi);
 
-    evas_object_show(navi);
+       evas_object_show(navi);
 
-    return navi;
+       return navi;
 }
 
 
 static void _create_view_layout(struct appdata *ad)
 {
-    Evas_Object *list;
-    Evas_Object *btn;
-
-    list = _create_list_winset(ad->win_main, ad);
-    btn = elm_button_add(ad->navi);
-    elm_object_style_set(btn, "naviframe/end_btn/default");
-    evas_object_smart_callback_add(btn, "clicked", _quit_cb, ad->win_main);
-    elm_naviframe_item_push(ad->navi, _("Tizen UI"), btn, NULL, list, NULL);
+       Evas_Object *list;
+       Evas_Object *btn;
+
+       list = _create_list_winset(ad->win_main, ad);
+       btn = elm_button_add(ad->navi);
+       elm_object_style_set(btn, "naviframe/end_btn/default");
+       evas_object_smart_callback_add(btn, "clicked", _quit_cb, ad->win_main);
+       elm_naviframe_item_push(ad->navi, _("Tizen UI"), btn, NULL, list, NULL);
 }
 
-void list_item_touch_handler_exit(void* data, Evas_Object* obj, void* event_info)
+void list_item_touch_handler_exit(void *data, Evas_Object *obj, void *event_info)
 {
-    elm_exit();
+       elm_exit();
 }
 
 /**
  * Huge
  */
-void list_item_touch_handler1(void* data, Evas_Object* obj, void* event_info)
+void list_item_touch_handler1(void *data, Evas_Object *obj, void *event_info)
 {
+       char *font_name = "HelveticaNeue";
        int ret;
-    ret = system_settings_set_value_int(SYSTEM_SETTINGS_KEY_FONT_SIZE, SYSTEM_SETTINGS_FONT_SIZE_HUGE);
-    ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_FONT_TYPE, "HelveticaNeue");
+       ret = system_settings_set_value_int(SYSTEM_SETTINGS_KEY_FONT_SIZE, SYSTEM_SETTINGS_FONT_SIZE_HUGE);
+       ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_FONT_TYPE, font_name);
+
+       char *ret_font = NULL;
+       ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_FONT_TYPE, &ret_font);
+       if (ret == SYSTEM_SETTINGS_ERROR_NONE) {
+               SETTING_TRACE(" %s  --------------- %s ", font_name, ret_font);
+       } else {
+               SETTING_TRACE(" %s  --------------- ", font_name);
+       }
 }
 
 /**
  * Normal
  */
-void list_item_touch_handler2(void* data, Evas_Object* obj, void* event_info)
+void list_item_touch_handler2(void *data, Evas_Object *obj, void *event_info)
 {
+       char *font_name = "HelveticaNeue";
        int ret;
 
        ret = system_settings_set_value_int(SYSTEM_SETTINGS_KEY_FONT_SIZE, SYSTEM_SETTINGS_FONT_SIZE_NORMAL);
-       ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_FONT_TYPE, "HelveticaNeue");
+       ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_FONT_TYPE, font_name);
+
+       char *ret_font = NULL;
+       ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_FONT_TYPE, &ret_font);
+       if (ret == SYSTEM_SETTINGS_ERROR_NONE) {
+               SETTING_TRACE(" %s  --------------- %s ", font_name, ret_font);
+       } else {
+               SETTING_TRACE(" %s  --------------- ", font_name);
+       }
+}
+
+void list_item_touch_handler17(void *data, Evas_Object *obj, void *event_info)
+{
+       char *font_name = "aaaaaaa";
+       int ret;
+       ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_FONT_TYPE, font_name);
+
+
+       char *ret_font = NULL;
+       ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_FONT_TYPE, &ret_font);
+       if (ret == SYSTEM_SETTINGS_ERROR_NONE) {
+               SETTING_TRACE(" %s  --------------- %s ", font_name, ret_font);
+       } else {
+               SETTING_TRACE(" %s  --------------- ", font_name);
+       }
+}
+
+void list_item_touch_handler18(void *data, Evas_Object *obj, void *event_info)
+{
+       char *font_name = "bbbbbbb";
+       int ret;
+       ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_FONT_TYPE, font_name);
+
+       char *ret_font = NULL;
+       ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_FONT_TYPE, &ret_font);
+       if (ret == SYSTEM_SETTINGS_ERROR_NONE) {
+               SETTING_TRACE(" %s  --------------- %s ", font_name, ret_font);
+       } else {
+               SETTING_TRACE(" %s  --------------- ", font_name);
+       }
+
+}
+
+void list_item_touch_handler19(void *data, Evas_Object *obj, void *event_info)
+{
+       char *font_name = "Samsung Sans";
+       int ret;
+       ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_FONT_TYPE, font_name);
+
+       char *ret_font = NULL;
+       ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_FONT_TYPE, &ret_font);
+       if (ret == SYSTEM_SETTINGS_ERROR_NONE) {
+               SETTING_TRACE(" %s  --------------- %s ", font_name, ret_font);
+       } else {
+               SETTING_TRACE(" %s  --------------- ", font_name);
+       }
+
 }
 
-void list_item_touch_handler3(void* data, Evas_Object* obj, void* event_info)
+void list_item_touch_handler20(void *data, Evas_Object *obj, void *event_info)
+{
+       char *font_name = "Choco cooky";
+       int ret;
+       ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_FONT_TYPE, font_name);
+
+       char *ret_font = NULL;
+       ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_FONT_TYPE, &ret_font);
+       if (ret == SYSTEM_SETTINGS_ERROR_NONE) {
+               SETTING_TRACE(" %s  --------------- %s ", font_name, ret_font);
+       } else {
+               SETTING_TRACE(" %s  --------------- ", font_name);
+       }
+
+}
+
+
+
+void list_item_touch_handler3(void *data, Evas_Object *obj, void *event_info)
 {
        int ret;
        ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_FONT_TYPE, "HelveticaNeue");
 }
 
-void list_item_touch_handler4(void* data, Evas_Object* obj, void* event_info)
+void list_item_touch_handler4(void *data, Evas_Object *obj, void *event_info)
 {
        int ret;
-    ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_FONT_TYPE, "HelveticaNeue");
+       ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_FONT_TYPE, "HelveticaNeue");
 }
 
-void list_item_touch_handler5(void* data, Evas_Object* obj, void* event_info)
+void list_item_touch_handler5(void *data, Evas_Object *obj, void *event_info)
 {
-       printf(">>>>>>>> motion activation ON \n");
-       system_settings_set_value_bool(SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION, 1/*ON*/);
+       SETTING_TRACE(">>>>>>>> motion activation ON (SET)");
+
+       bool enableMotion = false;;
+       int errorcode = system_settings_get_value_bool(SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION, &enableMotion);
+       SETTING_TRACE(">>>>>>>> motion activation (GET TEST  1) -- %d - errorcode : %d", enableMotion, errorcode);
+
+       SETTING_TRACE(">>>>>>>> motion activation ON (SET)");
+       system_settings_set_value_bool(SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION, true);
 }
 
-void list_item_touch_handler6(void* data, Evas_Object* obj, void* event_info)
+void list_item_touch_handler6(void *data, Evas_Object *obj, void *event_info)
 {
-       printf(">>>>>>>> motion activation OFF \n");
-       system_settings_set_value_bool(SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION, 0/*OFF*/);
+       SETTING_TRACE(">>>>>>>> motion activation OFF ");
+       system_settings_set_value_bool(SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION, false);
 }
 
 void system_settings_changed_font_size(system_settings_key_e key, void *user_data)
 {
-       printf(">>>>>>>> system_settings_changed_font_size key = %d \n", key);
-       printf("---------------------------------CALLED BY USER APPLICATION -FONT SIZE \n");
+       struct appdata *ad = (struct appdata *)user_data;
+       SETTING_TRACE(" font size -- %s ", ad->pkgname);
+       SETTING_TRACE(">>>>>>>> system_settings_changed_font_size key = %d ", key);
+       SETTING_TRACE("---------------------------------CALLED BY USER APPLICATION -FONT SIZE ");
 }
 
 void system_settings_changed_font_type(system_settings_key_e key, void *user_data)
 {
-       printf(">>>>>>>> system_settings_changed_font_type key = %d \n", key);
-       printf("---------------------------------CALLED BY USER APPLICATION -FONT TYPE \n");
+       struct appdata *ad = (struct appdata *)user_data;
+       SETTING_TRACE(" font type -- %s ", ad->pkgname);
+       SETTING_TRACE(">>>>>>>> system_settings_changed_font_type key = %d ", key);
+       SETTING_TRACE("---------------------------------CALLED BY USER APPLICATION -FONT TYPE ");
 }
 
 void system_settings_changed_motion_activation(system_settings_key_e key, void *user_data)
 {
-       printf(">>>>>>>> system_settings_changed_motion_activation key = %d \n", key);
-       printf("---------------------------------CALLED BY USER APPLICATION-MOTION ACTIVIATION \n");
+       struct appdata *ad = (struct appdata *)user_data;
+       SETTING_TRACE(" motion type -- %s ", ad->pkgname);
+       SETTING_TRACE(">>>>>>>> system_settings_changed_motion_activation key = %d ", key);
+       SETTING_TRACE("---------------------------------CALLED BY USER APPLICATION-MOTION ACTIVIATION ");
+}
+
+void system_settings_changed_time(system_settings_key_e key, void *user_data)
+{
+       SETTING_TRACE(">>>>>>>> notify change time ");
+       int ret;
+       char *timezone = NULL;
+       ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_LOCALE_TIMEZONE, &timezone);
+       SETTING_TRACE(" timezone : (%s) ", timezone);
+       /*SETTING_TRACE("---------------------------------CALLED BY USER APPLICATION-MOTION ACTIVIATION "); */
+}
+
+void list_item_touch_handler7_1(void *data, Evas_Object *obj, void *event_info)
+{
+       char *path = NULL;
+       int ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_WALLPAPER_HOME_SCREEN, &path);
+       SETTING_TRACE(">>>>>>>> home screen - error case :: %d ------ %s ", ret, path);
+}
+
+void list_item_touch_handler8_1(void *data, Evas_Object *obj, void *event_info)
+{
+       char *path = NULL;
+       int ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_WALLPAPER_LOCK_SCREEN, &path);
+       SETTING_TRACE(">>>>>>>> home screen - error case :: %d ------ %s ", ret, path);
+}
+
+void list_item_touch_handler7(void *data, Evas_Object *obj, void *event_info)
+{
+       char *path = "/opt/usr/media/Images/image16.jpg";
+       int ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_WALLPAPER_HOME_SCREEN, "/aaa.png");
+       SETTING_TRACE(">>>>>>>> home screen - error case :: %d ", ret);
+
+       ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_WALLPAPER_HOME_SCREEN, path);
+       SETTING_TRACE(">>>>>>>> home screen - error case :: %d ", ret);
+
+}
+
+void list_item_touch_handler8(void *data, Evas_Object *obj, void *event_info)
+{
+       char *path = "/opt/usr/media/Images/image16.jpg";
+       int ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_WALLPAPER_LOCK_SCREEN, "aaa.png");
+       SETTING_TRACE(">>>>>>>> lock screen - error case  : %d ", ret);
+
+       ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_WALLPAPER_LOCK_SCREEN, path);
+       SETTING_TRACE(">>>>>>>> lock screen - error case  : %d ", ret);
+}
+
+/*     SYSTEM_SETTINGS_KEY_USB_DEBUGGING_ENABLED,  /**< Indicates whether the usb debugging is enabled * / */
+/* get 3g data network */
+void list_item_touch_handler9(void *data, Evas_Object *obj, void *event_info)
+{
+       bool state = false;;
+       int errorcode = system_settings_get_value_bool(SYSTEM_SETTINGS_KEY_3G_DATA_NETWORK_ENABLED, &state);
+       SETTING_TRACE(">>>>>>>> 3G data network (GET TEST) -- %d - errorcode : %d ", state, errorcode);
+}
+
+/* set 3g data network to ON */
+void list_item_touch_handler10(void *data, Evas_Object *obj, void *event_info)
+{
+       SETTING_TRACE(">>>>>>>> set 3G data network to ON ");
+       system_settings_set_value_bool(SYSTEM_SETTINGS_KEY_3G_DATA_NETWORK_ENABLED, 1/*ON*/);
+}
+
+/* set 3g data network to OFF */
+void list_item_touch_handler11(void *data, Evas_Object *obj, void *event_info)
+{
+       SETTING_TRACE(">>>>>>>> set 3G data network to OFF ");
+       system_settings_set_value_bool(SYSTEM_SETTINGS_KEY_3G_DATA_NETWORK_ENABLED, 0/*OFF*/);
+}
+
+/* get usg debugging */
+void list_item_touch_handler12(void *data, Evas_Object *obj, void *event_info)
+{
+       bool state = false;;
+       int errorcode = system_settings_get_value_bool(SYSTEM_SETTINGS_KEY_USB_DEBUGGING_ENABLED, &state);
+       SETTING_TRACE(">>>>>>>> USB Debugging (GET TEST) -- %d - errorcode : %d ", state, errorcode);
+}
+
+/* set USB debugging to ON */
+void list_item_touch_handler13(void *data, Evas_Object *obj, void *event_info)
+{
+       SETTING_TRACE(">>>>>>>> set USB debugging to ON ");
+       system_settings_set_value_bool(SYSTEM_SETTINGS_KEY_USB_DEBUGGING_ENABLED, 1/*ON*/);
+}
+
+/* set USB debugging to OFF */
+void list_item_touch_handler14(void *data, Evas_Object *obj, void *event_info)
+{
+       SETTING_TRACE(">>>>>>>> set USB debugging to OFF ");
+       system_settings_set_value_bool(SYSTEM_SETTINGS_KEY_USB_DEBUGGING_ENABLED, 0/*OFF*/);
+}
+
+/* get ringtone path */
+void list_item_touch_handler15(void *data, Evas_Object *obj, void *event_info)
+{
+       SETTING_TRACE(">>>>>>>> get ringtone path ");
+       char *ringtonepath = NULL;
+       int ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_INCOMING_CALL_RINGTONE, &ringtonepath);
+       SETTING_TRACE("current ringtone path : (%s) ", ringtonepath);
+
+}
+
+/* get ringtone path - exception case */
+void list_item_touch_handler16(void *data, Evas_Object *obj, void *event_info)
+{
+       SETTING_TRACE(">>>>>>>> get ringtone path - exception case ");
+       int ret;
+       char *ringtonepath = NULL;
+       /*opt/share/settings/Ringtones/Over the horizon.mp3 */
+       ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_INCOMING_CALL_RINGTONE, "/opt/share/settings/Ringtones/Over the horizon.mp3");
+       ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_INCOMING_CALL_RINGTONE, &ringtonepath);
+       SETTING_TRACE(" 1 current ringtone path : (%s) ", ringtonepath);
+       /* set the key to the wrong value */
+       ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_INCOMING_CALL_RINGTONE, "aaa.wav");
+
+       ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_INCOMING_CALL_RINGTONE, &ringtonepath);
+       SETTING_TRACE("2 current ringtone path : (%s) ", ringtonepath);
+}
+
+void list_item_touch_handler21(void *data, Evas_Object *obj, void *event_info)
+{
+       char *path1 = "/opt/usr/share/settings/Alerts/Over the horizon.mp3";
+       char *path2 = "/opt/usr/share/settings/Alerts/Over the horizon.mp3.bak";
+
+       SETTING_TRACE(">>>>>>>> get ringtone path ");
+       char *ringtonepath = NULL;
+       int ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_EMAIL_ALERT_RINGTONE, &ringtonepath);
+       SETTING_TRACE("current ringtone path : (%s) -- return : %d ", ringtonepath, ret);
+
+
+       rename(path1, path2);
+       SETTING_TRACE("after rename ");
+
+       ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_EMAIL_ALERT_RINGTONE, &ringtonepath);
+       SETTING_TRACE("current ringtone path : (%s) -- return : %d ", ringtonepath, ret);
+
+       rename(path2, path1);
+
+}
+
+void list_item_touch_handler22(void *data, Evas_Object *obj, void *event_info)
+{
+       SETTING_TRACE(">>>>>>>> get email ringtone path - exception case ");
+       int ret;
+       char *ringtonepath = NULL;
+       /*opt/share/settings/Ringtones/Over the horizon.mp3 */
+       ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_EMAIL_ALERT_RINGTONE, "/opt/share/settings/Ringtones/Over the horizon.mp3");
+       ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_EMAIL_ALERT_RINGTONE, &ringtonepath);
+       SETTING_TRACE(" 1 current ringtone path : (%s) ", ringtonepath);
+       /* set the key to the wrong value */
+       ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_EMAIL_ALERT_RINGTONE, "aaa.wav");
+       SETTING_TRACE(" wrong path name of email alert path : (%s) ", "aaa.wav");
+
+       SETTING_TRACE(" 1 current ringtone path return = %d ", ret);
+
+
+       ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_EMAIL_ALERT_RINGTONE, &ringtonepath);
+       SETTING_TRACE("2 current ringtone path : (%s) -- return : %d ", ringtonepath, ret);
+
+}
+
+/* get notification sound */
+void list_item_touch_handler15_1(void *data, Evas_Object *obj, void *event_info)
+{
+       SETTING_TRACE(">>>>>>>> get notification ringtone path ");
+       char *ringtonepath = NULL;
+       int ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_SOUND_NOTIFICATION, &ringtonepath);
+       SETTING_TRACE("current notification ringtone path : (%s) ", ringtonepath);
+
+}
+
+void list_item_touch_handler15_2(void *data, Evas_Object *obj, void *event_info)
+{
+       SETTING_TRACE(">>>>>>>> get notification ringtone path - exception case ");
+       int ret;
+       char *ringtonepath = NULL;
+       /*opt/share/settings/ringtones/ringtone_sdk.mp3 */
+       ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_SOUND_NOTIFICATION, "/opt/share/settings/Ringtones/ringtone_sdk.mp3");
+       ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_SOUND_NOTIFICATION, &ringtonepath);
+       SETTING_TRACE(" 1 current ringtone path : (%s) ", ringtonepath);
+       /* set the key to the wrong value */
+       ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_SOUND_NOTIFICATION, "aaa.wav");
+       SETTING_TRACE(" wrong path name of notification ringtone path : (%s) ", "aaa.wav");
+
+       SETTING_TRACE(" 1 current ringtone path return = %d ", ret);
+
+       ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_SOUND_NOTIFICATION, &ringtonepath);
+       SETTING_TRACE("2 current ringtone path : (%s) -- return : %d ", ringtonepath, ret);
+
+}
+
+void list_item_touch_handler23(void *data, Evas_Object *obj, void *event_info)
+{
+       SETTING_TRACE(">>>>>>>> GET tap and hold delay ");
+       int ret;
+       int delay;
+       ret = system_settings_get_value_int(SYSTEM_SETTINGS_KEY_TAP_AND_HOLD_DELAY, &delay);
+       SETTING_TRACE(" tap and delay = %d ", delay);
+}
+
+void list_item_touch_handler24(void *data, Evas_Object *obj, void *event_info)
+{
+       SETTING_TRACE(">>>>>>>> SET tap and hold delay ");
+       int ret;
+       int delay;
+       ret = system_settings_get_value_int(SYSTEM_SETTINGS_KEY_TAP_AND_HOLD_DELAY, &delay);
+
+       ret = system_settings_set_value_int(SYSTEM_SETTINGS_KEY_TAP_AND_HOLD_DELAY, SYSTEM_SETTINGS_TAP_AND_HOLD_DELAY_LONG);
+       ret = system_settings_get_value_int(SYSTEM_SETTINGS_KEY_TAP_AND_HOLD_DELAY, &delay);
+       SETTING_TRACE(" tap and delay = %d ", delay);
+
+       ret = system_settings_set_value_int(SYSTEM_SETTINGS_KEY_TAP_AND_HOLD_DELAY, SYSTEM_SETTINGS_TAP_AND_HOLD_DELAY_MEDIUM);
+       ret = system_settings_get_value_int(SYSTEM_SETTINGS_KEY_TAP_AND_HOLD_DELAY, &delay);
+       SETTING_TRACE(" tap and delay = %d ", delay);
+
+       ret = system_settings_set_value_int(SYSTEM_SETTINGS_KEY_TAP_AND_HOLD_DELAY, SYSTEM_SETTINGS_TAP_AND_HOLD_DELAY_SHORT);
+       ret = system_settings_get_value_int(SYSTEM_SETTINGS_KEY_TAP_AND_HOLD_DELAY, &delay);
+       SETTING_TRACE(" tap and delay = %d ", delay);
+
+}
+
+void list_item_touch_handler25(void *data, Evas_Object *obj, void *event_info)
+{
+       SETTING_TRACE(">>>>>>>> Lock screen extension Test ");
+       int ret;
+       ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_LOCKSCREEN_APP, "com.samsung.lockscreen");
+       SETTING_TRACE("ret = %d", ret);
+}
+
+void list_item_touch_handler26(void *data, Evas_Object *obj, void *event_info)
+{
+       SETTING_TRACE(">>>>>>>> Get default font ");
+       char *ret_font = NULL;
+       int ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_DEFAULT_FONT_TYPE, &ret_font);
+       if (ret == SYSTEM_SETTINGS_ERROR_NONE) {
+               SETTING_TRACE(" %s ----------------  ", ret_font);
+       } else {
+               SETTING_TRACE(" %s ----------------  ", ret_font);
+       }
+}
+
+/*"get locale language " */
+void list_item_touch_handler27(void *data, Evas_Object *obj, void *event_info)
+{
+       SETTING_TRACE(">>>>>>>> get locale language ");
+       int ret;
+       char *language = NULL;
+       ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE, &language);
+       SETTING_TRACE(" lnaguage : (%s) ", language);
+}
+
+/* "get locale country " */
+void list_item_touch_handler28(void *data, Evas_Object *obj, void *event_info)
+{
+       SETTING_TRACE(">>>>>>>> get locale country ");
+       int ret;
+       char *country = NULL;
+       ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_LOCALE_COUNTRY, &country);
+       SETTING_TRACE(" country : (%s) ", country);
+
+}
+
+/*"get locale language " */
+void list_item_touch_handler30(void *data, Evas_Object *obj, void *event_info)
+{
+       SETTING_TRACE(">>>>>>>> set locale language ");
+       int ret;
+       char *language = NULL;
+       ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE, "en_GB");
+       SETTING_TRACE(">>>>>>>> set locale language - DONE ");
+}
+
+/* "get locale country " */
+void list_item_touch_handler31(void *data, Evas_Object *obj, void *event_info)
+{
+       SETTING_TRACE(">>>>>>>> set locale country ");
+       int ret;
+       char *country = NULL;
+       ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_LOCALE_COUNTRY, "en_GB");
+       SETTING_TRACE(">>>>>>>> set locale country - DONE ");
+}
+
+/* "get locale formformat 1224 " */
+void list_item_touch_handler29(void *data, Evas_Object *obj, void *event_info)
+{
+       bool is_24hour = false;;
+       int errorcode = system_settings_get_value_bool(SYSTEM_SETTINGS_KEY_LOCALE_TIMEFORMAT_24HOUR, &is_24hour);
+       SETTING_TRACE(">>>>>>>> get locale formformat 1224 -- %d - errorcode : %d", is_24hour, errorcode);
+}
+
+/* "get timezone " */
+void list_item_touch_handler32(void *data, Evas_Object *obj, void *event_info)
+{
+       SETTING_TRACE(">>>>>>>> get timezone ");
+       int ret;
+       char *timezone = NULL;
+       ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_LOCALE_TIMEZONE, &timezone);
+       SETTING_TRACE(" timezone : (%s) ", timezone);
+}
+
+/* "get flight mode " */
+void list_item_touch_handler33(void *data, Evas_Object *obj, void *event_info)
+{
+       SETTING_TRACE(">>>>>>>> get flight mode");
+       int ret;
+       bool mode;
+       ret = system_settings_get_value_bool(SYSTEM_SETTINGS_KEY_NETWORK_FLIGHT_MODE, &mode);
+       SETTING_TRACE(" flight mode : (%d) ", mode);
+}
+
+static void system_settings_changed_locale(system_settings_key_e key, void *user_data)
+{
+       struct appdata *ad = (struct appdata *)user_data;
+       SETTING_TRACE(" font size -- %s ", ad->pkgname);
+       SETTING_TRACE(">>>>>>>> system_settings_changed_locale key = %d ", key);
+       SETTING_TRACE("---------------------------------CALLED BY USER APPLICATION -locale ");
+}
+
+static void system_settings_changed_locale_country(system_settings_key_e key, void *user_data)
+{
+       struct appdata *ad = (struct appdata *)user_data;
+       SETTING_TRACE(" font size -- %s ", ad->pkgname);
+       SETTING_TRACE(">>>>>>>> system_settings_changed_locale key = %d ", key);
+       SETTING_TRACE("---------------------------------CALLED BY USER APPLICATION -locale ");
+}
+
+
+void list_item_touch_handler34(void *data, Evas_Object *obj, void *event_info)
+{
+       SETTING_TRACE("start");
+       int ret = 0;
+
+       int test_key = SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE;
+
+       ret = system_settings_set_changed_cb(test_key, system_settings_changed_locale, NULL);
+       if (ret == SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER) {
+               SETTING_TRACE("SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER");
+       } else if (ret == SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED) {
+               SETTING_TRACE("SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER");
+       } else if (ret == SYSTEM_SETTINGS_ERROR_NONE) {
+               SETTING_TRACE("SYSTEM_SETTINGS_ERROR_NONE");
+       } else {
+               SETTING_TRACE("UNKNOW_ERROR :%d ", ret);
+       }
+
+       sleep(3);
+
+       ret = system_settings_unset_changed_cb(test_key);
+       SETTING_TRACE("system_settings_unset_changed_cb(SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE) = %d, . ", ret);
+       if (ret == SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER) {
+               SETTING_TRACE("SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER");
+       } else if (ret == SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED) {
+               SETTING_TRACE("SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER");
+       } else if (ret == SYSTEM_SETTINGS_ERROR_IO_ERROR) {
+               SETTING_TRACE("SYSTEM_SETTINGS_ERROR_IO_ERROR");
+       } else if (ret == SYSTEM_SETTINGS_ERROR_NONE) {
+               SETTING_TRACE("SYSTEM_SETTINGS_ERROR_NONE");
+       } else {
+               SETTING_TRACE("UNKNOW_ERROR :%d ", ret);
+       }
+
+       sleep(3);
+
+       ret = system_settings_set_changed_cb(test_key, system_settings_changed_locale, NULL);
+       if (ret == SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER) {
+               SETTING_TRACE("SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER");
+       } else if (ret == SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED) {
+               SETTING_TRACE("SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER");
+       } else if (ret == SYSTEM_SETTINGS_ERROR_NONE) {
+               SETTING_TRACE("SYSTEM_SETTINGS_ERROR_NONE");
+       } else if (ret == SYSTEM_SETTINGS_ERROR_IO_ERROR) {
+               SETTING_TRACE("SYSTEM_SETTINGS_ERROR_IO_ERROR");
+       } else {
+               SETTING_TRACE("UNKNOW_ERROR : %d", ret);
+       }
+       SETTING_TRACE("end");
+}
+
+void list_item_touch_handler37(void *data, Evas_Object *obj, void *event_info)
+{
+       SETTING_TRACE("start");
+       int ret = 0;
+
+       int test_key = SYSTEM_SETTINGS_KEY_LOCALE_COUNTRY;
+
+       ret = system_settings_set_changed_cb(test_key, system_settings_changed_locale_country, NULL);
+       if (ret == SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER) {
+               SETTING_TRACE("SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER");
+       } else if (ret == SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED) {
+               SETTING_TRACE("SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER");
+       } else if (ret == SYSTEM_SETTINGS_ERROR_NONE) {
+               SETTING_TRACE("SYSTEM_SETTINGS_ERROR_NONE");
+       } else {
+               SETTING_TRACE("system_settings_set_changed_cb --- UNKNOW_ERROR :%d ", ret);
+       }
+
+       sleep(3);
+
+       ret = system_settings_unset_changed_cb(test_key);
+       SETTING_TRACE("system_settings_unset_changed_cb(SYSTEM_SETTINGS_KEY_LOCALE_COUNTRY) = %d, . ", ret);
+       if (ret == SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER) {
+               SETTING_TRACE("SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER");
+       } else if (ret == SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED) {
+               SETTING_TRACE("SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER");
+       } else if (ret == SYSTEM_SETTINGS_ERROR_IO_ERROR) {
+               SETTING_TRACE("SYSTEM_SETTINGS_ERROR_IO_ERROR");
+       } else if (ret == SYSTEM_SETTINGS_ERROR_NONE) {
+               SETTING_TRACE("SYSTEM_SETTINGS_ERROR_NONE");
+       } else {
+               SETTING_TRACE("1st system_settings_unset_changed_cb --- UNKNOW_ERROR :%d ", ret);
+       }
+
+       sleep(3);
+
+       ret = system_settings_set_changed_cb(test_key, system_settings_changed_locale_country, NULL);
+       if (ret == SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER) {
+               SETTING_TRACE("SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER");
+       } else if (ret == SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED) {
+               SETTING_TRACE("SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER");
+       } else if (ret == SYSTEM_SETTINGS_ERROR_NONE) {
+               SETTING_TRACE("SYSTEM_SETTINGS_ERROR_NONE");
+       } else if (ret == SYSTEM_SETTINGS_ERROR_IO_ERROR) {
+               SETTING_TRACE("SYSTEM_SETTINGS_ERROR_IO_ERROR");
+       } else {
+               /*SETTING_TRACE("UNKNOW_ERROR : %d", ret); */
+               SETTING_TRACE("2nd system_settings_unset_changed_cb --- UNKNOW_ERROR :%d ", ret);
+       }
+       SETTING_TRACE("end");
 }
 
-static Evas_Object* _create_list_winset(Evas_Object* parent, struct appdata* ad)
+void list_item_touch_handler35(void *data, Evas_Object *obj, void *event_info)
+{
+       bool flag = false;;
+       int ret = system_settings_get_value_bool(SYSTEM_SETTINGS_KEY_SOUND_LOCK, &flag);
+       if (ret == SYSTEM_SETTINGS_ERROR_NONE) {
+               SETTING_TRACE(" %d ---------------- ret: %d  ", flag, ret);
+       } else {
+               SETTING_TRACE(" %d ---------------- ret: %d  ", flag, ret);
+       }
+}
+
+void list_item_touch_handler36(void *data, Evas_Object *obj, void *event_info)
+{
+       bool flag = false;;
+       int ret = system_settings_get_value_bool(SYSTEM_SETTINGS_KEY_SOUND_TOUCH, &flag);
+       if (ret == SYSTEM_SETTINGS_ERROR_NONE) {
+               SETTING_TRACE(" %d ---------------- ret: %d  ", flag, ret);
+       } else {
+               SETTING_TRACE(" %d ---------------- ret: %d  ", flag, ret);
+       }
+}
+
+void list_item_touch_handler38(void *data, Evas_Object *obj, void *event_info)
+{
+       bool flag = false;;
+       int ret = system_settings_get_value_bool(SYSTEM_SETTINGS_KEY_DISPLAY_SCREEN_ROTATION_AUTO, &flag);
+       if (ret == SYSTEM_SETTINGS_ERROR_NONE) {
+               SETTING_TRACE(" %d ---------------- ret: %d  ", flag, ret);
+       } else {
+               SETTING_TRACE(" %d ---------------- ret: %d  ", flag, ret);
+       }
+}
+
+void system_settings_changed_flight_mode(system_settings_key_e key, void *user_data)
+{
+       struct appdata *ad = (struct appdata *)user_data;
+       SETTING_TRACE(">>>>>>>> system_settings_changed_flight_mode key = %d ", key);
+}
+
+/*flight mode - error code test - return zero, it's OK. */
+void list_item_touch_handler39(void *data, Evas_Object *obj, void *event_info)
+{
+       int ret;
+       struct appdata *ad = (struct appdata *)data;
+       ret = system_settings_set_changed_cb(SYSTEM_SETTINGS_KEY_NETWORK_FLIGHT_MODE, system_settings_changed_flight_mode, ad);
+       SETTING_TRACE("system_settings_set_changed_cb(SYSTEM_SETTINGS_KEY_NETWORK_FLIGHT_MODE) = %d, . ", ret);
+
+       ret = system_settings_unset_changed_cb(SYSTEM_SETTINGS_KEY_NETWORK_FLIGHT_MODE);
+       SETTING_TRACE("system_settings_unset_changed_cb(SYSTEM_SETTINGS_KEY_NETWORK_FLIGHT_MODE) = %d, . ", ret);
+
+}
+
+/*motion activation - set_value_string - error code test */
+void list_item_touch_handler40(void *data, Evas_Object *obj, void *event_info)
+{
+       int ret;
+       ret = system_settings_set_value_string(SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION, "hello");
+       SETTING_TRACE("system_settings_set_value_string(SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION) = %d, . ", ret);
+}
+
+/*motion activation - get_value_int -  error code test */
+void list_item_touch_handler41(void *data, Evas_Object *obj, void *event_info)
+{
+       int ret;
+       int val;
+       ret = system_settings_get_value_int(SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION, &val);
+       SETTING_TRACE("system_settings_get_value_int(SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION) = %d, val =%d ", ret, val);
+}
+
+
+
+static Evas_Object *_create_list_winset(Evas_Object *parent, struct appdata *ad)
 {
        Evas_Object *li;
        int idx = 0;
-       //struct _menu_item *menu_its;
+       /*struct _menu_item *menu_its; */
        int ret;
-       ret = system_settings_set_changed_cb(SYSTEM_SETTINGS_KEY_FONT_SIZE, system_settings_changed_font_size, NULL);
+       ret = system_settings_set_changed_cb(SYSTEM_SETTINGS_KEY_FONT_SIZE, system_settings_changed_font_size, ad);
+
+       ret = system_settings_set_changed_cb(SYSTEM_SETTINGS_KEY_FONT_TYPE, system_settings_changed_font_type, ad);
+       if (ret < 0) {
+               SETTING_TRACE("SYSTEM_SETTINGS_KEY_FONT_TYPE returns negative values = %d ", ret);
+       } else {
+               SETTING_TRACE("SYSTEM_SETTINGS_KEY_FONT_TYPE returns positive values = %d, means successful return. ", ret);
+       }
 
-       ret = system_settings_set_changed_cb(SYSTEM_SETTINGS_KEY_FONT_TYPE, system_settings_changed_font_type, NULL);
+       /* callback registration */
+       ret = system_settings_set_changed_cb(SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION, system_settings_changed_motion_activation, ad);
        if (ret < 0) {
-               printf("SYSTEM_SETTINGS_KEY_FONT_TYPE returns negative values = %d \n", ret);
+               SETTING_TRACE("SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION returns negative values = %d ", ret);
        } else {
-               printf("SYSTEM_SETTINGS_KEY_FONT_TYPE returns positive values = %d, means successful return. \n", ret);
+               SETTING_TRACE("SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION returns positive values = %d, means successful return. ", ret);
        }
 
-       // callback registration
-       ret = system_settings_set_changed_cb(SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION, system_settings_changed_motion_activation, NULL);
+       /* callback registration */
+       ret = system_settings_set_changed_cb(SYSTEM_SETTINGS_KEY_TIME_CHANGED, system_settings_changed_time, ad);
        if (ret < 0) {
-                       printf("SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION returns negative values = %d \n", ret);
+               SETTING_TRACE("SYSTEM_SETTINGS_KEY_TIME_CHANGED returns negative values = %d ", ret);
        } else {
-                       printf("SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION returns positive values = %d, means successful return. \n", ret);
+               SETTING_TRACE("SYSTEM_SETTINGS_KEY_TIME_CHANGED returns positive values = %d, means successful return. ", ret);
        }
 
        li = elm_list_add(parent);
        elm_list_mode_set(li, ELM_LIST_COMPRESS);
 
-       elm_list_item_append( li, "QUIT", NULL, NULL, list_item_touch_handler_exit, ad);
-       elm_list_item_append( li, "font size - bigger ", NULL, NULL, list_item_touch_handler1, ad);
-       elm_list_item_append( li, "font size - normal ", NULL, NULL, list_item_touch_handler2, ad);
-       elm_list_item_append( li, "font type - choose Helvetica 1 ", NULL, NULL, list_item_touch_handler3, ad);
-       elm_list_item_append( li, "font type - choose Helvetica 2 ", NULL, NULL, list_item_touch_handler4, ad);
-       elm_list_item_append( li, "motion activation ON ", NULL, NULL, list_item_touch_handler5, ad);
-       elm_list_item_append( li, "motion activation OFF ", NULL, NULL, list_item_touch_handler6, ad);
+       elm_list_item_append(li, "QUIT", NULL, NULL, list_item_touch_handler_exit, ad);
+       elm_list_item_append(li, "font size - bigger ", NULL, NULL, list_item_touch_handler1, ad);
+       elm_list_item_append(li, "font size - normal ", NULL, NULL, list_item_touch_handler2, ad);
+       elm_list_item_append(li, "font type - choose Helvetica 1 ", NULL, NULL, list_item_touch_handler3, ad);
+       elm_list_item_append(li, "font type - choose Helvetica 2 ", NULL, NULL, list_item_touch_handler4, ad);
+       elm_list_item_append(li, "font type - choose unexisited font ", NULL, NULL, list_item_touch_handler17, ad);
+       elm_list_item_append(li, "font type - choose unexisited font ", NULL, NULL, list_item_touch_handler18, ad);
+       elm_list_item_append(li, "font type - choose Samsung Sens ", NULL, NULL, list_item_touch_handler19, ad);
+       elm_list_item_append(li, "font type - choose Choco cooky ", NULL, NULL, list_item_touch_handler20, ad);
+       elm_list_item_append(li, "motion activation ON ", NULL, NULL, list_item_touch_handler5, ad);
+       elm_list_item_append(li, "motion activation OFF ", NULL, NULL, list_item_touch_handler6, ad);
+       elm_list_item_append(li, "homescreen - get ", NULL, NULL, list_item_touch_handler7_1, ad);
+       elm_list_item_append(li, "homescreen - set ", NULL, NULL, list_item_touch_handler7, ad);
+       elm_list_item_append(li, "lockscreen - get ", NULL, NULL, list_item_touch_handler8_1, ad);
+       elm_list_item_append(li, "lockscreen - set ", NULL, NULL, list_item_touch_handler8, ad);
+
+       elm_list_item_append(li, "3g data network GET ", NULL, NULL, list_item_touch_handler9, ad);
+       elm_list_item_append(li, "3g data network SET - ON ", NULL, NULL, list_item_touch_handler10, ad);
+       elm_list_item_append(li, "3g data network SET - OFF ", NULL, NULL, list_item_touch_handler11, ad);
+
+       elm_list_item_append(li, "usb debugging GET ", NULL, NULL, list_item_touch_handler12, ad);
+       elm_list_item_append(li, "usb debugging SET - ON ", NULL, NULL, list_item_touch_handler13, ad);
+       elm_list_item_append(li, "usb debugging SET - OFF ", NULL, NULL, list_item_touch_handler14, ad);
+
+       elm_list_item_append(li, "get call ringtone ", NULL, NULL, list_item_touch_handler15, ad);
+       elm_list_item_append(li, "get call ringtone - exception ", NULL, NULL, list_item_touch_handler16, ad);
+
+       elm_list_item_append(li, "get email ringtone ", NULL, NULL, list_item_touch_handler21, ad);
+       elm_list_item_append(li, "get email ringtone - exception ", NULL, NULL, list_item_touch_handler22, ad);
+
+       elm_list_item_append(li, "get notification ringtone ", NULL, NULL, list_item_touch_handler15_1, ad);
+       elm_list_item_append(li, "get notification ringtone - exception ", NULL, NULL, list_item_touch_handler15_2, ad);
+
+       elm_list_item_append(li, "get - tap and hold delay ", NULL, NULL, list_item_touch_handler23, ad);
+       elm_list_item_append(li, "set - tap and hold delay ", NULL, NULL, list_item_touch_handler24, ad);
+
+       elm_list_item_append(li, "lockscreen - extention test ", NULL, NULL, list_item_touch_handler25, ad);
+       elm_list_item_append(li, "get default font ", NULL, NULL, list_item_touch_handler26, ad);
+
+       elm_list_item_append(li, "get locale language ", NULL, NULL, list_item_touch_handler27, ad);
+       elm_list_item_append(li, "get locale country ", NULL, NULL, list_item_touch_handler28, ad);
+
+       elm_list_item_append(li, "get locale formformat 1224 ", NULL, NULL, list_item_touch_handler29, ad);
+
+       elm_list_item_append(li, "set locale language ", NULL, NULL, list_item_touch_handler30, ad);
+       elm_list_item_append(li, "set locale country ", NULL, NULL, list_item_touch_handler31, ad);
+
+
+       elm_list_item_append(li, "Get Timezone ", NULL, NULL, list_item_touch_handler32, ad);
+       elm_list_item_append(li, "Get Flight mode ", NULL, NULL, list_item_touch_handler33, ad);
+       elm_list_item_append(li, "cb TEST ", NULL, NULL, list_item_touch_handler34, ad);
+       elm_list_item_append(li, "SYSTEM_SETTINGS_KEY_SOUND_LOCK - get test ", NULL, NULL, list_item_touch_handler35, ad);
+       elm_list_item_append(li, "SYSTEM_SETTINGS_KEY_SOUND_TOUCH - get test ", NULL, NULL, list_item_touch_handler36, ad);
+       elm_list_item_append(li, "cb TEST - locale_language ", NULL, NULL, list_item_touch_handler37, ad);
+       elm_list_item_append(li, "auto rotation ", NULL, NULL, list_item_touch_handler38, ad);
+
+       elm_list_item_append(li, "flight mode - error code test ", NULL, NULL, list_item_touch_handler39, ad);
+       elm_list_item_append(li, "motion activation - set_value_string - error code test ", NULL, NULL, list_item_touch_handler40, ad);
+       elm_list_item_append(li, "motion activation - get_value_int -  error code test ", NULL, NULL, list_item_touch_handler41, ad);
 
        elm_list_go(li);
        return li;
@@ -200,77 +863,77 @@ static Evas_Object* _create_list_winset(Evas_Object* parent, struct appdata* ad)
 
 static void _mouse_down_cb(void *data, Evas *evas, Evas_Object *obj, void *event_info)
 {
-       //struct appdata *ad = (struct appdata *)data;
-    //Evas_Event_Mouse_Down *ev = event_info;
+       /*struct appdata *ad = (struct appdata *)data; */
+       /*Evas_Event_Mouse_Down *ev = event_info; */
 
 }
 
 static void _mouse_up_cb(void *data, Evas *evas, Evas_Object *obj, void *event_info)
 {
-    //struct appdata *ad = (struct appdata *)data;
+       /*struct appdata *ad = (struct appdata *)data; */
 
 }
 
 static void _mouse_move_cb(void *data, Evas *evas, Evas_Object *obj, void *event_info)
 {
-    //struct appdata *ad = (struct appdata *)data;
+       /*struct appdata *ad = (struct appdata *)data; */
 }
 
-static void _window_resize_cb(void *data, Evas * e, Evas_Object * obj, void *event_info)
+static void _window_resize_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
 {
-    struct appdata *ad = (struct appdata *)data;
-    evas_object_geometry_get(ad->win_main, NULL, NULL, &ad->root_w, &ad->root_h);
+       struct appdata *ad = (struct appdata *)data;
+       evas_object_geometry_get(ad->win_main, NULL, NULL, &ad->root_w, &ad->root_h);
 }
 
 static int _rotation_cb(enum appcore_rm mode, void *data)
 {
-    struct appdata *ad = (struct appdata *)data;
-    int angle;
-
-    switch (mode) {
-        case APPCORE_RM_LANDSCAPE_NORMAL:
-            angle = -90;
-            break;
-
-        case APPCORE_RM_LANDSCAPE_REVERSE:
-            angle = 90;
-            break;
-
-        case APPCORE_RM_PORTRAIT_REVERSE:
-            angle = 180;
-            break;
-
-        case APPCORE_RM_UNKNOWN:
-        case APPCORE_RM_PORTRAIT_NORMAL:
-        default:
-            angle = 0;
-            break;
-    }
+       struct appdata *ad = (struct appdata *)data;
+       int angle;
+
+       switch (mode) {
+       case APPCORE_RM_LANDSCAPE_NORMAL:
+               angle = -90;
+               break;
+
+       case APPCORE_RM_LANDSCAPE_REVERSE:
+               angle = 90;
+               break;
+
+       case APPCORE_RM_PORTRAIT_REVERSE:
+               angle = 180;
+               break;
+
+       case APPCORE_RM_UNKNOWN:
+       case APPCORE_RM_PORTRAIT_NORMAL:
+       default:
+               angle = 0;
+               break;
+       }
 
-    elm_win_rotation_with_resize_set(ad->win_main, angle);
-    // set_rotation_degree(angle);
+       elm_win_rotation_with_resize_set(ad->win_main, angle);
+       /* set_rotation_degree(angle); */
 
-    // This is need for customized rotation process.
-    // rotate_for_winset(mode);
+       /* This is need for customized rotation process. */
+       /* rotate_for_winset(mode); */
 
-    return 0;
+       return 0;
 }
 
 int app_create(void *data)
 {
-    struct appdata *ad = (struct appdata *) data;
+       struct appdata *ad = (struct appdata *) data;
 
-    // Set the engine to opengl_x11
-    //elm_config_engine_set("opengl_x11");
+       /* Set the engine to opengl_x11 */
+       /*elm_config_engine_set("opengl_x11"); */
 
-    ad->win_main = create_win(PACKAGE);
+       ad->win_main = create_win(PACKAGE);
 
-    evas_object_event_callback_add(ad->win_main, EVAS_CALLBACK_RESIZE, _window_resize_cb, ad);
-    evas_object_show(ad->win_main);
-    ad->evas = evas_object_evas_get(ad->win_main);
-    appcore_set_rotation_cb(_rotation_cb, ad);
+       evas_object_event_callback_add(ad->win_main, EVAS_CALLBACK_RESIZE, _window_resize_cb, ad);
+       evas_object_show(ad->win_main);
+       ad->evas = evas_object_evas_get(ad->win_main);
+       appcore_set_rotation_cb(_rotation_cb, ad);
 
-    // set_edj_name(NULL);
+       /* set_edj_name(NULL); */
 
        ad->bg = _create_bg(ad->win_main);
        ad->layout_main = _create_layout_main(ad->win_main);
@@ -280,42 +943,51 @@ int app_create(void *data)
 
        _create_view_layout(ad);
 
-    evas_object_event_callback_add(ad->navi, EVAS_CALLBACK_MOUSE_DOWN, _mouse_down_cb, ad);
-    evas_object_event_callback_add(ad->navi, EVAS_CALLBACK_MOUSE_UP, _mouse_up_cb,  ad);
-    evas_object_event_callback_add(ad->navi, EVAS_CALLBACK_MOUSE_MOVE, _mouse_move_cb, ad);
+       evas_object_event_callback_add(ad->navi, EVAS_CALLBACK_MOUSE_DOWN, _mouse_down_cb, ad);
+       evas_object_event_callback_add(ad->navi, EVAS_CALLBACK_MOUSE_UP, _mouse_up_cb,  ad);
+       evas_object_event_callback_add(ad->navi, EVAS_CALLBACK_MOUSE_MOVE, _mouse_move_cb, ad);
 
-    return 0;
+       return 0;
 }
 
 int app_terminate(void *data)
 {
-       //struct appdata *ad = data;
+       /*struct appdata *ad = data; */
 
        int ret;
-       // unregistration
+       /* unregistration */
        ret = system_settings_unset_changed_cb(SYSTEM_SETTINGS_KEY_FONT_SIZE);
+       SETTING_TRACE("system_settings_unset_changed_cb(SYSTEM_SETTINGS_KEY_FONT_SIZE) = %d, . ", ret);
+
        ret = system_settings_unset_changed_cb(SYSTEM_SETTINGS_KEY_FONT_TYPE);
+       SETTING_TRACE("system_settings_unset_changed_cb(SYSTEM_SETTINGS_KEY_FONT_TYPE) = %d, . ", ret);
+
        ret = system_settings_unset_changed_cb(SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION);
+       SETTING_TRACE("system_settings_unset_changed_cb(SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION) = %d, . ", ret);
+
+       ret = system_settings_unset_changed_cb(SYSTEM_SETTINGS_KEY_TIME_CHANGED);
+       SETTING_TRACE("system_settings_unset_changed_cb(SYSTEM_SETTINGS_KEY_TIME_CHANGED) = %d, . ", ret);
+
        return 0;
 }
 
 int app_pause(void *data)
 {
-       //struct appdata *ad = data;
+       /*struct appdata *ad = data; */
 
-    return 0;
+       return 0;
 }
 
 int app_resume(void *data)
 {
-    //struct appdata *ad = data;
+       /*struct appdata *ad = data; */
 
-    return 0;
+       return 0;
 }
 
-int app_reset(bundle* b, void* data)
+int app_reset(bundle *b, void *data)
 {
-       struct appdataad = data;
+       struct appdata *ad = data;
 
        if (ad->win_main)
                elm_win_activate(ad->win_main);
@@ -324,10 +996,12 @@ int app_reset(bundle* b, void* data)
 }
 
 
-int main(int argc, charargv[])
+int main(int argc, char *argv[])
 {
        struct appdata ad;
 
+       ad.pkgname = "ARGUMENTATION SUCCESS *********************************";
+
        struct appcore_ops ops = {
                .create = app_create,
                .terminate = app_terminate,
index 4476b1e..47097ff 100644 (file)
@@ -24,9 +24,8 @@
 
 #define PACKAGE "com.samsung.appcore-mini"
 
-struct appdata
-{
-       Evas* evas;
+struct appdata {
+       Evas *evas;
        Evas_Object *win_main;
        Evas_Object *bg;
        Evas_Object *layout_main;
@@ -35,28 +34,30 @@ struct appdata
 
        Evas_Coord root_w;
        Evas_Coord root_h;
+
+       char *pkgname;
 };
 
 
-// appcore & EFL initialization code
-static void _quit_cb(void *data, Evas_Object* obj, void* event_info);
-static Evas_Object* _create_list_winset(Evas_Object* parent, struct appdata* ad);
+/* appcore & EFL initialization code */
+static void _quit_cb(void *data, Evas_Object *obj, void *event_info);
+static Evas_Object *_create_list_winset(Evas_Object *parent, struct appdata *ad);
 
 /**
  * return a pointer, calling elm_win_add(); -> win_main
  */
-static Evas_Objectcreate_win(const char *name);
-static void _window_resize_cb(void *data, Evas * e, Evas_Object * obj, void *event_info);
+static Evas_Object *create_win(const char *name);
+static void _window_resize_cb(void *data, Evas *e, Evas_Object *obj, void *event_info);
 
 /**
  * return a pointer, calling elm_bg_add(); -> bg
  */
-static Evas_Object_create_bg(Evas_Object *parent);
+static Evas_Object *_create_bg(Evas_Object *parent);
 
 /**
  * return a pointer, calling elm_layout_add( win_main ) -> layout_main
  */
-static Evas_Object* _create_layout_main(Evas_Object* parent);
+static Evas_Object *_create_layout_main(Evas_Object *parent);
 
 
 #endif /* __APPCORE_MINI_ */
diff --git a/capi-system-system-settings.manifest b/capi-system-system-settings.manifest
new file mode 100644 (file)
index 0000000..634c303
--- /dev/null
@@ -0,0 +1,8 @@
+<manifest>
+    <request>
+        <domain name="_"/>
+    </request>
+       <assign>
+               <filesystem path="/usr/local/bin/test_system_settings_gui" exec_label="none"/>
+       </assign>
+</manifest>
index d0610b9..ef23d0c 100755 (executable)
@@ -1,4 +1,3 @@
-
 # Package Information for pkg-config
 
 prefix=@PREFIX@
index 2b54d2d..b9fa9ed 100755 (executable)
@@ -1,3 +1,16 @@
+capi-system-system-settings (0.0.1-7ubuntu1) precise; urgency=low
+
+  * release 
+  * font-type API refinement
+
+ -- mjpark <mjpark@localhost>  Wed, 23 Jan 2013 15:25:21 +0900
+
+capi-system-system-settings (0.0.1-7) unstable; urgency=low
+
+  * release
+
+ -- MyoungJune Park <mj2004.park@samsung.com>  Tue, 04 Sep 2012 10:34:54 +0900
+
 capi-system-system-settings (0.0.1-6) unstable; urgency=low
 
   * tizen build
diff --git a/doc/system_settings_doc.h b/doc/system_settings_doc.h
new file mode 100644 (file)
index 0000000..bec661e
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+/**
+* @ingroup CAPI_SYSTEM_FRAMEWORK
+* @defgroup CAPI_SYSTEM_SYSTEM_SETTINGS_MODULE System Settings
+* @brief The @ref CAPI_SYSTEM_SYSTEM_SETTINGS_MODULE API provides APIs for sharing configuration over a system.
+* #system_settings_key_e shows all of the supporting APIs in System-Settings.
+*
+* @section CAPI_SYSTEM_SYSTEM_SETTINGS_MODULE_REQUIRED_HEADER Required Header
+*      \#include <system_settings.h>
+*
+* @section CAPI_SYSTEM_SYSTEM_SETTINGS_MODULE_OVERVIEW Overview
+*
+* System Settings API provides functions for getting the system configuration related to user preferences.
+* The main features of the System Settings API include accessing system-wide configurations, such as ringtones, wallpapers, and etc.
+*
+* For more information on feature, see <a href="../org.tizen.mobile.native.appprogramming/html/guide/system/system_settings.htm">System Settings Programming Guide.</a>
+*/
old mode 100755 (executable)
new mode 100644 (file)
index aeffe1c..908d08d
@@ -11,7 +11,7 @@
  * distributed under the License is distributed on an AS IS BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
- * limitations under the License. 
+ * limitations under the License.
  */
 
 #ifndef __TIZEN_SYSTEM_SYSTEM_SETTINGS_H__
@@ -24,14 +24,19 @@ extern "C"
 {
 #endif
 
- /**
+/**
+ * @file system_settings.h
+ */
+
+/**
  * @addtogroup CAPI_SYSTEM_SYSTEM_SETTINGS_MODULE
  * @{
  */
 
 
 /**
- * @brief Enumeration of error code for system settings
+ * @brief Enumeration for system settings error.
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
  */
 typedef enum
 {
@@ -39,28 +44,85 @@ typedef enum
        SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */
        SYSTEM_SETTINGS_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */
        SYSTEM_SETTINGS_ERROR_IO_ERROR =  TIZEN_ERROR_IO_ERROR, /**< Internal I/O error */
-} system_settings_error_e;
+       SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED =  TIZEN_ERROR_PERMISSION_DENIED, /**< Permition denied */
+       SYSTEM_SETTINGS_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED,        /**< Not supported @if MOBILE (Since 2.3.1) @endif */
+       /* lock screen app error code */
+       SYSTEM_SETTINGS_ERROR_LOCKSCREEN_APP_PASSWORD_MODE = TIZEN_ERROR_SYSTEM_SETTING | 0x01, /**< Current lock screen app set 'password' type */
+}
+system_settings_error_e;
 
 
 /**
- * @brief Enumeration of key for system settings
+ * @brief Enumeration for System Settings Key.
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
  */
-typedef enum
-{
-       SYSTEM_SETTINGS_KEY_INCOMING_CALL_RINGTONE, /**< The file path of the current ringtone */
-       SYSTEM_SETTINGS_KEY_WALLPAPER_HOME_SCREEN, /**< The file path of the current home screen wallpaper */
-       SYSTEM_SETTINGS_KEY_WALLPAPER_LOCK_SCREEN, /**< The file path of the current lock screen wallpaper */
-       SYSTEM_SETTINGS_KEY_FONT_SIZE, /**< The current system font size */
-       SYSTEM_SETTINGS_KEY_FONT_TYPE, /**< The current system font type */
-       SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION, /**< Indicates whether the motion service is activated */
+typedef enum {
+       SYSTEM_SETTINGS_KEY_INCOMING_CALL_RINGTONE, /**< (string) The file path of the current ringtone */
+       SYSTEM_SETTINGS_KEY_WALLPAPER_HOME_SCREEN, /**< (string) The file path of the current home screen wallpaper */
+       SYSTEM_SETTINGS_KEY_WALLPAPER_LOCK_SCREEN, /**< (string) The file path of the current lock screen wallpaper */
+       SYSTEM_SETTINGS_KEY_FONT_SIZE, /**< (int) The current system font size */
+       SYSTEM_SETTINGS_KEY_FONT_TYPE, /**< (string) The current system font type */
+       SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION, /**< (bool) Indicates whether the motion service is activated */
+       SYSTEM_SETTINGS_KEY_EMAIL_ALERT_RINGTONE,  /**< (string) The file path of the current email alert ringtone */
+       SYSTEM_SETTINGS_KEY_USB_DEBUGGING_ENABLED,  /**< (bool) Indicates whether the USB debugging is enabled */
+       SYSTEM_SETTINGS_KEY_3G_DATA_NETWORK_ENABLED,  /**< @internal (bool) Indicates whether the 3G data network is enabled */
+       SYSTEM_SETTINGS_KEY_TAP_AND_HOLD_DELAY,  /**< @internal (int) Indicates delaying time of 'tab and hold' (sec) */
+       SYSTEM_SETTINGS_KEY_LOCKSCREEN_APP,  /**< (string) Indicates lockscreen app pkg name */
+       SYSTEM_SETTINGS_KEY_DEFAULT_FONT_TYPE,/**< (string) The current system default font type (only support Get) */
+
+       SYSTEM_SETTINGS_KEY_LOCALE_COUNTRY,             /**< (string) Indicates the current country setting in the <LANGUAGE>_<REGION> syntax. The country setting is in the ISO 639-2 format, and the region setting is in the ISO 3166-1 alpha-2 format */
+       SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE,    /**< (string) Indicates the current language setting in the <LANGUAGE>_<REGION> syntax. The language setting is in the ISO 639-2 format and the region setting is in the ISO 3166-1 alpha-2 format. */
+
+       SYSTEM_SETTINGS_KEY_LOCALE_TIMEFORMAT_24HOUR,   /**< (bool) Indicates whether the 24-hour clock is used. If the value is @c false, the 12-hour clock is used. */
+       SYSTEM_SETTINGS_KEY_LOCALE_TIMEZONE,    /**< GET (string) Indicates the current time zone. */
+       SYSTEM_SETTINGS_KEY_TIME_CHANGED,               /**< (int) Once System changes time, this event occurs to notify time change. */
+
+       SYSTEM_SETTINGS_KEY_SOUND_LOCK,                                 /**< GET (bool) Indicates whether the screen lock sound is enabled on the device. ex) LCD on/off sound */
+       SYSTEM_SETTINGS_KEY_SOUND_SILENT_MODE,                  /**< GET (bool) Indicates whether the device is in the silent mode. */
+       SYSTEM_SETTINGS_KEY_SOUND_TOUCH,                                /**< GET (bool) Indicates whether the screen touch sound is enabled on the device. */
+
+       SYSTEM_SETTINGS_KEY_DISPLAY_SCREEN_ROTATION_AUTO,       /**< GET (bool) Indicates whether rotation control is automatic.*/
+
+       SYSTEM_SETTINGS_KEY_DEVICE_NAME,                                        /**< GET (string) Indicates device name. */
+       SYSTEM_SETTINGS_KEY_MOTION_ENABLED,                                     /**< GET (bool) Indicates whether the device user has enabled the motion feature. */
+       SYSTEM_SETTINGS_KEY_NETWORK_WIFI_NOTIFICATION,          /**< GET (bool) Indicates whether Wi-Fi-related notifications are enabled on the device. */
+       SYSTEM_SETTINGS_KEY_NETWORK_FLIGHT_MODE,                        /**< GET (bool) Indicates whether the device is in the flight mode. */
+
+       SYSTEM_SETTINGS_KEY_SCREEN_BACKLIGHT_TIME,                      /**< (int) Indicates the backlight time (in seconds). @internal The following values can be used: 15, 30, 60, 120, 300, and 600. */
+
+       SYSTEM_SETTINGS_KEY_SOUND_NOTIFICATION,                         /**< (string) Indicates the file path of the current notification tone set by the user. */
+       SYSTEM_SETTINGS_KEY_SOUND_NOTIFICATION_REPETITION_PERIOD,       /**< (int) Indicates the time period for notification repetitions. */
+       SYSTEM_SETTINGS_KEY_LOCK_STATE,                                         /**< (int) Indicates the current lock state @if MOBILE (Since 2.3.1) @endif */
+       SYSTEM_SETTINGS_KEY_MAX,
+
 } system_settings_key_e;
 
+/**
+ * @internal
+ * @brief Enumeration for current lock state
+ */
+typedef enum {
+       SYSTEM_SETTINGS_LOCK_STATE_UNLOCK = 0, /**< Device is unlocked */
+       SYSTEM_SETTINGS_LOCK_STATE_LOCK, /**< Device is locked */
+       SYSTEM_SETTINGS_LOCK_STATE_LAUNCHING_LOCK /**< Device is being locked */
+} system_settings_lock_state_e;
 
 /**
- * @brief Enumeration of font size
+ * @internal
+ * @brief Enumeration for tap and hold delay.
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
  */
-typedef enum
-{
+typedef enum {
+       SYSTEM_SETTINGS_TAP_AND_HOLD_DELAY_SHORT = 500, /**< @internal 500 msec */
+       SYSTEM_SETTINGS_TAP_AND_HOLD_DELAY_MEDIUM = 1000, /**< @internal 1000 msec */
+       SYSTEM_SETTINGS_TAP_AND_HOLD_DELAY_LONG = 1500, /**< @internal 1500 msec */
+} system_settings_tap_and_hold_delay_e;
+
+/**
+ * @brief Enumeration for font size.
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ */
+typedef enum {
        SYSTEM_SETTINGS_FONT_SIZE_SMALL = 0, /**< A small size */
        SYSTEM_SETTINGS_FONT_SIZE_NORMAL, /**< A normal size */
        SYSTEM_SETTINGS_FONT_SIZE_LARGE, /**< A large size */
@@ -70,8 +132,9 @@ typedef enum
 
 
 /**
- * @brief Called when the system settings changes
- * @param[in] key The key name of the system settings changed
+ * @brief Called when the system settings changes.
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @param[in] key The key name of the system settings changed system settings
  * @param[in] user_data The user data passed from the callback registration function
  * @pre system_settings_set_changed_cb() will invoke this callback function.
  * @see system_settings_set_changed_cb()
@@ -80,122 +143,131 @@ typedef enum
 typedef void (*system_settings_changed_cb)(system_settings_key_e key, void *user_data);
 
 /**
+ * @internal
  * @brief Sets the system settings value associated with the given key as an integer.
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @privlevel platform
+ * @privilege %http://tizen.org/privilege/systemsettings.admin
+ * @param[in] key The key name of the system settings changed
  * @param[in] key The key name of the system settings
  * @param[out] value The new system settings value of the given key
- * @return  0 on success, otherwise a negative error value.
+ * @return @c 0 on success, otherwise a negative error value
  * @retval  #SYSTEM_SETTINGS_ERROR_NONE Successful
  * @retval  #SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval  #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
  */
 int system_settings_set_value_int(system_settings_key_e key, int value);
 
 /**
  * @brief Gets the system settings value associated with the given key as an integer.
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
  * @param[in] key The key name of the system settings
  * @param[out] value The current system settings value of the given key
- * @return  0 on success, otherwise a negative error value.
+ * @return @c 0 on success, otherwise a negative error value
  * @retval  #SYSTEM_SETTINGS_ERROR_NONE Successful
  * @retval  #SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval  #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ * @warning %http://tizen.org/privilege/systemsettings (public level privilege) <b>MUST NOT</b> be declared to use this API since 2.3.1.
  */
 int system_settings_get_value_int(system_settings_key_e key, int *value);
 
 
 /**
+ * @internal
  * @brief Sets the system settings value associated with the given key as a boolean.
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @privlevel platform
+ * @privilege %http://tizen.org/privilege/systemsettings.admin
  * @param[in] key The key name of the system settings
  * @param[out] value The new system settings value of the given key
- * @return  0 on success, otherwise a negative error value.
+ * @return @c 0 on success, otherwise a negative error value
  * @retval  #SYSTEM_SETTINGS_ERROR_NONE Successful
  * @retval  #SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval  #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
  */
 int system_settings_set_value_bool(system_settings_key_e key, bool value);
 
 /**
  * @brief Gets the system settings value associated with the given key as a boolean.
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
  * @param[in] key The key name of the system settings
  * @param[out] value The current system settings value of the given key
- * @return  0 on success, otherwise a negative error value.
+ * @return @c 0 on success, otherwise a negative error value
  * @retval  #SYSTEM_SETTINGS_ERROR_NONE Successful
  * @retval  #SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval  #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ * @warning %http://tizen.org/privilege/systemsettings (public level privilege) <b>MUST NOT</b> be declared to use this API since 2.3.1.
  */
 int system_settings_get_value_bool(system_settings_key_e key, bool *value);
 
-
-/**
- * @brief Sets the system settings value associated with the given key as a double.
- * @param[in] key The key name of the system settings
- * @param[out] value The new system settings value of the given key
- * @return  0 on success, otherwise a negative error value.
- * @retval  #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval  #SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval  #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- */
-int system_settings_set_value_double(system_settings_key_e key, double value);
-
-/**
- * @brief Gets the system settings value associated with the given key as a double.
- * @param[in] key The key name of the system settings
- * @param[out] value The current system settings value of the given key
- * @return  0 on success, otherwise a negative error value.
- * @retval  #SYSTEM_SETTINGS_ERROR_NONE Successful
- * @retval  #SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval  #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
- */
-int system_settings_get_value_double(system_settings_key_e key, double *value);
-
-
 /**
+ * @internal
  * @brief Sets the system settings value associated with the given key as a string.
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @privlevel platform
+ * @privilege %http://tizen.org/privilege/systemsettings.admin
+ * @remarks #SYSTEM_SETTINGS_KEY_DEFAULT_FONT_TYPE is not available for setting.
  * @param[in] key The key name of the system settings
  * @param[out] value The new system settings value of the given key
- * @return  0 on success, otherwise a negative error value.
+ * @return @c 0 on success, otherwise a negative error value
  * @retval  #SYSTEM_SETTINGS_ERROR_NONE Successful
  * @retval  #SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval  #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
  */
 int system_settings_set_value_string(system_settings_key_e key, const char *value);
 
 /**
  * @brief Gets the system settings value associated with the given key as a string.
- * @remarks @a value must be released with @c free() by you. 
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @remarks You must release @a value using free().
  * @param[in] key The key name of the system settings
  * @param[out] value The current system settings value of the given key
- * @return  0 on success, otherwise a negative error value.
+ * @return  0 on success, otherwise a negative error value
  * @retval  #SYSTEM_SETTINGS_ERROR_NONE Successful
  * @retval  #SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval  #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ * @warning %http://tizen.org/privilege/systemsettings (public level privilege) <b>MUST NOT</b> be declared to use this API since 2.3.1.
  */
 int system_settings_get_value_string(system_settings_key_e key, char **value);
 
-
 /**
  * @brief Registers a change event callback for the given system settings key.
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @remarks #SYSTEM_SETTINGS_KEY_DEFAULT_FONT_TYPE is not available for set_changed_cb.
  * @param[in] key The key name of the system settings
  * @param[in] callback The callback function to invoke
  * @param[in] user_data The user data to be passed to the callback function
- * @return  0 on success, otherwise a negative error value.
+ * @return  0 on success, otherwise a negative error value
  * @retval  #SYSTEM_SETTINGS_ERROR_NONE Successful
  * @retval  #SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
  * @post system_settings_changed_cb() will be invoked.
  *
  * @see system_settings_unset_changed_cb()
  * @see system_settings_changed_cb()
+ * @warning %http://tizen.org/privilege/systemsettings (public level privilege) <b>MUST NOT</b> be declared to use this API since 2.3.1.
+ *
 */
 int system_settings_set_changed_cb(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
 
-
 /**
  * @brief Unregisters the callback function.
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @remarks #SYSTEM_SETTINGS_KEY_DEFAULT_FONT_TYPE is not available for set_changed_cb.
  * @param[in] key The key name of the system settings
- * @return  0 on success, otherwise a negative error value.
+ * @return  0 on success, otherwise a negative error value
  * @retval  #SYSTEM_SETTINGS_ERROR_NONE Successful
  * @retval  #SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
  *
  * @see system_settings_set_changed_cb()
+ * @warning %http://tizen.org/privilege/systemsettings (public level privilege) <b>MUST NOT</b> be declared to use this API since 2.3.1.
  */
 int system_settings_unset_changed_cb(system_settings_key_e key);
 
index 70b52ef..d903b6c 100644 (file)
@@ -23,90 +23,1238 @@ extern "C"
 {
 #endif
 
-#define VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_NAME  "db/setting/accessibility/font_name"
+#include <dlog.h>
 
+#ifdef LOG_TAG
+#undef LOG_TAG
+#endif
+
+#define LOG_TAG "SYSTEM-SETTINGS"
+
+#define SYSTEM_SETTINGS_ENABLE_TRACE
+
+#ifdef SYSTEM_SETTINGS_ENABLE_TRACE
+
+
+#define SETTING_TRACE_DEBUG(fmt, arg...) \
+       do {\
+               SECURE_LOGD("\033[0;32mDEBUG: " fmt "\033[0m\n", ##arg);\
+       }while(0);
+
+#define SETTING_TRACE(fmt, arg...) \
+       do {\
+               SECURE_LOGI("\033[0;36m" fmt "\033[0m\n", ##arg);\
+       }while(0);
+
+#define SETTING_TRACE_BEGIN do {\
+               SECURE_LOGD("\033[0;35mENTER FUNCTION: %s. \033[0m\n", __FUNCTION__);\
+       }while(0);
+
+#define SETTING_TRACE_END  do {\
+               SECURE_LOGD("\033[0;35mEXIT FUNCTION: %s. \033[0m\n", __FUNCTION__);\
+       }while(0);
+#else
+#define SETTING_TRACE_DEBUG(fmt, arg...)
+#define SETTING_TRACE(fmt, arg...)
+#define SETTING_TRACE_BEGIN
+#define SETTING_TRACE_END
+#endif
+
+
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * Enumeration for data type of internal getter/setter.
+ */
 typedef enum {
-       SYSTEM_SETTING_DATA_TYPE_STRING,
-       SYSTEM_SETTING_DATA_TYPE_INT,
-       SYSTEM_SETTING_DATA_TYPE_DOUBLE,
-       SYSTEM_SETTING_DATA_TYPE_BOOL,
-} system_setting_data_type_e;
+       SYSTEM_SETTING_DATA_TYPE_STRING,        /**< string */
+       SYSTEM_SETTING_DATA_TYPE_INT,           /**< integer */
+       SYSTEM_SETTING_DATA_TYPE_BOOL,          /**< boolean */
+#if 0
+       /*SYSTEM_SETTING_DATA_TYPE_FLOAT, */
+       /*SYSTEM_SETTING_DATA_TYPE_DOULBE, */
+#endif
+}
+system_setting_data_type_e;
+
 
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @return  0 on success, otherwise a negative error value
+ * @retval  #SYSTEM_SETTINGS_ERROR_NONE Successful
+ * @retval  #SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @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, system_setting_data_type_e data_type, void **value);
 
-typedef int (*system_setting_get_value_cb) (system_settings_key_e key, system_setting_data_type_e data_type, void** value);
-typedef int (*system_setting_set_value_cb) (system_settings_key_e key, system_setting_data_type_e data_type, void* value);
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @return  0 on success, otherwise a negative error value
+ * @retval  #SYSTEM_SETTINGS_ERROR_NONE Successful
+ * @retval  #SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @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, system_setting_data_type_e data_type, void *value);
 
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @return  0 on success, otherwise a negative error value
+ * @retval  #SYSTEM_SETTINGS_ERROR_NONE Successful
+ * @retval  #SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @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);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @return  0 on success, otherwise a negative error value
+ * @retval  #SYSTEM_SETTINGS_ERROR_NONE Successful
+ * @retval  #SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @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);
 
 
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @return  0 on success, otherwise a negative error value
+ * @retval  #SYSTEM_SETTINGS_ERROR_NONE Successful
+ * @retval  #SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval  #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
+ */
 typedef struct {
-       system_settings_key_e key;                                                                              /* key */
-       system_setting_data_type_e data_type;
-       system_setting_get_value_cb get_value_cb;                                               /* get value */
-       system_setting_set_value_cb set_value_cb;                                               /* set value */
+       system_settings_key_e key;                                                                              /**< key */
+       system_setting_data_type_e data_type;                                                   /**< data type */
+       system_setting_get_value_cb get_value_cb;                                               /**< function pointer for getter */
+       system_setting_set_value_cb set_value_cb;                                               /**< function pointer for setter */
 
-       system_setting_set_changed_callback_cb set_changed_cb;
-       system_setting_unset_changed_callback_cb unset_changed_cb ;
+       system_setting_set_changed_callback_cb set_changed_cb;                  /**< function pointer to register for notification callback */
+       system_setting_unset_changed_callback_cb unset_changed_cb ;             /**< function pointer to un-register for notification callback */
 
        system_settings_changed_cb changed_cb;                                                  /* registered by user application */
+       void *user_data;                                                                                                /* user_data */
+
 } system_setting_s;
 
-typedef system_setting_ssystem_setting_h;
+typedef system_setting_s *system_setting_h;
 
 
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @return  0 on success, otherwise a negative error value
+ * @retval  #SYSTEM_SETTINGS_ERROR_NONE Successful
+ * @retval  #SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval  #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ */
 int system_settings_get_item(system_settings_key_e key, system_setting_h *item);
 
 
-// get
+/* get */
+
+/**
+ * @internal
+ * @brief get vconf of in type value
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ *
+ * @param[in] vconf_key string
+ * @param[out] value get the integer type value
+ *
+ * @return 0 on success, -1 on error
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ */
 int system_setting_vconf_get_value_int(const char *vconf_key, int *value);
+
+/**
+ * @internal
+ * @brief get vconf of in bool value
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ *
+ * @param[in] vconf_key string
+ * @param[out] value get the bool type value
+ *
+ * @return 0 on success, -1 on error
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ */
 int system_setting_vconf_get_value_bool(const char *vconf_key, bool *value);
-int system_setting_vconf_get_value_double(const char *vconf_key, double *value);
+
+/**
+ * @internal
+ * @brief get vconf of string type value
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ *
+ * @param[in] vconf_key string
+ * @param[out] value get the string(char*) type value
+ *
+ * @return 0 on success, -1 on error
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ */
 int system_setting_vconf_get_value_string(const char *vconf_key, char **value);
 
-// set
+/**
+ * @internal
+ * @brief set the int type vconf value
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ *
+ * @param[in] vconf_key key name
+ * @param[in] value int type value
+ *
+ * @return 0 on success, -1 on error
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ */
 int system_setting_vconf_set_value_int(const char *vconf_key, int value);
+
+/**
+ * @internal
+ * @brief set the bool type vconf value
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @end
+ *
+ * @param[in] vconf_key key name
+ * @param[in] value bool type value
+ *
+ * @return 0 on success, -1 on error
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ */
 int system_setting_vconf_set_value_bool(const char *vconf_key, bool value);
-int system_setting_vconf_set_value_double(const char *vconf_key, double value);
+
+/**
+ * @internal
+ * @brief set the string type vconf value
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ *
+ * @param[in] vconf_key key name
+ * @param[in] value string type value
+ *
+ * @return 0 on success, -1 on error
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ */
 int system_setting_vconf_set_value_string(const char *vconf_key, char *value);
 
+/**
+ * @internal
+ * @brief Set the system settings notification callback
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @param[in] vconf_key
+ * @param[in] key
+ * @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
+ * @retval  #SYSTEM_SETTINGS_ERROR_IO_ERROR Internal I/O error
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ */
+int system_setting_vconf_set_changed_cb(const char *vconf_key, system_settings_key_e key, int slot, void *user_data);
 
-int system_setting_vconf_set_changed_cb(const char *vconf_key, system_settings_key_e system_setting_key, int slot);
+/**
+ * @internal
+ * @brief Unset the system settings notification callback
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @param[in] vconf_key vconf key name used in the code
+ * @param[in] slot internal slot to set the key (0~4)
+ * @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_vconf_unset_changed_cb(const char *vconf_key, int slot);
 
-int system_setting_get_incoming_call_ringtone(system_settings_key_e key, system_setting_data_type_e data_type, void** value);
-int system_setting_get_wallpaper_home_screen(system_settings_key_e key, system_setting_data_type_e data_type, void** value);
-int system_setting_get_wallpaper_lock_screen(system_settings_key_e key, system_setting_data_type_e data_type, void** value);
-int system_setting_get_font_size(system_settings_key_e key, system_setting_data_type_e data_type, void** value);
-int system_setting_get_font_type(system_settings_key_e key, system_setting_data_type_e data_type, void** value);
-int system_setting_get_motion_activation(system_settings_key_e key, system_setting_data_type_e data_type, void** value);
+/**
+ * @internal
+ * @brief get current font size
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void **value);
+
+/**
+ * @internal
+ * @brief set current font size
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @param[in] key key name should be SYSTEM_SETTINGS_KEY_FONT_SIZE
+ * @param[in] datatype should be SYSTEM_SETTING_DATA_TYPE_INT
+ * @param[out] value the font size
+ * @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_font_size(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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_incoming_call_ringtone(system_settings_key_e key, system_setting_data_type_e data_type, void* value);
-int system_setting_set_wallpaper_home_screen(system_settings_key_e key, system_setting_data_type_e data_type, void* value);
-int system_setting_set_wallpaper_lock_screen(system_settings_key_e key, system_setting_data_type_e data_type, void* value);
-int system_setting_set_font_size(system_settings_key_e key, system_setting_data_type_e data_type, void* value);
-int system_setting_set_font_type(system_settings_key_e key, system_setting_data_type_e data_type, void* value);
-int system_setting_set_motion_activation(system_settings_key_e key, system_setting_data_type_e data_type, void* value);
 
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ */
+int system_setting_get_incoming_call_ringtone(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+
+/**
+ * @internal
+ * @brief set current path of the ringtone
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @param[in] key key name should be SYSTEM_SETTINGS_KEY_INCOMING_CALL_RINGTONE
+ * @param[in] datatype should be SYSTEM_SETTING_DATA_TYPE_STRING
+ * @param[out] value the ringtone
+ * @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_incoming_call_ringtone(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ */
+int system_setting_get_email_alert_ringtone(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+
+/**
+ * @internal
+ * @brief set current path of the email-alert
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @param[in] key key name should be SYSTEM_SETTINGS_KEY_EMAIL_ALERT_RINGTONE
+ * @param[in] datatype should be SYSTEM_SETTING_DATA_TYPE_STRING
+ * @param[out] value the alert ringtone
+ * @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_email_alert_ringtone(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ */
+int system_setting_get_wallpaper_home_screen(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+
+/**
+ * @internal
+ * @brief set current path of the wallpaper
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @param[in] key key name should be SYSTEM_SETTINGS_KEY_WALLPAPER_HOME_SCREEN
+ * @param[in] datatype should be SYSTEM_SETTING_DATA_TYPE_STRING
+ * @param[out] value the wallpaper
+ * @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_wallpaper_home_screen(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ */
+int system_setting_get_wallpaper_lock_screen(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+
+/**
+ * @internal
+ * @brief set current path of the bg image of the lock screen
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @param[in] key key name should be SYSTEM_SETTINGS_KEY_WALLPAPER_LOCK_SCREEN
+ * @param[in] datatype should be SYSTEM_SETTING_DATA_TYPE_STRING
+ * @param[out] value the lock screen
+ * @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_wallpaper_lock_screen(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ */
 int system_setting_unset_changed_callback_wallpaper_lock_screen(system_settings_key_e key);
 
-int system_setting_set_changed_callback_font_size(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
-int system_setting_unset_changed_callback_font_size(system_settings_key_e key);
 
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ */
+int system_setting_get_default_font_type(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ */
+int system_setting_get_font_type(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+
+/**
+ * @internal
+ * @brief set name of the font name
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @param[in] key key name should be SYSTEM_SETTINGS_KEY_FONT_TYPE
+ * @param[in] datatype should be SYSTEM_SETTING_DATA_TYPE_STRING
+ * @param[out] value the font type
+ * @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_font_type(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ */
+int system_setting_get_motion_activation(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+
+/**
+ * @internal
+ * @brief set on/off of the motion activation
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void *value);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ */
+int system_setting_get_usb_debugging_option(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+
+/**
+ * @internal
+ * @brief set on/off of the debugging options
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void *value);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @retval  #SYSTEM_SETTINGS_ERROR_PERMISSION_DENIED Permission violation error
+ */
+int system_setting_get_3g_data_network(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+
+/**
+ * @internal
+ * @brief set on/off of the 3G data network option
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void *value);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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_3g_data_network(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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_3g_data_network(system_settings_key_e key);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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_tap_and_hold_delay(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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_tap_and_hold_delay(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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_tap_and_hold_delay(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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_tap_and_hold_delay(system_settings_key_e key);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void **value);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void *value);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void **value);
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void *value);
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void **value);
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void *value);
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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);
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void **value);
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void *value);
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void **value);
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void **value);
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void **value);
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void **value);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void *value);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void **value);
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void **value);
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void *value);
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void **value);
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void *value);
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void **value);
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void *value);
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void **value);
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void *value);
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void **value);
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void **value);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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, system_setting_data_type_e data_type, void **value);
+
+/**
+ * @internal
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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 @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @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
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @return  return SYSTEM_SETTINGS_ERROR_CALL_UNSUPPORTED_API
+ * @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_not_supported_now(system_settings_key_e key, system_setting_data_type_e data_type, void **value);
+int system_setting_set_not_supported_now(system_settings_key_e key, system_setting_data_type_e data_type, void *value);
+int system_setting_set_changed_callback_not_supported_now(system_settings_key_e key, system_settings_changed_cb callback, void *user_data);
+int system_setting_unset_changed_callback_not_supported_now(system_settings_key_e key);
+
+/**
+ * @internal
+ * @brief get current Idle Lock State
+ * @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_lock_state(system_settings_key_e key, system_setting_data_type_e data_type, 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, system_setting_data_type_e data_type, 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);
+
+
+/*// */
+
+
 
 #ifdef __cplusplus
 }
index 40c29f0..2fc1de2 100755 (executable)
@@ -1,9 +1,9 @@
 Name:       capi-system-system-settings
 Summary:    A System Settings library in Tizen Native API
-Version:    0.0.1
-Release:    1
+Version:    0.0.2
+Release:    3
 Group:      TO_BE/FILLED_IN
-License:    TO BE FILLED IN
+License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
 BuildRequires:  cmake
 BuildRequires:  pkgconfig(dlog)
@@ -19,6 +19,9 @@ BuildRequires:  pkgconfig(glib-2.0)
 BuildRequires:  pkgconfig(gobject-2.0)
 BuildRequires:  pkgconfig(fontconfig)
 BuildRequires:  pkgconfig(libxml-2.0)
+BuildRequires:  pkgconfig(pkgmgr)
+BuildRequires:  pkgconfig(pkgmgr-info)
+BuildRequires:  pkgconfig(efl-assist)
 
 Requires(post): /sbin/ldconfig  
 Requires(postun): /sbin/ldconfig
@@ -39,8 +42,32 @@ Requires:  pkgconfig(capi-base-common)
 %prep
 %setup -q
 
+%define tizen_profile_name mobile 
 
 %build
+
+%if "%{?tizen_profile_name}" == "wearable"
+export CFLAGS="$CFLAGS -DTIZEN_WEARABLE"
+export CXXFLAGS="$CXXFLAGS -DTIZEN_WEARABLE"
+export FFLAGS="$FFLAGS -DTIZEN_WEARABLE"
+%else
+export CFLAGS="$CFLAGS -DTIZEN_MOBILE"
+export CXXFLAGS="$CXXFLAGS -DTIZEN_MOBILE"
+export FFLAGS="$FFLAGS -DTIZEN_MOBILE"
+%endif
+
+%if 0%{?sec_build_binary_debug_enable}
+export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
+export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
+export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
+%endif
+
+%if 0%{?tizen_build_binary_release_type_eng}
+export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
+export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE"
+export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
+%endif
+
 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`  
 cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER} 
 
@@ -57,11 +84,13 @@ rm -rf %{buildroot}
 
 
 %files
+%manifest %{name}.manifest
 %{_libdir}/lib*.so.*
 # /usr/local/bin/test_system_settings
 /usr/local/bin/test_system_settings_gui
 
 %files devel
+%manifest %{name}.manifest
 %{_includedir}/system/*.h
 %{_libdir}/pkgconfig/*.pc
 %{_libdir}/lib*.so
old mode 100755 (executable)
new mode 100644 (file)
index 0224922..7ced8d1
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <errno.h>
+#include <time.h>
+
 #include <string.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
 
+#include <regex.h>
+
 #include <dlog.h>
 #include <vconf.h>
 
 #include <libxml/xmlmemory.h>
 #include <libxml/parser.h>
 
+#include <fontconfig/fontconfig.h>
+
+#include <pkgmgr-info.h>
+#include <ail.h>
+
 #include <Ecore_X.h>
 #include <Elementary.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
 
 #include <system_settings.h>
 #include <system_settings_private.h>
 
+#include <efl_assist.h>
 
-#ifdef LOG_TAG
-#undef LOG_TAG
+#ifdef TIZEN_WEARABLE
+#define SMALL_FONT_DPI                      (-90)
 #endif
-
+#ifdef TIZEN_MOBILE
 #define SMALL_FONT_DPI                      (-80)
+#endif
 #define MIDDLE_FONT_DPI                     (-100)
+#ifdef TIZEN_WEARABLE
+#define LARGE_FONT_DPI                      (-110)
+#endif
+#ifdef TIZEN_MOBILE
 #define LARGE_FONT_DPI                      (-150)
+#endif
 #define HUGE_FONT_DPI                       (-190)
 #define GIANT_FONT_DPI                      (-250)
 
+#define SETTING_FONT_PRELOAD_FONT_PATH "/usr/share/fonts"
+#define SETTING_FONT_DOWNLOADED_FONT_PATH "/opt/share/fonts"
+
 #define SETTING_FONT_CONF_FILE "/opt/etc/fonts/conf.avail/99-slp.conf"
-#define SETTING_STR_SLP_LEN  256
+#define SETTING_DEFAULT_FONT_CONF_FILE "/usr/opt/etc/fonts/conf.avail/99-slp.conf"
+
+#define SETTING_STR_LEN  256
+
+#define SETTING_TIME_ZONEINFO_PATH             "/usr/share/zoneinfo/"
+#define SETTING_TIME_SHARE_LOCAL_PATH  "/usr/share/locale"
+#define SETTING_TZONE_SYMLINK_PATH             "/opt/etc/localtime"
+
 
-static char_get_cur_font();
-static void font_size_set();
+static char *_get_cur_font();
+static void __font_size_set();
 static int __font_size_get();
+static char *_get_default_font();
 
-static void font_config_set(char *font_name);
+static bool font_config_set(char *font_name);
 static void font_config_set_notification();
 
-int system_setting_get_incoming_call_ringtone(system_settings_key_e key, system_setting_data_type_e data_type, void** value)
+/**
+ * VCONFKEY_SETAPPL_CALL_RINGTONE_PATH_STR has a path of the ringtone file which user choose
+ * @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, system_setting_data_type_e data_type, void **value)
 {
-       charvconf_value;
+       char *vconf_value;
        if (system_setting_vconf_get_value_string(VCONFKEY_SETAPPL_CALL_RINGTONE_PATH_STR, &vconf_value)) {
                return SYSTEM_SETTINGS_ERROR_IO_ERROR;
        }
-       *value = vconf_value;
+
+       /* check to see if it's accessable -> OK */
+       /* no --> default ringtone path VCONFKEY_SETAPPL_CALL_RINGTONE_DEFAULT_PATH_STR */
+       int is_load = _is_file_accessible(vconf_value);
+       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_value; */
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+
+int system_setting_get_email_alert_ringtone(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+{
+       char *vconf_value;
+       if (system_setting_vconf_get_value_string(VCONFKEY_SETAPPL_NOTI_MSG_RINGTONE_PATH_STR, &vconf_value)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+
+       /* check to see if it's accessable -> OK */
+       /* no --> default ringtone path VCONFKEY_SETAPPL_NOTI_RINGTONE_DEFAULT_PATH_STR */
+       int is_load = _is_file_accessible(vconf_value);
+       if (is_load == 0) {
+               *value = vconf_value;
+       } else { /* not zero on errro */
+               *value = vconf_get_str(VCONFKEY_SETAPPL_NOTI_RINGTONE_DEFAULT_PATH_STR);
+       }
+
        return SYSTEM_SETTINGS_ERROR_NONE;
 }
 
 
-int system_setting_get_wallpaper_home_screen(system_settings_key_e key, system_setting_data_type_e data_type, void** value)
+int system_setting_get_wallpaper_home_screen(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
 {
-       charvconf_value;
+       char *vconf_value;
        if (system_setting_vconf_get_value_string(VCONFKEY_BGSET, &vconf_value)) {
                return SYSTEM_SETTINGS_ERROR_IO_ERROR;
        }
@@ -78,9 +143,9 @@ int system_setting_get_wallpaper_home_screen(system_settings_key_e key, system_s
 }
 
 
-int system_setting_get_wallpaper_lock_screen(system_settings_key_e key, system_setting_data_type_e data_type, void** value)
+int system_setting_get_wallpaper_lock_screen(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
 {
-       charvconf_value;
+       char *vconf_value;
 
        if (system_setting_vconf_get_value_string(VCONFKEY_IDLE_LOCK_BGSET, &vconf_value)) {
                return SYSTEM_SETTINGS_ERROR_IO_ERROR;
@@ -91,85 +156,477 @@ int system_setting_get_wallpaper_lock_screen(system_settings_key_e key, system_s
 }
 
 
-// [int] vconf GET
-int system_setting_get_font_size(system_settings_key_e key, system_setting_data_type_e data_type, void** value)
+/* [int] vconf GET */
+int system_setting_get_font_size(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
 {
-       printf("system_setting_get_font_size \n");
        int vconf_value;
 
        if (system_setting_vconf_get_value_int(VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_SIZE, &vconf_value)) {
                return SYSTEM_SETTINGS_ERROR_IO_ERROR;
        }
-       *value = (void*)vconf_value;
+       *value = (void *)vconf_value;
 
        return SYSTEM_SETTINGS_ERROR_NONE;
 }
 
 
-// [int] vconf GET
-int system_setting_get_font_type(system_settings_key_e key, system_setting_data_type_e data_type, void** value)
+int system_setting_get_default_font_type(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
 {
-       printf("system_setting_get_font_type\n");
-       //int vconf_value;
-
-       char* font_name = _get_cur_font();
-       #if 0
-       if (system_setting_vconf_get_value_int(VCONFKEY_SETAPPL_FONT_TYPE_INT, &vconf_value)) {
+       char *font_name = _get_default_font();
+       if (font_name) {
+               *value = (void *)font_name;
+               return SYSTEM_SETTINGS_ERROR_NONE;
+       } else {
                return SYSTEM_SETTINGS_ERROR_IO_ERROR;
        }
-       //*value = (void*)vconf_value;
-       #endif
-       *value = (void*)font_name;
+}
+
+/* [int] vconf GET */
+int system_setting_get_font_type(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+{
+       char *font_name = _get_cur_font();
+       *value = (void *)font_name;
 
        return SYSTEM_SETTINGS_ERROR_NONE;
 }
 
 
-int system_setting_get_motion_activation(system_settings_key_e key, system_setting_data_type_e data_type, void** value)
+int system_setting_get_motion_activation(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
 {
        bool vconf_value;
 
        if (system_setting_vconf_get_value_bool(VCONFKEY_SETAPPL_MOTION_ACTIVATION, &vconf_value)) {
                return SYSTEM_SETTINGS_ERROR_IO_ERROR;
        }
-       *value = (void*)vconf_value;
+       *value = (void *)vconf_value;
+
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+int system_setting_get_usb_debugging_option(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+{
+       bool vconf_value;
+
+       if (system_setting_vconf_get_value_bool(VCONFKEY_SETAPPL_USB_DEBUG_MODE_BOOL, &vconf_value)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+       *value = (void *)vconf_value;
+
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+int system_setting_get_3g_data_network(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+{
+       bool vconf_value;
+
+       if (system_setting_vconf_get_value_bool(VCONFKEY_3G_ENABLE, &vconf_value)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+       *value = (void *)vconf_value;
+
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+/*////////////////////////////////////////////////////////////////////////////////////////////////// */
+
+
+int system_setting_get_tap_and_hold_delay(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+{
+       char *vconf_value = NULL;
+       if (system_setting_vconf_get_value_string(VCONFKEY_SETAPPL_ACCESSIBILITY_TAP_HOLD_DELAY_STR, &vconf_value)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+
+       int val = SYSTEM_SETTINGS_TAP_AND_HOLD_DELAY_MEDIUM;
+       if (vconf_value && strcmp(vconf_value, "IDS_COM_POP_SHORT") == 0) {
+               val = SYSTEM_SETTINGS_TAP_AND_HOLD_DELAY_SHORT;
+       } else if (vconf_value && strcmp(vconf_value, "IDS_ST_BODY_MEDIUM") == 0) {
+               val = SYSTEM_SETTINGS_TAP_AND_HOLD_DELAY_MEDIUM;
+       } else if (vconf_value && strcmp(vconf_value, "IDS_COM_POP_LONG") == 0) {
+               val = SYSTEM_SETTINGS_TAP_AND_HOLD_DELAY_LONG;
+       }
+
+       *value = (void *)val;           /* float */
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+/**
+ * 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, system_setting_data_type_e data_type, void **value)
+{
+       char *pkg_name = NULL;
+       int locktype = -1;
+
+       if (system_setting_vconf_get_value_int(VCONFKEY_SETAPPL_SCREEN_LOCK_TYPE_INT, &locktype)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+
+       if (system_setting_vconf_get_value_string(VCONFKEY_SETAPPL_3RD_LOCK_PKG_NAME_STR, &pkg_name)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+
+       if (pkg_name && strcmp(pkg_name, "com.samsung.lockscreen") == 0 && locktype == SETTING_SCREEN_LOCK_TYPE_PASSWORD) {
+               return SYSTEM_SETTINGS_ERROR_LOCKSCREEN_APP_PASSWORD_MODE;
+       }
+
+       *value = pkg_name;
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+
+/*////////////////////////////////////////////////////////////////////////////////////////////////// */
+
+int _is_file_accessible(const char *path)
+{
+       SETTING_TRACE_BEGIN;
+       int ret = access(path , R_OK);
+       if (ret == 0) {
+               SETTING_TRACE("found the file  %s", path);
+               return 0;
+       } else {
+               /* error code : 13 */
+               SETTING_TRACE("found the file  %s --- error code : %d ", path, errno);
+               return -errno;
+       }
+}
+
+int system_setting_set_incoming_call_ringtone(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+{
+       SETTING_TRACE_BEGIN;
+       char *vconf_value;
+       vconf_value = (char *)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)) {
+                       return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+               }
+       } else {
+               /* @todo add a common ret_handler */
+               return ret;
+       }
+
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+
+int system_setting_set_email_alert_ringtone(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+{
+       SETTING_TRACE_BEGIN;
+       char *vconf_value;
+       vconf_value = (char *)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)) {
+                       return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+               }
+       } else {
+               /*return SYSTEM_SETTINGS_ERROR_IO_ERROR;*/
+               /* @todo add a common ret_handler */
+               return ret;
+       }
+
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+
+bool __is_supported_image_type_load(char *path)
+{
+       evas_init();
+       Ecore_Evas  *ee;
+       Evas        *evas;
+
+       ee = ecore_evas_new(NULL, 0, 0, 100, 100, NULL);
+       evas = ecore_evas_get(ee);
+
+       Evas_Object *img = evas_object_image_add(evas);
+       evas_object_image_file_set(img, path, NULL);
+       Evas_Load_Error ret = evas_object_image_load_error_get(img);
+
+       bool result = false;
+       if (ret == EVAS_LOAD_ERROR_NONE) {
+               SETTING_TRACE("%s - OK", path);
+               result = true;
+       } else {
+               SETTING_TRACE("%s - NO", path);
+               result = false;
+       }
+       ecore_evas_free(ee);
+       evas_shutdown();
+       return result;
+}
+
+bool __is_supported_image_type(char *path)
+{
+       bool ret = false;
+
+       evas_init();
+       if (evas_object_image_extension_can_load_get(path))
+               ret = true;
+       else
+               ret = false;
+
+       evas_shutdown();
+
+       return ret;
+}
+
+#define PATH_EXT_CHECK_REG ".(jpe?g|jpg|png|gif)$"
+bool __is_supported_image_type_by_ext(char *file_path)
+{
+       regex_t fsm;
+       regmatch_t str[2048 + 1];
+
+       if (!file_path) return false;
+
+       int ret = false;
+       if (ret = regcomp(&fsm, PATH_EXT_CHECK_REG, REG_ICASE | REG_EXTENDED)) {
+               SETTING_TRACE("regular expresstion fail");
+               return 1;
+       }
+
+       /* code */
+       if (regexec(&fsm, file_path, strlen(file_path) + 1, str, 0) == REG_NOMATCH) {
+               /*SETTING_TRACE("FAILED - %s", file_path[i]); */
+               ret = 0;
+       } else {
+               /*SETTING_TRACE("MATCHED - %s", file_path[i]); */
+               ret = 1;
+       }
+       return ret;
+}
+#ifdef TIZEN_WEARABLE
+static int system_setting_get_extended_wallpaper_num(const char *file_path, unsigned int *num)
+{
+       char buffer[256];
+       const char *find_str = "extended_wallpaper_";
+       char *ch = NULL;
+
+       if (!(ch = strstr(file_path, find_str))) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+       strncpy(buffer, file_path, ch - file_path);
+       buffer[ch - file_path] = 0;
+       sprintf(buffer + (ch - file_path), "%s%s", "", ch + strlen(find_str));
+
+       if (!isdigit(buffer[0])) {
+               SETTING_TRACE("%s is not number", buffer);
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+
+       *num = atoi(buffer);
 
        return SYSTEM_SETTINGS_ERROR_NONE;
 }
 
-////////////////////////////////////////////////////////////////////////////////////////////////////
+static int system_setting_copy_extended_wallpaper(const char *dest_file_path, const char *source_file_path)
+{
+       if (!source_file_path || !dest_file_path) {
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+       }
+
+       char buf[1024];
+
+       int fd;
+       fd = open(source_file_path, O_RDONLY);
+       if (fd < 0) {
+               SETTING_TRACE("file open failed: %s", source_file_path);
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+
+       int fd2;
+       fd2 = open(dest_file_path, O_WRONLY | O_CREAT, S_IRWXU | S_IRWXG | S_IRWXO);
+       if (fd2 < 0) {
+               SETTING_TRACE("file creation failed: %s", dest_file_path);
+               close(fd);
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+
+       ssize_t size;
+       while ((size = read(fd, buf, sizeof(buf)-1)) > 0) {
+               write(fd2, buf, sizeof(buf)-1);
+       }
+
+       close(fd2);
+       close(fd);
+
+       if (chmod(dest_file_path, S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
+               SETTING_TRACE("chmod failed: %s", dest_file_path);
+       }
 
-int system_setting_set_incoming_call_ringtone(system_settings_key_e key, system_setting_data_type_e data_type, void* value)
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+static int system_setting_remove_oldest_extended_wallpaper()
 {
-       printf(" mock --> real system_setting_set_incoming_call_ringtone \n");
-       char* vconf_value;
-       vconf_value = (char*)value;
-       if (system_setting_vconf_set_value_string(VCONFKEY_SETAPPL_CALL_RINGTONE_PATH_STR, vconf_value)) {
+       DIR *dp;
+       struct dirent *dirp;
+       char *min_image_name = NULL;
+       unsigned int min_image_num = 0;
+       unsigned int temp_image_num = 0;
+       int image_count = 0;
+
+       if ((dp = opendir("/opt/usr/data/setting/wallpaper")) == NULL) {
+               SETTING_TRACE("opendir error");
                return SYSTEM_SETTINGS_ERROR_IO_ERROR;
        }
 
+       while ((dirp = readdir(dp))) {
+               if (!strcmp(dirp->d_name, ".") || !strcmp(dirp->d_name, ".."))
+                       continue;
+
+               if (system_setting_get_extended_wallpaper_num(dirp->d_name, &temp_image_num)
+                       != SYSTEM_SETTINGS_ERROR_NONE) {
+                       closedir(dp);
+                       return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+               }
+
+               if ((image_count == 0) || (min_image_num > temp_image_num)) {
+                       min_image_num = temp_image_num;
+                       min_image_name = dirp->d_name;
+               }
+
+               image_count++;
+       }
+       closedir(dp);
+
+       char buf[512];
+       if (min_image_name) {
+               snprintf(buf, sizeof(buf)-1, "/opt/usr/data/setting/wallpaper/%s", min_image_name);
+               if (remove(buf) < 0) {  /* remove oldest image */
+                       return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+               }
+       }
+
        return SYSTEM_SETTINGS_ERROR_NONE;
 }
 
-int system_setting_set_wallpaper_home_screen(system_settings_key_e key, system_setting_data_type_e data_type, void* value)
+static int system_setting_check_extended_wallpaper(const char *file_path)
+{
+       if (!file_path || !strlen(file_path))
+               return 0;
+       return (strstr(file_path, "/opt/usr/media/.bgwallpaper") != NULL);
+}
+
+#define WALLPAPER_MAX_COUNT            10
+#endif
+
+int system_setting_set_wallpaper_home_screen(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
 {
-       printf(" mock --> real system_setting_set_wallpaper_home_screen \n");
+       char *vconf_value;
+       vconf_value = (char *)value;
+
+       bool isok  = __is_supported_image_type_load(vconf_value);
+       if (!isok) {
+               /* not supported */
+               SETTING_TRACE("path : %s is not supported file format", vconf_value);
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+       } else {
+               SETTING_TRACE("path : %s is SUPPORT file format", vconf_value);
+       }
 
-       char* vconf_value;
-       vconf_value = (char*)value;
+       /* error handling here */
+       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)) {
                return SYSTEM_SETTINGS_ERROR_IO_ERROR;
        }
+#endif
+
+#ifdef TIZEN_WEARABLE
+       if (system_setting_check_extended_wallpaper(vconf_value)) {     /* New extended wallpaper */
+               DIR *dp;
+               struct dirent *dirp;
+               unsigned int max_image_num = 0;
+               unsigned int temp_image_num = 0;
+               int image_count = 0;
+
+               if ((dp = opendir("/opt/usr/data/setting/wallpaper")) == NULL) {
+                       SETTING_TRACE("Setting - dir open error!");
+                       return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+               }
+
+               /* Check a max number of wallpapers */
+               while ((dirp = readdir(dp))) {
+                       if (!strcmp(dirp->d_name, ".") || !strcmp(dirp->d_name, ".."))
+                               continue;
+
+                       if (system_setting_get_extended_wallpaper_num(dirp->d_name, &temp_image_num)
+                               != SYSTEM_SETTINGS_ERROR_NONE) {
+                               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+                       }
+
+                       if ((image_count == 0) || (max_image_num < temp_image_num)) {
+                               max_image_num = temp_image_num;
+                       }
+
+                       image_count++;
+               }
+
+               /* Numbering rule: Gear is odd number */
+               max_image_num = (max_image_num % 2 == 0) ? max_image_num + 1
+                                               : max_image_num + 2;
+
+               char file_name_buffer[512];
+               snprintf(file_name_buffer, sizeof(file_name_buffer)-1,
+                                "/opt/usr/data/setting/wallpaper/extended_wallpaper_%d.jpg", max_image_num);
+
+               /* Copy image to /opt/usr/data/setting/wallpaper/ */
+               if (system_setting_copy_extended_wallpaper(file_name_buffer, vconf_value)
+                       != SYSTEM_SETTINGS_ERROR_NONE) {
+                       return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+               }
+
+               /* remove oldest wallpaper */
+               if (image_count >= WALLPAPER_MAX_COUNT) {
+                       if (system_setting_remove_oldest_extended_wallpaper()
+                               != SYSTEM_SETTINGS_ERROR_NONE) {
+                               if (remove(file_name_buffer) < 0)
+                                       return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+                               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+                       }
+               }
+
+               if (system_setting_vconf_set_value_string(VCONFKEY_BGSET, file_name_buffer)) {
+                       return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+               }
+
+               if (system_setting_vconf_set_value_int(VCONFKEY_SETAPPL_WALLPAPER_CHANGED_NOTI_INT,
+                                                                                          VCONFKEY_WALLPAPER_CHANGED_NOTI_GEAR)) {
+                       return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+               }
+       } else {
+               if (system_setting_vconf_set_value_string(VCONFKEY_BGSET, vconf_value)) {
+                       return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+               }
+       }
+#endif
 
        return SYSTEM_SETTINGS_ERROR_NONE;
 }
 
-int system_setting_set_wallpaper_lock_screen(system_settings_key_e key, system_setting_data_type_e data_type, voidvalue)
+int system_setting_set_wallpaper_lock_screen(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
 {
-       printf(" mock --> real system_setting_set_wallpaper_lock_screen \n");
+       char *vconf_value;
+       vconf_value = (char *)value;
+
+       bool isok  = __is_supported_image_type_load(vconf_value);
+       if (!isok) {
+               /* not supported */
+               SETTING_TRACE("path : %s is not supported file format", vconf_value);
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+       } else {
+               SETTING_TRACE("path : %s is SUPPORT file format", vconf_value);
+       }
+
+       /* error handling here */
+       if (_is_file_accessible(vconf_value) != 0)
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
 
-       char* vconf_value;
-       vconf_value = (char*)value;
        if (system_setting_vconf_set_value_string(VCONFKEY_IDLE_LOCK_BGSET, vconf_value)) {
                return SYSTEM_SETTINGS_ERROR_IO_ERROR;
        }
@@ -177,11 +634,11 @@ int system_setting_set_wallpaper_lock_screen(system_settings_key_e key, system_s
        return SYSTEM_SETTINGS_ERROR_NONE;
 }
 
-int system_setting_set_font_size(system_settings_key_e key, system_setting_data_type_e data_type, voidvalue)
+int system_setting_set_font_size(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
 {
-       printf(" real system_setting_set_font_size \n");
-       intvconf_value;
-       vconf_value = (int*)value;
+       SETTING_TRACE_BEGIN;
+       int *vconf_value;
+       vconf_value = (int *)value;
 
        if (*vconf_value < 0 || *vconf_value > SYSTEM_SETTINGS_FONT_SIZE_GIANT) {
                return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
@@ -190,326 +647,1464 @@ int system_setting_set_font_size(system_settings_key_e key, system_setting_data_
        if (system_setting_vconf_set_value_int(VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_SIZE, *vconf_value)) {
                return SYSTEM_SETTINGS_ERROR_IO_ERROR;
        }
-       font_size_set();
+       __font_size_set();
+       SETTING_TRACE_END;
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+/**
+ * [internal API]
+ */
+void *font_conf_doc_parse(char *doc_name, char *font_name)
+{
+       xmlDocPtr doc = NULL;
+       xmlNodePtr cur = NULL;
+       xmlNodePtr cur2 = NULL;
+       xmlNodePtr cur3 = NULL;
+       xmlChar *key = NULL;
 
-       printf(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>. system_setting_set_font_size called \n");
+       doc = xmlParseFile(doc_name);
 
-       return SYSTEM_SETTINGS_ERROR_NONE;
+       cur = xmlDocGetRootElement(doc);
+
+       if (cur == NULL) {
+               xmlFreeDoc(doc);
+               doc = NULL;
+               return NULL;
+       }
+
+       if (xmlStrcmp(cur->name, (const xmlChar *)"fontconfig")) {
+               xmlFreeDoc(doc);
+               doc = NULL;
+               return NULL;
+       }
+
+       cur = cur->xmlChildrenNode;
+
+       Eina_Bool is_changed = EINA_FALSE;
+       while (cur != NULL) {
+               if ((!xmlStrcmp(cur->name, (const xmlChar *)"match"))) {
+                       cur2 = cur->xmlChildrenNode;
+                       while (cur2 != NULL) {
+                               if ((!xmlStrcmp(cur2->name, (const xmlChar *)"edit"))) {
+                                       xmlChar *name = xmlGetProp(cur2, (const xmlChar *)"name");
+                                       /* if name is not 'family', break */
+                                       if (xmlStrcmp(name, (const xmlChar *)"family")) {
+                                               xmlFree(name);
+                                               name = NULL;
+                                               break;
+                                       }
+                                       xmlFree(name);
+                                       name = NULL;
+
+                                       cur3 = cur2->xmlChildrenNode;
+                                       while (cur3 != NULL) {
+                                               if ((!xmlStrcmp(cur3->name, (const xmlChar *)"string"))) {
+                                                       xmlNodeSetContent(cur3->xmlChildrenNode, (const xmlChar *)font_name);
+                                                       key = xmlNodeListGetString(doc, cur3->xmlChildrenNode, 1);
+                                                       xmlFree(key);
+                                                       key = NULL;
+                                                       is_changed = EINA_TRUE;
+                                               }
+                                               cur3 = cur3->next;
+                                       }
+                               }
+                               cur2 = cur2->next;
+                       }
+               } else if ((!xmlStrcmp(cur->name, (const xmlChar *)"alias"))) {
+                       cur2 = cur->xmlChildrenNode;
+                       while (cur2 != NULL) {
+                               if ((!xmlStrcmp(cur2->name, (const xmlChar *)"family"))) {
+                                       xmlNodeSetContent(cur2->xmlChildrenNode, (const xmlChar *)font_name);
+                                       key = xmlNodeListGetString(doc, cur2->xmlChildrenNode, 1);
+                                       xmlFree(key);
+                                       key = NULL;
+                                       is_changed = EINA_TRUE;
+                               } else if ((!xmlStrcmp(cur2->name, (const xmlChar *)"prefer"))) {
+                                       cur3 = cur2->xmlChildrenNode;
+                                       while (cur3 != NULL) {
+                                               if ((!xmlStrcmp(cur3->name, (const xmlChar *)"family"))) {
+                                                       xmlNodeSetContent(cur3->xmlChildrenNode, (const xmlChar *)font_name);
+                                                       key = xmlNodeListGetString(doc, cur3->xmlChildrenNode, 1);
+                                                       xmlFree(key);
+                                                       key = NULL;
+                                                       is_changed = EINA_TRUE;
+                                                       cur3 = cur3->next;
+                                                       return doc;
+                                               }
+                                               cur3 = cur3->next;
+                                       }
+                               }
+                               cur2 = cur2->next;
+                       }
+               }
+               cur = cur->next;
+       }
+
+       if (is_changed) {
+               return doc;
+       } else {
+               xmlFreeDoc(doc);
+               doc = NULL;
+               return NULL;
+       }
 }
 
-int system_setting_set_font_type(system_settings_key_e key, system_setting_data_type_e data_type, voidvalue)
+int system_setting_set_font_type(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
 {
-       printf(" real system_setting_set_font_type \n");
-       char* font_name = NULL;
-       font_name = (char*)value;
+       SETTING_TRACE_BEGIN;
+       char *font_name = NULL;
+       font_name = (char *)value;
+
+       /* get current font list */
+       int is_found = __is_available_font(font_name);
+
+       if (is_found) {
+               SETTING_TRACE("found font : %s ", font_name);
+       } else {
+               SETTING_TRACE(" NOT found font : %s ", font_name);
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+
+       bool bsave = font_config_set(font_name);
+
+       if (!bsave) {
+               SETTING_TRACE(" font type save error by font_config_set() ");
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       } else {
+               SETTING_TRACE(" save OK - font_config_set() ");
+       }
+
+       xmlDocPtr doc = (xmlDocPtr)font_conf_doc_parse(SETTING_FONT_CONF_FILE, font_name);
+       if (doc != NULL) {
+               xmlSaveFormatFile(SETTING_FONT_CONF_FILE, doc, 0);
+               xmlFreeDoc(doc);
+               doc = NULL;
+       }
 
-       printf(">>>>>>>>>>>>> font name = %s \n", font_name);
-       font_config_set(font_name);
        font_config_set_notification();
 
-       charvconf_value;
-       vconf_value = (char*)value;
+       char *vconf_value;
+       vconf_value = (char *)value;
        if (system_setting_vconf_set_value_string(VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_NAME, vconf_value)) {
                return SYSTEM_SETTINGS_ERROR_IO_ERROR;
        }
        return SYSTEM_SETTINGS_ERROR_NONE;
 }
 
-int system_setting_set_motion_activation(system_settings_key_e key, system_setting_data_type_e data_type, voidvalue)
+int system_setting_set_motion_activation(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
 {
-       printf(" mock --> real system_setting_set_motion_activation \n");
-
-       bool* vconf_value;
-       vconf_value = (bool*)value;
+       SETTING_TRACE_BEGIN;
+       bool *vconf_value;
+       vconf_value = (bool *)value;
        if (system_setting_vconf_set_value_bool(VCONFKEY_SETAPPL_MOTION_ACTIVATION, *vconf_value)) {
                return SYSTEM_SETTINGS_ERROR_IO_ERROR;
        }
        return SYSTEM_SETTINGS_ERROR_NONE;
 }
 
-/////////////////////////////////////////////////////////////////////////////////////////////////
-//
+int system_setting_set_usb_debugging_option(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+{
+       SETTING_TRACE_BEGIN;
+       bool *vconf_value;
+       vconf_value = (bool *)value;
+       if (system_setting_vconf_set_value_bool(VCONFKEY_SETAPPL_USB_DEBUG_MODE_BOOL, *vconf_value)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+       return SYSTEM_SETTINGS_ERROR_NONE;
+
+}
+
+int system_setting_set_3g_data_network(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+{
+       SETTING_TRACE_BEGIN;
+       bool *vconf_value;
+       vconf_value = (bool *)value;
+       if (system_setting_vconf_set_value_bool(VCONFKEY_3G_ENABLE, *vconf_value)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+/*
+       "IDS_COM_POP_SHORT"             0.5
+       "IDS_ST_BODY_MEDIUM"    1.0
+       "IDS_COM_POP_LONG"              1.5
+*/
+int system_setting_set_tap_and_hold_delay(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+{
+       int *vconf_value;
+       vconf_value = (int *)value;
+
+       char *result = "IDS_ST_BODY_MEDIUM";            /* default as 'medium' */
+       if (*vconf_value == SYSTEM_SETTINGS_TAP_AND_HOLD_DELAY_SHORT) {
+               result = "IDS_COM_POP_SHORT";
+       } else if (*vconf_value == SYSTEM_SETTINGS_TAP_AND_HOLD_DELAY_MEDIUM) {
+               result = "IDS_ST_BODY_MEDIUM";
+       } else if (*vconf_value == SYSTEM_SETTINGS_TAP_AND_HOLD_DELAY_LONG) {
+               result = "IDS_COM_POP_LONG";
+       } else {
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+       }
+
+       if (system_setting_vconf_set_value_string(VCONFKEY_SETAPPL_ACCESSIBILITY_TAP_HOLD_DELAY_STR, result)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+static int category_func(const char *name, void *user_data)
+{
+       SETTING_TRACE_BEGIN;
+       static char *category = "lock-screen";
+       if (name && !strcmp(name, category)) {
+               SETTING_TRACE(" SAME ");
+               return -1;
+       } else {
+               SETTING_TRACE(" DIFFERENT -- %s, category -- %s ", name, category);
+               return 0;
+       }
+
+       return 0;
+}
+
+/**
+ *
+ * set 'swipe type' if current lockscreen app is 'com.samsung.lockscreen'
+ *
+ */
+int system_setting_set_lockscreen_app(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+{
+       char *vconf_value;
+       vconf_value = (char *)value;            /* ex) com.samsung.lockscreen */
+
+       int r = 0;
+       pkgmgrinfo_appinfo_h handle;
+       char *apptype = NULL;
+       r = pkgmgrinfo_appinfo_get_appinfo(vconf_value, &handle);
+       if (r != PMINFO_R_OK) {
+               SETTING_TRACE("*** pkginfo failed ");
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+       } else {
+               SETTING_TRACE("%x", handle);
+       }
+
+       int ret = pkgmgrinfo_appinfo_foreach_category(handle, category_func, (void *)"lock-screen");
+       if (ret != PMINFO_R_OK) {
+               pkgmgrinfo_appinfo_destroy_appinfo(handle);
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+       }
+
+       pkgmgrinfo_appinfo_destroy_appinfo(handle);
+       /*----------------------------------------------------------------------------------- */
+       int locktype = -1;
+       if (system_setting_vconf_get_value_int(VCONFKEY_SETAPPL_SCREEN_LOCK_TYPE_INT, &locktype)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+
+       if (locktype == SETTING_SCREEN_LOCK_TYPE_PASSWORD)
+               return SYSTEM_SETTINGS_ERROR_LOCKSCREEN_APP_PASSWORD_MODE;
+
+       if (system_setting_vconf_set_value_string(VCONFKEY_SETAPPL_3RD_LOCK_PKG_NAME_STR, vconf_value)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+
+       if (vconf_value && strcmp(vconf_value, "com.samsung.lockscreen") == 0) {
+               if (system_setting_vconf_set_value_int(VCONFKEY_SETAPPL_SCREEN_LOCK_TYPE_INT, SETTING_SCREEN_LOCK_TYPE_SWIPE)) {
+                       return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+               }
+       }
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+/*/////////////////////////////////////////////////////////////////////////////////////////////// */
+/* */
 
 int system_setting_set_changed_callback_incoming_call_ringtone(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
 {
-       return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_CALL_RINGTONE_PATH_STR, SYSTEM_SETTINGS_KEY_INCOMING_CALL_RINGTONE, 0);
+       SETTING_TRACE_BEGIN;
+       return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_CALL_RINGTONE_PATH_STR, SYSTEM_SETTINGS_KEY_INCOMING_CALL_RINGTONE, 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, 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, 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, 0);
+}
+
 int system_setting_set_changed_callback_wallpaper_home_screen(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
 {
-       return system_setting_vconf_set_changed_cb(VCONFKEY_BGSET, SYSTEM_SETTINGS_KEY_WALLPAPER_HOME_SCREEN, 0);
+       SETTING_TRACE_BEGIN;
+       return system_setting_vconf_set_changed_cb(VCONFKEY_BGSET, SYSTEM_SETTINGS_KEY_WALLPAPER_HOME_SCREEN, 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, 0);
 }
 
 int system_setting_set_changed_callback_wallpaper_lock_screen(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
 {
-       return system_setting_vconf_set_changed_cb(VCONFKEY_IDLE_LOCK_BGSET,SYSTEM_SETTINGS_KEY_WALLPAPER_LOCK_SCREEN, 0);
+       SETTING_TRACE_BEGIN;
+       return SYSTEM_SETTINGS_ERROR_NOT_SUPPORTED;
 }
 
 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, 0);
 }
 
 int system_setting_set_changed_callback_font_size(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
 {
-       return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_SIZE,SYSTEM_SETTINGS_KEY_FONT_SIZE, 1);
+       SETTING_TRACE_BEGIN;
+       return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_SIZE,SYSTEM_SETTINGS_KEY_FONT_SIZE, 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, 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)
+int system_setting_set_changed_callback_usb_debugging_option(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
 {
-       return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_NAME,SYSTEM_SETTINGS_KEY_FONT_TYPE, 2);
+       SETTING_TRACE_BEGIN;
+       return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_USB_DEBUG_MODE_BOOL,SYSTEM_SETTINGS_KEY_USB_DEBUGGING_ENABLED, 1, user_data);
 }
 
-int system_setting_unset_changed_callback_font_type(system_settings_key_e key)
+int system_setting_unset_changed_callback_usb_debugging_option(system_settings_key_e key)
 {
-       return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_NAME,2);
+       SETTING_TRACE_BEGIN;
+       return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_USB_DEBUG_MODE_BOOL, 1);
 }
 
-// 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)
+int system_setting_set_changed_callback_3g_data_network(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
 {
-       printf("system_setting_set_changed_callback_motion_activation \n");
-       return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_MOTION_ACTIVATION, SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION, 3);
+       SETTING_TRACE_BEGIN;
+       return system_setting_vconf_set_changed_cb(VCONFKEY_3G_ENABLE,SYSTEM_SETTINGS_KEY_3G_DATA_NETWORK_ENABLED, 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, 1);
+}
+
+int system_setting_set_changed_callback_tap_and_hold_delay(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_TAP_HOLD_DELAY_STR, SYSTEM_SETTINGS_KEY_TAP_AND_HOLD_DELAY, 1,user_data);
+}
+
+int system_setting_unset_changed_callback_tap_and_hold_delay(system_settings_key_e key)
+{
+       SETTING_TRACE_BEGIN;
+       return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_ACCESSIBILITY_TAP_HOLD_DELAY_STR, 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_TAP_AND_HOLD_DELAY, 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, 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, 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,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, 3, user_data);
 }
 
 int system_setting_unset_changed_callback_motion_activation(system_settings_key_e key)
 {
-       printf("system_setting_unset_changed_callback_motion_activation \n");
+       SETTING_TRACE_BEGIN;
        return system_setting_vconf_unset_changed_cb(VCONFKEY_SETAPPL_MOTION_ACTIVATION, 3);
 }
 
-static char* _get_cur_font()
-{
-    printf("get current font \n");
-
-    xmlDocPtr doc = NULL;
-    xmlNodePtr cur = NULL;
-    xmlNodePtr cur2 = NULL;
-    xmlNodePtr cur3 = NULL;
-    xmlChar *key = NULL;
-
-    char *font_name = NULL;
-
-    doc = xmlParseFile(SETTING_FONT_CONF_FILE);
-
-    cur = xmlDocGetRootElement(doc);
-
-    if(cur == NULL) {
-        printf("empty document");
-        xmlFreeDoc(doc);
-        doc = NULL;
-        return NULL;
-    }
-
-    if(xmlStrcmp(cur->name, (const xmlChar *)"fontconfig")) {
-        printf("document of the wrong type, root node != fontconfig");
-        xmlFreeDoc(doc);
-        doc = NULL;
-        return NULL;
-    }
-
-    cur = cur->xmlChildrenNode;
-
-    while(cur != NULL)
-    {
-        if((!xmlStrcmp(cur->name, (const xmlChar *)"match")))
-        {
-            cur2 = cur->xmlChildrenNode;
-            while(cur2 != NULL)
-            {
-                if((!xmlStrcmp(cur2->name, (const xmlChar *)"edit")))
-                {
-                    cur3 = cur2->xmlChildrenNode;
-                    while(cur3 != NULL)
-                    {
-                        if((!xmlStrcmp(cur3->name, (const xmlChar *)"string")))
-                        {
-                            key = xmlNodeListGetString(doc, cur3->xmlChildrenNode, 1);
-                            //printf("string is: %s", key);
-
-                            font_name = g_strdup((char *)key);
-                            xmlFree(key);
-                            key = NULL;
-                            xmlFreeDoc(doc);
-                            doc = NULL;
-                            return font_name;
-                        }
-                       cur3 = cur3->next;
-                    }
-                }
-                cur2 = cur2->next;
-            }
-        }
-        cur = cur->next;
-    }
-
-    xmlFreeDoc(doc);
-    doc = NULL;
-    return NULL;
+static char *_get_cur_font()
+{
+       SETTING_TRACE_BEGIN;
+       xmlDocPtr doc = NULL;
+       xmlNodePtr cur = NULL;
+       xmlNodePtr cur2 = NULL;
+       xmlNodePtr cur3 = NULL;
+       xmlChar *key = NULL;
+
+       char *font_name = NULL;
+
+       doc = xmlParseFile(SETTING_FONT_CONF_FILE);
+
+       cur = xmlDocGetRootElement(doc);
+
+       if (cur == NULL) {
+               xmlFreeDoc(doc);
+               doc = NULL;
+               return NULL;
+       }
+
+       if (xmlStrcmp(cur->name, (const xmlChar *)"fontconfig")) {
+               xmlFreeDoc(doc);
+               doc = NULL;
+               return NULL;
+       }
+
+       cur = cur->xmlChildrenNode;
+
+       while (cur != NULL) {
+               if ((!xmlStrcmp(cur->name, (const xmlChar *)"match"))) {
+                       cur2 = cur->xmlChildrenNode;
+                       while (cur2 != NULL) {
+                               if ((!xmlStrcmp(cur2->name, (const xmlChar *)"edit"))) {
+                                       cur3 = cur2->xmlChildrenNode;
+                                       while (cur3 != NULL) {
+                                               if ((!xmlStrcmp(cur3->name, (const xmlChar *)"string"))) {
+                                                       key = xmlNodeListGetString(doc, cur3->xmlChildrenNode, 1);
+
+                                                       font_name = g_strdup((char *)key);
+                                                       xmlFree(key);
+                                                       key = NULL;
+                                                       xmlFreeDoc(doc);
+                                                       doc = NULL;
+                                                       return font_name;
+                                               }
+                                               cur3 = cur3->next;
+                                       }
+                               }
+                               cur2 = cur2->next;
+                       }
+               }
+               cur = cur->next;
+       }
+
+       xmlFreeDoc(doc);
+       doc = NULL;
+       return NULL;
 }
 
 static void font_config_set_notification()
 {
-    /* notification */
+       SETTING_TRACE_BEGIN;
+       /* notification */
        Ecore_X_Window ecore_win = ecore_x_window_root_first_get();
-       printf("FONT CHANGE NOTIFICATION >>>>>>>>>> : %d  \n", (unsigned int)ecore_win);
        Ecore_X_Atom atom = ecore_x_atom_get("FONT_TYPE_change");
-       ecore_x_window_prop_string_set(ecore_win, atom, "slp");
-}
-
-static void font_config_set(char *font_name)
-{
-    Eina_List *text_classes = NULL;
-    Elm_Text_Class *etc = NULL;
-    const Eina_List *l = NULL;
-    Eina_List *fo_list = NULL;
-    Elm_Font_Overlay *efo = NULL;
-    int font_size = __font_size_get();
-    int size = 0;
-
-    text_classes = elm_config_text_classes_list_get();
-
-    fo_list = elm_config_font_overlay_list_get();
-
-    Eina_List *ll = NULL;
-    Eina_List *l_next = NULL;
-
-    Eina_Bool slp_medium_exist = EINA_FALSE;
-    Eina_Bool slp_roman_exist = EINA_FALSE;
-    Eina_Bool slp_bold_exist = EINA_FALSE;
-    Eina_Bool slp_regular_exist = EINA_FALSE;
-
-    EINA_LIST_FOREACH_SAFE(fo_list, ll, l_next, efo)
-    {
-        if (!strcmp(efo->text_class, "slp_medium")) {
-            elm_config_font_overlay_set(efo->text_class, (const char*)font_name, efo->size);
-            slp_medium_exist = EINA_TRUE;
-        } else if (!strcmp(efo->text_class, "slp_roman")) {
-            elm_config_font_overlay_set(efo->text_class, (const char*)font_name, efo->size);
-            slp_roman_exist = EINA_TRUE;
-        } else if (!strcmp(efo->text_class, "slp_bold")) {
-            elm_config_font_overlay_set(efo->text_class, (const char*)font_name, efo->size);
-            slp_bold_exist = EINA_TRUE;
-        } else if (!strcmp(efo->text_class, "slp_regular")) {
-            elm_config_font_overlay_set(efo->text_class, (const char*)font_name, efo->size);
-            slp_regular_exist = EINA_TRUE;
-        }
-    }
-
-    /* if slp_XX do not exist, need to set them, font size is -100(100%) */
-    if (slp_medium_exist == EINA_FALSE) {
-        elm_config_font_overlay_set("slp_medium", (const char*)font_name,  MIDDLE_FONT_DPI);
-    }
-    if (slp_roman_exist == EINA_FALSE) {
-        elm_config_font_overlay_set("slp_roman", (const char*)font_name,  MIDDLE_FONT_DPI);
-    }
-    if (slp_bold_exist == EINA_FALSE) {
-        elm_config_font_overlay_set("slp_bold", (const char*)font_name,  MIDDLE_FONT_DPI);
-    }
-    if (slp_regular_exist == EINA_FALSE) {
-        elm_config_font_overlay_set("slp_regular", (const char*)font_name,  MIDDLE_FONT_DPI);
-    }
-
-    EINA_LIST_FOREACH(text_classes, l, etc)
-    {
-        ll = NULL;
-
-        size = font_size;
-        EINA_LIST_FOREACH(fo_list, ll, efo)
-        {
-            if (!strcmp(etc->name, efo->text_class)) {
-                size = efo->size;
-            }
-        }
-        elm_config_font_overlay_set(etc->name, (const char*)font_name, size);
-    }
-
-    elm_config_font_overlay_apply();
-    elm_config_all_flush();
-    elm_config_save();
-    elm_config_text_classes_list_free(text_classes);
-    text_classes = NULL;
-}
-
-static void font_size_set()
-{
-    Eina_List *text_classes = NULL;
-    Elm_Text_Class *etc = NULL;
-    const Eina_List *l = NULL;
-    int font_size = __font_size_get();
-    char *font_name = _get_cur_font();
-
-    if (font_size == -1) {
-        //SETTING_TRACE_DEBUG("failed to call font_size_get");
-        return;
-    } else {
-               printf(">> font name = %s, font size = %d \n", font_name, font_size);
-       }
-
-    text_classes = elm_config_text_classes_list_get();
-
-    EINA_LIST_FOREACH(text_classes, l, etc)
-    {
-        elm_config_font_overlay_set(etc->name, font_name, font_size);
-    }
-
-       elm_config_font_overlay_apply();
-    elm_config_all_flush();
-    elm_config_save();
-    elm_config_text_classes_list_free(text_classes);
-    text_classes = NULL;
-    //G_FREE(font_name);
-    g_free(font_name);
-       printf(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>. font_size_set called \n");
+       ecore_x_window_prop_string_set(ecore_win, atom, "tizen");
+}
+
+int __is_available_font(char *font_name)
+{
+       SETTING_TRACE_BEGIN;
+       FcObjectSet *os = NULL;
+       FcFontSet *fs = NULL;
+       FcPattern *pat = NULL;
+       Eina_List *list = NULL;
+       FcConfig *font_config = NULL;
+
+       int ret = 0;
+
+       if (font_name == NULL)
+               return -1;
+
+       font_config = FcInitLoadConfigAndFonts();
+
+       /*setting_retvm_if(font_config == NULL, NULL, "Failed: FcInitLoadConfigAndFonts"); */
+
+       char *locale = setlocale(0, NULL);
+
+       pat = FcPatternCreate();
+
+       os = FcObjectSetBuild(FC_FAMILY, FC_FILE, FC_FAMILYLANG, (char *) 0);
+
+       if (os) {
+               fs = FcFontList(font_config, pat, os);
+               FcObjectSetDestroy(os);
+               os = NULL;
+       }
+
+       if (pat) {
+               FcPatternDestroy(pat);
+               pat = NULL;
+       }
+
+       if (fs) {
+               int j;
+               SETTING_TRACE("fs->nfont = %d", fs->nfont);
+
+               for (j = 0; j < fs->nfont; j++) {
+                       FcChar8 *family = NULL;
+                       FcChar8 *file = NULL;
+
+                       if (FcPatternGetString(fs->fonts[j], FC_FILE, 0, &file) == FcResultMatch) {
+                               int preload_path_len = strlen(SETTING_FONT_PRELOAD_FONT_PATH);
+                               int download_path_len = strlen(SETTING_FONT_DOWNLOADED_FONT_PATH);
+
+                               if (file && (!strncmp((const char *)file, SETTING_FONT_PRELOAD_FONT_PATH, preload_path_len)
+                                                        || !strncmp((const char *)file, SETTING_FONT_DOWNLOADED_FONT_PATH, download_path_len))) {
+                                       char *family_result = NULL;
+                                       FcChar8 *lang = NULL;
+                                       int id = 0;
+                                       if (FcPatternGetString(fs->fonts[j], FC_FAMILY, id, &family) != FcResultMatch) {
+                                               break;
+                                       }
+                                       if (FcPatternGetString(fs->fonts[j], FC_FAMILYLANG, id, &lang) != FcResultMatch) {
+                                               break;
+                                       }
+                                       family_result = (char *)family;
+
+                                       /* Find proper family name for current locale. */
+                                       while (locale && family && lang) {
+                                               if (!strncmp(locale, (char *)lang, strlen((char *)lang))) {
+                                                       family_result = (char *)family;
+                                                       break;
+                                               }
+
+                                               /* I will set english as default family language. */
+                                               /* If there is no proper family language for current locale, */
+                                               /* we have to show the english family name. */
+                                               if (!strcmp(lang, "en")) {
+                                                       family_result = (char *)family;
+                                               }
+                                               id++;
+                                               if (FcPatternGetString(fs->fonts[j], FC_FAMILY, id, &family) != FcResultMatch) {
+                                                       break;
+                                               }
+                                               if (FcPatternGetString(fs->fonts[j], FC_FAMILYLANG, id, &lang) != FcResultMatch) {
+                                                       break;
+                                               }
+                                       }
+
+                                       if (family_result) {
+                                               SETTING_TRACE("-------- FONT - family_result = %s", (char *)family_result);
+                                               if (strcmp(family_result, font_name) == 0) {
+                                                       ret = 1;
+                                                       break;
+                                               }
+                                       }
+                               }
+                       }
+               }
+               FcFontSetDestroy(fs);
+               fs = NULL;
+       }
+       FcConfigDestroy(font_config);
+       font_config = NULL;
+       return ret;
+}
+
+
+static char *_get_default_font()
+{
+       SETTING_TRACE_BEGIN;
+       xmlDocPtr doc = NULL;
+       xmlNodePtr cur = NULL;
+       xmlNodePtr cur2 = NULL;
+       xmlNodePtr cur3 = NULL;
+       xmlChar *key = NULL;
+       struct _xmlAttr *properties = NULL;
+       char *default_font_name = NULL;
+
+       doc = xmlParseFile(SETTING_DEFAULT_FONT_CONF_FILE);
+
+       cur = xmlDocGetRootElement(doc);
+
+       if (cur == NULL) {
+               xmlFreeDoc(doc);
+               doc = NULL;
+               return NULL;
+       }
+
+       if (xmlStrcmp(cur->name, (const xmlChar *)"fontconfig")) {
+               xmlFreeDoc(doc);
+               doc = NULL;
+               return NULL;
+       }
+
+       cur = cur->xmlChildrenNode;
+
+       while (cur != NULL) {
+               if ((!xmlStrcmp(cur->name, (const xmlChar *)"match"))) {
+                       cur2 = cur->xmlChildrenNode;
+                       while (cur2 != NULL) {
+                               if ((!xmlStrcmp(cur2->name, (const xmlChar *)"edit"))) {
+                                       properties = cur2->properties;
+                                       /*find the "name" property*/
+                                       while (NULL != properties) {
+                                               if (!xmlStrcmp(properties->name, (const xmlChar *)"name")) {
+                                                       break;
+                                               }
+                                               properties = properties->next;
+                                       }
+
+                                       /*If the value of "name" property is "family", then get the child node string,
+                                       it shall be the default font type*/
+                                       if (NULL != properties &&!xmlStrcmp(properties->children->content, (const xmlChar *)"family")) {
+                                               cur3 = cur2->xmlChildrenNode;
+                                               while (cur3 != NULL) {
+                                                       if ((!xmlStrcmp(cur3->name, (const xmlChar *)"string"))) {
+                                                               key = xmlNodeListGetString(doc, cur3->xmlChildrenNode, 1);
+                                                               default_font_name = g_strdup((char *)key);
+                                                               xmlFree(key);
+                                                               key = NULL;
+                                                               xmlFreeDoc(doc);
+                                                               doc = NULL;
+                                                               return default_font_name;
+                                                       }
+                                                       cur3 = cur3->next;
+                                               }
+                                       }
+                               }
+                               cur2 = cur2->next;
+                       }
+               }
+               cur = cur->next;
+       }
+
+       xmlFreeDoc(doc);
+       doc = NULL;
+       return NULL;
+}
+
+static bool font_config_set(char *font_name)
+{
+       SETTING_TRACE_BEGIN;
+       Eina_List *text_classes = NULL;
+       Elm_Text_Class *etc = NULL;
+       const Eina_List *l = NULL;
+       Eina_List *fo_list = NULL;
+       Elm_Font_Overlay *efo = NULL;
+
+       int font_size = __font_size_get();
+       int size = 0;
+
+       text_classes = elm_config_text_classes_list_get();
+
+       fo_list = (Eina_List *)elm_config_font_overlay_list_get();
+
+       Eina_List *ll = NULL;
+       Eina_List *l_next = NULL;
+
+       Eina_Bool slp_medium_exist = EINA_FALSE;
+       Eina_Bool slp_roman_exist = EINA_FALSE;
+       Eina_Bool slp_bold_exist = EINA_FALSE;
+       Eina_Bool slp_regular_exist = EINA_FALSE;
+
+       /* Tizen */
+       Eina_Bool tizen_exist = EINA_FALSE;
+
+       EINA_LIST_FOREACH_SAFE(fo_list, ll, l_next, efo) {
+               if (!strcmp(efo->text_class, "tizen_medium")) {
+                       elm_config_font_overlay_set(efo->text_class, (const char *)font_name, efo->size);
+                       slp_medium_exist = EINA_TRUE;
+               } else if (!strcmp(efo->text_class, "tizen_roman")) {
+                       elm_config_font_overlay_set(efo->text_class, (const char *)font_name, efo->size);
+                       slp_roman_exist = EINA_TRUE;
+               } else if (!strcmp(efo->text_class, "tizen_bold")) {
+                       elm_config_font_overlay_set(efo->text_class, (const char *)font_name, efo->size);
+                       slp_bold_exist = EINA_TRUE;
+               } else if (!strcmp(efo->text_class, "tizen_regular")) {
+                       elm_config_font_overlay_set(efo->text_class, (const char *)font_name, efo->size);
+                       slp_regular_exist = EINA_TRUE;
+               }
+
+               /* Tizen */
+               if (!strcmp(efo->text_class, "tizen")) {
+                       elm_config_font_overlay_set(efo->text_class, (const char *)font_name, efo->size);
+                       tizen_exist = EINA_TRUE;
+               }
+
+       }
+
+       /* if slp_XX do not exist, need to set them, font size is -100(100%) */
+       if (slp_medium_exist == EINA_FALSE) {
+               elm_config_font_overlay_set("tizen_medium", (const char *)font_name,  MIDDLE_FONT_DPI);
+       }
+       if (slp_roman_exist == EINA_FALSE) {
+               elm_config_font_overlay_set("tizen_roman", (const char *)font_name,  MIDDLE_FONT_DPI);
+       }
+       if (slp_bold_exist == EINA_FALSE) {
+               elm_config_font_overlay_set("tizen_bold", (const char *)font_name,  MIDDLE_FONT_DPI);
+       }
+       if (slp_regular_exist == EINA_FALSE) {
+               elm_config_font_overlay_set("tizen_regular", (const char *)font_name,  MIDDLE_FONT_DPI);
+       }
+
+       /* Tizen */
+       if (tizen_exist == EINA_FALSE) {
+               elm_config_font_overlay_set("tizen", (const char *)font_name,  MIDDLE_FONT_DPI);
+       }
+
+       elm_config_font_overlay_set("tizen", (const char *)font_name,  MIDDLE_FONT_DPI);
+
+       /* Tizen */
+       elm_config_font_overlay_set("tizen", (const char *)font_name,  MIDDLE_FONT_DPI);
+
+       EINA_LIST_FOREACH(text_classes, l, etc) {
+               ll = NULL;
+
+               size = font_size;
+               EINA_LIST_FOREACH(fo_list, ll, efo) {
+                       if (!strcmp(etc->name, efo->text_class)) {
+                               size = efo->size;
+                       }
+               }
+               elm_config_font_overlay_set(etc->name, (const char *)font_name, size);
+       }
+       elm_config_text_classes_list_free(text_classes);
+       text_classes = NULL;
+
+       /* add new function */
+       ea_theme_system_font_set(font_name, font_size);
+       ea_theme_system_fonts_apply();
+
+       return 1;
+}
+
+static void __font_size_set()
+{
+       Eina_List *text_classes = NULL;
+       Elm_Text_Class *etc = NULL;
+       const Eina_List *l = NULL;
+       int font_size = __font_size_get();
+       char *font_name = _get_cur_font();
+
+       if (font_size == -1) {
+               return;
+       }
+
+       text_classes = elm_config_text_classes_list_get();
+
+       EINA_LIST_FOREACH(text_classes, l, etc) {
+               elm_config_font_overlay_set(etc->name, font_name, font_size);
+       }
+
+       elm_config_text_classes_list_free(text_classes);
+
+       ea_theme_system_font_set(font_name, font_size);
+       ea_theme_system_fonts_apply();
+
+       text_classes = NULL;
+       g_free(font_name);
 }
 
 static int __font_size_get()
 {
-    int font_size = -1;
-    int err = -1;
+       SETTING_TRACE_BEGIN;
+       int font_size = -1;
+       int err = -1;
 
        int vconf_value = -1;
        if (system_setting_vconf_get_value_int(VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_SIZE, &vconf_value)) {
                return -1;
        }
 
-    switch(vconf_value) {
-    case SYSTEM_SETTINGS_FONT_SIZE_SMALL:
-        font_size = SMALL_FONT_DPI;
-        break;
-    case SYSTEM_SETTINGS_FONT_SIZE_NORMAL:
-        font_size = MIDDLE_FONT_DPI;
-        break;
-    case SYSTEM_SETTINGS_FONT_SIZE_LARGE:
-        font_size = LARGE_FONT_DPI;
-        break;
-    case SYSTEM_SETTINGS_FONT_SIZE_HUGE:
-        font_size = HUGE_FONT_DPI;
-        break;
-    case SYSTEM_SETTINGS_FONT_SIZE_GIANT:
-        font_size = GIANT_FONT_DPI;
-        break;
-    default:
-        font_size = MIDDLE_FONT_DPI;
-        break;
-    }
-    return font_size;
+       switch (vconf_value) {
+       case SYSTEM_SETTINGS_FONT_SIZE_SMALL:
+               font_size = SMALL_FONT_DPI;
+               break;
+       case SYSTEM_SETTINGS_FONT_SIZE_NORMAL:
+               font_size = MIDDLE_FONT_DPI;
+               break;
+       case SYSTEM_SETTINGS_FONT_SIZE_LARGE:
+               font_size = LARGE_FONT_DPI;
+               break;
+       case SYSTEM_SETTINGS_FONT_SIZE_HUGE:
+               font_size = HUGE_FONT_DPI;
+               break;
+       case SYSTEM_SETTINGS_FONT_SIZE_GIANT:
+               font_size = GIANT_FONT_DPI;
+               break;
+       default:
+               font_size = MIDDLE_FONT_DPI;
+               break;
+       }
+       return font_size;
+}
+
+/*//////////////////////////////////////////////////////////////////////////////////////// */
+/*--------------------------------------- */
+int system_setting_get_locale_country(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+{
+       SETTING_TRACE_BEGIN;
+       char *vconf_value = NULL;
+       if (system_setting_vconf_get_value_string(VCONFKEY_REGIONFORMAT, &vconf_value)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+
+       /* parsing validation */
+       /* en_US.UTF-8 */
+       char arr[20];
+       snprintf(arr, 20, vconf_value);
+       arr[5] = '\0';
+       *value = strdup(arr);
+       free(vconf_value);
+       vconf_value = NULL;
+
+       return SYSTEM_SETTINGS_ERROR_NONE;
 }
+
+int system_setting_set_locale_country(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+{
+       SETTING_TRACE_BEGIN;
+       char *vconf_value = NULL;
+       vconf_value = (char *)value;
+
+       char *ext = "UTF-8";
+
+       char arr[20];
+       snprintf(arr, 20, "%s.%s",vconf_value, ext);
+
+       if (system_setting_vconf_set_value_string(VCONFKEY_REGIONFORMAT, arr)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+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, 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, 3);
+}
+
+
+/*--------------------------------------- */
+int system_setting_get_locale_language(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+{
+       SETTING_TRACE_BEGIN;
+       char *vconf_value = NULL;
+       if (system_setting_vconf_get_value_string(VCONFKEY_LANGSET, &vconf_value)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+
+       /* parsing validation */
+       /* en_US.UTF-8 */
+       char arr[20];
+       snprintf(arr, 20, vconf_value);
+       arr[5] = '\0';
+       *value = strdup(arr);
+       free(vconf_value);
+       vconf_value = NULL;
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+int system_setting_set_locale_language(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+{
+       char *vconf_value = NULL;
+       vconf_value = (char *)value;
+
+       char *ext = "UTF-8";
+
+       char arr[20];
+       snprintf(arr, 20, "%s.%s",vconf_value, ext);
+
+       if (system_setting_vconf_set_value_string(VCONFKEY_LANGSET, arr)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+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, 100, 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, 100);
+}
+
+/*--------------------------------------- */
+int system_setting_get_locale_timeformat_24hour(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+{
+       SETTING_TRACE_BEGIN;
+       int vconf_value;
+
+       if (system_setting_vconf_get_value_int(VCONFKEY_REGIONFORMAT_TIME1224, &vconf_value)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+
+       bool ret_value;
+       if (vconf_value == VCONFKEY_TIME_FORMAT_12)
+               ret_value = false;
+       else if (vconf_value == VCONFKEY_TIME_FORMAT_24)
+               ret_value = true;
+
+       *value = (void *)ret_value;
+
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+int system_setting_set_locale_timeformat_24hour(system_settings_key_e key, system_setting_data_type_e data_type, 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)) {
+                       return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+               }
+
+       } else {
+               if (system_setting_vconf_set_value_int(VCONFKEY_REGIONFORMAT_TIME1224, VCONFKEY_TIME_FORMAT_12)) {
+                       return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+               }
+
+       }
+
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+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, 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, 3);
+}
+
+int system_setting_get_locale_timezone(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+{
+       SETTING_TRACE_BEGIN;
+       char tzpath[256];
+       ssize_t len = readlink(SETTING_TZONE_SYMLINK_PATH, tzpath, sizeof(tzpath)-1);
+       if (len != -1) {
+               tzpath[len] = '\0';
+       } else {
+               SETTING_TRACE("parse error for SETTING_TZONE_SYMLINK_PATH");
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+
+       /* "/usr/share/zoneinfo/Asia/Seoul" */
+       SETTING_TRACE("tzpath : %s ", &tzpath[20]);
+       *value = strdup(&tzpath[20]);
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+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;
+}
+
+int system_setting_unset_changed_callback_locale_timezone_changed(system_settings_key_e key)
+{
+       SETTING_TRACE_BEGIN;
+       return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+}
+
+
+int system_setting_get_time_changed(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+{
+       SETTING_TRACE_BEGIN;
+       time_t cur_tick;
+       cur_tick = time(NULL);
+       *value = (void *)cur_tick;
+       /* struct tm * localtime = time (cur_tick); */
+       /* printf("%s\n", ctime(&cur_tick); */
+       return SYSTEM_SETTINGS_ERROR_NONE;
+
+}
+
+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, 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, 3);
+}
+
+
+
+/* SYSTEM_SETTINGS_KEY_SOUND_LOCK */
+int system_setting_get_sound_lock(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+{
+       SETTING_TRACE_BEGIN;
+       bool vconf_value;
+
+       if (system_setting_vconf_get_value_bool(VCONFKEY_SETAPPL_SOUND_LOCK_BOOL, &vconf_value)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+       *value = (void *)vconf_value;
+
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+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, 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, 3);
+}
+
+/**
+ * a = VCONFKEY_SETAPPL_SOUND_STATUS_BOOL b = VCONFKEY_SETAPPL_VIBRATION_STATUS_BOOL
+ *
+ * a == false, b == false --> silent mode
+ * a == true, b == false --> sound mode
+ * a == false, b == true --> vibration mode
+ */
+int system_setting_get_sound_silent_mode(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+{
+       bool sound_cond;
+       bool vib_cond;
+
+       bool vconf_value;
+       if (system_setting_vconf_get_value_bool(VCONFKEY_SETAPPL_SOUND_STATUS_BOOL, &sound_cond)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+
+       if (system_setting_vconf_get_value_bool(VCONFKEY_SETAPPL_VIBRATION_STATUS_BOOL, &vib_cond)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+
+       if (sound_cond == false && vib_cond == false) {
+               vconf_value = true;
+               *value = (void *)vconf_value;
+       } else {
+               vconf_value = false;
+               *value = (void *)vconf_value;
+       }
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+/**
+ * a = VCONFKEY_SETAPPL_SOUND_STATUS_BOOL 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, system_setting_data_type_e data_type, void *value)
+{
+       bool *vconf_value;
+
+       vconf_value = (bool *)value;
+
+       bool vconf_sound = false;
+       bool vconf_vib = false;
+
+       if (vconf_value) {
+               vconf_sound = false;
+               vconf_vib = false;
+       } else {
+               vconf_sound = true;
+               vconf_vib = false;
+       }
+
+       if (system_setting_vconf_set_value_bool(VCONFKEY_SETAPPL_SOUND_STATUS_BOOL, 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_IO_ERROR;
+       }
+
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+
+
+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, 3, user_data);
+}
+
+
+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, 3);
+}
+
+/* SYSTEM_SETTINGS_KEY_SOUND_TOUCH */
+int system_setting_get_sound_touch(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+{
+       SETTING_TRACE_BEGIN;
+       bool vconf_value;
+
+       if (system_setting_vconf_get_value_bool(VCONFKEY_SETAPPL_TOUCH_SOUNDS_BOOL, &vconf_value)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+       *value = (void *)vconf_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;
+       return system_setting_vconf_set_changed_cb(VCONFKEY_SETAPPL_TOUCH_SOUNDS_BOOL, SYSTEM_SETTINGS_KEY_SOUND_TOUCH, 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, 2);
+}
+
+int system_setting_get_auto_rotation_mode(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+{
+       bool vconf_value;
+
+       if (system_setting_vconf_get_value_bool(VCONFKEY_SETAPPL_AUTO_ROTATE_SCREEN_BOOL, &vconf_value)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+       *value = (void *)vconf_value;
+
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+int system_setting_set_auto_rotation_mode(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+{
+       bool *vconf_value;
+       vconf_value = (bool *)value;
+       if (system_setting_vconf_set_value_bool(VCONFKEY_SETAPPL_AUTO_ROTATE_SCREEN_BOOL, *vconf_value)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+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, 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, 2);
+}
+
+int system_setting_get_screen_backlight_time(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+{
+       SETTING_TRACE_BEGIN;
+       int vconf_value;
+
+       if (system_setting_vconf_get_value_int(VCONFKEY_SETAPPL_LCD_TIMEOUT_NORMAL, &vconf_value)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+       *value = (void *)vconf_value;
+
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+
+int system_setting_set_screen_backlight_time(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+{
+       SETTING_TRACE_BEGIN;
+       int *vconf_value;
+
+       vconf_value = (int *)value;
+
+       if (*vconf_value < 0 || *vconf_value > 600) {
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+       }
+
+
+       if (system_setting_vconf_set_value_int(VCONFKEY_SETAPPL_LCD_TIMEOUT_NORMAL, *vconf_value)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+       SETTING_TRACE_END;
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+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_DISPLAY_SCREEN_ROTATION_AUTO, 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, 2);
+}
+
+int system_setting_get_sound_notification(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+{
+       char *vconf_value = NULL;
+       if (system_setting_vconf_get_value_string(VCONFKEY_SETAPPL_NOTI_MSG_RINGTONE_PATH_STR, &vconf_value)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+
+       *value = vconf_value;
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+int system_setting_set_sound_notification(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+{
+       char *vconf_value = NULL;
+       vconf_value = (char *)value;
+
+       int is_load = _is_file_accessible(vconf_value);
+       if (is_load == 0) {
+               if (system_setting_vconf_set_value_string(VCONFKEY_SETAPPL_NOTI_MSG_RINGTONE_PATH_STR, vconf_value)) {
+                       return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+               }
+       } else {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+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_INCOMING_CALL_RINGTONE, 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, 0);
+}
+
+/* VCONFKEY_SETAPPL_NOTI_MSG_ALERT_REP_TYPE_INT */
+int system_setting_get_notification_repetition_period(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+{
+       SETTING_TRACE_BEGIN;
+       int vconf_value;
+
+       if (system_setting_vconf_get_value_int(VCONFKEY_SETAPPL_NOTI_MSG_ALERT_REP_TYPE_INT, &vconf_value)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+       *value = (void *)vconf_value;
+
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+
+int system_setting_set_notification_repetition_period(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+{
+       SETTING_TRACE_BEGIN;
+
+       if (value < 0) return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+
+       int *vconf_value;
+       vconf_value = (int *)value;
+
+       if (system_setting_vconf_set_value_int(VCONFKEY_SETAPPL_NOTI_MSG_ALERT_REP_TYPE_INT, *vconf_value)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+       SETTING_TRACE_END;
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+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_DISPLAY_SCREEN_ROTATION_AUTO, 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, 1);
+}
+
+int system_setting_get_device_name(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+{
+       char *vconf_value = NULL;
+       if (system_setting_vconf_get_value_string(VCONFKEY_SETAPPL_DEVICE_NAME_STR, &vconf_value)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+
+       *value = vconf_value;
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+int system_setting_set_device_name(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+{
+       char *vconf_value = NULL;
+       vconf_value = (char *)value;
+
+       if (system_setting_vconf_set_value_string(VCONFKEY_SETAPPL_DEVICE_NAME_STR, vconf_value)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+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, 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, 0);
+}
+
+/*---------------------------------------------- */
+int system_setting_get_network_flight_mode(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+{
+       SETTING_TRACE_BEGIN;
+       bool vconf_value;
+       if (system_setting_vconf_get_value_bool(VCONFKEY_TELEPHONY_FLIGHT_MODE, &vconf_value)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+       *value = (void *)vconf_value;
+
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+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, 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, 3);
+}
+
+int system_setting_get_network_wifi_notification(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+{
+       SETTING_TRACE_BEGIN;
+       int vconf_value;
+       if (system_setting_vconf_get_value_int(VCONFKEY_WIFI_ENABLE_QS, &vconf_value)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+       bool bret ;
+       bret = (vconf_value == VCONFKEY_WIFI_QS_ENABLE) ? true : false;
+
+       *value = (void *)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, 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, 4);
+}
+
+/*---------------------------------------------- */
+int system_setting_get_lock_state(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+{
+       int vconf_value;
+
+       if (system_setting_vconf_get_value_int(VCONFKEY_IDLE_LOCK_STATE, &vconf_value)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+       *value = (void *)vconf_value;
+
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+int system_setting_set_lock_state(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+{
+       SETTING_TRACE_BEGIN;
+       int *vconf_value;
+       vconf_value = (int *)value;
+
+       if (system_setting_vconf_set_value_int(VCONFKEY_IDLE_LOCK_STATE, *vconf_value)) {
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
+       SETTING_TRACE_END;
+       return SYSTEM_SETTINGS_ERROR_NONE;
+}
+
+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, SYSTEM_SETTINGS_KEY_LOCK_STATE, 4, user_data);
+}
+
+int system_setting_unset_changed_callback_lock_state(system_settings_key_e key)
+{
+       return system_setting_vconf_unset_changed_cb(VCONFKEY_IDLE_LOCK_STATE, 4);
+}
+
+
+
+
+/*////////////////////////////////////////////////////////////////////////////////////////////// */
+
+int system_setting_get_not_supported_now(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
+{
+       return SYSTEM_SETTINGS_ERROR_NOT_SUPPORTED;
+}
+
+int system_setting_set_not_supported_now(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
+{
+       return SYSTEM_SETTINGS_ERROR_NOT_SUPPORTED;
+}
+
+int system_setting_set_changed_callback_not_supported_now(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
+{
+       return SYSTEM_SETTINGS_ERROR_NOT_SUPPORTED;
+}
+
+int system_setting_unset_changed_callback_not_supported_now(system_settings_key_e key)
+{
+       return SYSTEM_SETTINGS_ERROR_NOT_SUPPORTED;
+}
+
+
old mode 100755 (executable)
new mode 100644 (file)
index ce14075..9583f0f
@@ -11,7 +11,7 @@
  * distributed under the License is distributed on an AS IS BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
- * limitations under the License. 
+ * limitations under the License.
  */
 
 #include <stdio.h>
@@ -46,8 +46,9 @@ system_setting_s system_setting_table[] = {
                system_setting_set_incoming_call_ringtone,
                system_setting_set_changed_callback_incoming_call_ringtone,
                system_setting_unset_changed_callback_incoming_call_ringtone,
-               NULL
-       }, 
+               NULL,
+               NULL            /* user data */
+       },
 
        {
                SYSTEM_SETTINGS_KEY_WALLPAPER_HOME_SCREEN,
@@ -56,7 +57,8 @@ system_setting_s system_setting_table[] = {
                system_setting_set_wallpaper_home_screen,
                system_setting_set_changed_callback_wallpaper_home_screen,
                system_setting_unset_changed_callback_wallpaper_home_screen,
-               NULL
+               NULL,
+               NULL            /* user data */
        },
 
        {
@@ -66,7 +68,8 @@ system_setting_s system_setting_table[] = {
                system_setting_set_wallpaper_lock_screen,
                system_setting_set_changed_callback_wallpaper_lock_screen,
                system_setting_unset_changed_callback_wallpaper_lock_screen,
-               NULL
+               NULL,
+               NULL            /* user data */
        },
 
        {
@@ -76,7 +79,8 @@ system_setting_s system_setting_table[] = {
                system_setting_set_font_size,
                system_setting_set_changed_callback_font_size,
                system_setting_unset_changed_callback_font_size,
-               NULL
+               NULL,
+               NULL            /* user data */
        },
 
        {
@@ -86,9 +90,22 @@ system_setting_s system_setting_table[] = {
                system_setting_set_font_type,
                system_setting_set_changed_callback_font_type,
                system_setting_unset_changed_callback_font_type,
-               NULL
+               NULL,
+               NULL            /* user data */
        },
 
+#ifdef TIZEN_WEARABLE
+       {
+               SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION,
+               SYSTEM_SETTING_DATA_TYPE_BOOL,
+               system_setting_get_not_supported_now,
+               system_setting_set_not_supported_now,
+               system_setting_set_changed_callback_not_supported_now,
+               system_setting_unset_changed_callback_not_supported_now,
+               NULL,
+               NULL            /* user data */
+       },
+#else
        {
                SYSTEM_SETTINGS_KEY_MOTION_ACTIVATION,
                SYSTEM_SETTING_DATA_TYPE_BOOL,
@@ -96,131 +113,489 @@ system_setting_s system_setting_table[] = {
                system_setting_set_motion_activation,
                system_setting_set_changed_callback_motion_activation,
                system_setting_unset_changed_callback_motion_activation,
-               NULL
+               NULL,
+               NULL            /* user data */
+       },
+#endif
+
+       {
+               SYSTEM_SETTINGS_KEY_EMAIL_ALERT_RINGTONE,
+               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,
+               NULL,
+               NULL            /* user data */
+       },
+       {
+               SYSTEM_SETTINGS_KEY_USB_DEBUGGING_ENABLED,
+               SYSTEM_SETTING_DATA_TYPE_BOOL,
+               system_setting_get_usb_debugging_option,
+               system_setting_set_usb_debugging_option,
+               system_setting_set_changed_callback_usb_debugging_option,
+               system_setting_unset_changed_callback_usb_debugging_option,
+               NULL,
+               NULL            /* user data */
+       },
+       {
+               SYSTEM_SETTINGS_KEY_3G_DATA_NETWORK_ENABLED,
+               SYSTEM_SETTING_DATA_TYPE_BOOL,
+               system_setting_get_3g_data_network,
+               system_setting_set_3g_data_network,
+               system_setting_set_changed_callback_3g_data_network,
+               system_setting_unset_changed_callback_3g_data_network,
+               NULL,
+               NULL            /* user data */
+       },
+       {
+               SYSTEM_SETTINGS_KEY_TAP_AND_HOLD_DELAY,
+               SYSTEM_SETTING_DATA_TYPE_INT,
+               system_setting_get_tap_and_hold_delay,
+               system_setting_set_tap_and_hold_delay,
+               system_setting_set_changed_callback_tap_and_hold_delay,
+               system_setting_unset_changed_callback_tap_and_hold_delay,
+               NULL,
+               NULL            /* user data */
+       },
+       {
+               SYSTEM_SETTINGS_KEY_LOCKSCREEN_APP,
+               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,
+               NULL,
+               NULL            /* user data */
+       },
+       {
+               SYSTEM_SETTINGS_KEY_DEFAULT_FONT_TYPE,
+               SYSTEM_SETTING_DATA_TYPE_STRING,
+               system_setting_get_default_font_type,
+               NULL,
+               NULL,
+               NULL,
+               NULL,
+               NULL            /* user data */
+       },
+       {
+               SYSTEM_SETTINGS_KEY_LOCALE_COUNTRY,
+               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,
+               NULL,
+               NULL            /* user data */
+       },
+       {
+               SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE,
+               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,
+               NULL,
+               NULL            /* user data */
+       },
+       {
+               SYSTEM_SETTINGS_KEY_LOCALE_TIMEFORMAT_24HOUR,
+               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,
+               NULL,
+               NULL            /* user data */
+       },
+       {
+               SYSTEM_SETTINGS_KEY_LOCALE_TIMEZONE,
+               SYSTEM_SETTING_DATA_TYPE_STRING,
+               system_setting_get_locale_timezone,
+               NULL,
+               NULL,
+               NULL,
+               NULL,
+               NULL            /* user data */
+       },
+       {
+               SYSTEM_SETTINGS_KEY_TIME_CHANGED,
+               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,
+               NULL,
+               NULL            /* user data */
+       },
+       {
+               SYSTEM_SETTINGS_KEY_SOUND_LOCK,
+               SYSTEM_SETTING_DATA_TYPE_BOOL,
+               system_setting_get_sound_lock,
+               NULL,
+               system_setting_set_changed_callback_sound_lock,
+               system_setting_unset_changed_callback_sound_lock,
+               NULL,
+               NULL            /* user data */
+       },
+
+#ifdef TIZEN_WEARABLE
+       {
+               SYSTEM_SETTINGS_KEY_SOUND_SILENT_MODE,
+               SYSTEM_SETTING_DATA_TYPE_BOOL,
+               system_setting_get_not_supported_now,
+               system_setting_set_not_supported_now,
+               system_setting_set_changed_callback_not_supported_now,
+               system_setting_unset_changed_callback_not_supported_now,
+               NULL,
+               NULL            /* user data */
+       },
+#else
+       {
+               SYSTEM_SETTINGS_KEY_SOUND_SILENT_MODE,
+               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,
+               NULL,
+               NULL            /* user data */
+       },
+#endif
+       {
+               SYSTEM_SETTINGS_KEY_SOUND_TOUCH,
+               SYSTEM_SETTING_DATA_TYPE_BOOL,
+               system_setting_get_sound_touch,
+               NULL,
+               system_setting_set_changed_callback_sound_touch,
+               system_setting_unset_changed_callback_sound_touch,
+               NULL,
+               NULL            /* user data */
+       },
+       {
+               SYSTEM_SETTINGS_KEY_DISPLAY_SCREEN_ROTATION_AUTO,
+               SYSTEM_SETTING_DATA_TYPE_BOOL,
+               system_setting_get_auto_rotation_mode,
+               system_setting_set_auto_rotation_mode,
+               system_setting_set_changed_callback_auto_rotation_mode,
+               system_setting_unset_changed_callback_auto_rotation_mode,
+               NULL,
+               NULL            /* user data */
        },
        {
-               SYSTEM_SETTINGS_MAX, -1, NULL, NULL, NULL, NULL, NULL
+               SYSTEM_SETTINGS_KEY_SCREEN_BACKLIGHT_TIME,
+               SYSTEM_SETTING_DATA_TYPE_INT,
+               system_setting_get_screen_backlight_time,
+               system_setting_set_screen_backlight_time,
+               system_setting_set_changed_callback_screen_backlight_time,
+               system_setting_unset_changed_callback_screen_backlight_time,
+               NULL,
+               NULL            /* user data */
+       },
+       {
+               SYSTEM_SETTINGS_KEY_SOUND_NOTIFICATION,
+               SYSTEM_SETTING_DATA_TYPE_STRING,
+               system_setting_get_sound_notification,
+               system_setting_set_sound_notification,
+               system_setting_set_changed_callback_sound_notification,
+               system_setting_unset_changed_callback_sound_notification,
+               NULL,
+               NULL            /* user data */
+       },
+       {
+               SYSTEM_SETTINGS_KEY_SOUND_NOTIFICATION_REPETITION_PERIOD,
+               SYSTEM_SETTING_DATA_TYPE_INT,
+               system_setting_get_notification_repetition_period,
+               system_setting_set_notification_repetition_period,
+               system_setting_set_changed_callback_notification_repetition_period,
+               system_setting_unset_changed_callback_notification_repetition_period,
+               NULL,
+               NULL            /* user data */
+       },
+       {
+               SYSTEM_SETTINGS_KEY_DEVICE_NAME,
+               SYSTEM_SETTING_DATA_TYPE_STRING,
+               system_setting_get_device_name,
+               NULL,
+               system_setting_set_changed_callback_device_name,
+               system_setting_unset_changed_callback_device_name,
+               NULL,
+               NULL            /* user data */
+       },
+#ifdef TIZEN_WEARABLE
+       {
+               SYSTEM_SETTINGS_KEY_NETWORK_FLIGHT_MODE,
+               SYSTEM_SETTING_DATA_TYPE_BOOL,
+               system_setting_get_not_supported_now,
+               system_setting_set_not_supported_now,
+               system_setting_set_changed_callback_not_supported_now,
+               system_setting_unset_changed_callback_not_supported_now,
+               NULL,
+               NULL            /* user data */
+       },
+#else
+       {
+               SYSTEM_SETTINGS_KEY_NETWORK_FLIGHT_MODE,
+               SYSTEM_SETTING_DATA_TYPE_BOOL,
+               system_setting_get_network_flight_mode,
+               NULL,
+               system_setting_set_changed_callback_network_flight_mode,
+               system_setting_unset_changed_callback_network_flight_mode,
+               NULL,
+               NULL            /* user data */
+       },
+#endif
+#ifdef TIZEN_WEARABLE
+       {
+               SYSTEM_SETTINGS_KEY_NETWORK_WIFI_NOTIFICATION,
+               SYSTEM_SETTING_DATA_TYPE_BOOL,
+               system_setting_get_not_supported_now,
+               system_setting_set_not_supported_now,
+               system_setting_set_changed_callback_not_supported_now,
+               system_setting_unset_changed_callback_not_supported_now,
+               NULL,
+               NULL            /* user data */
+       },
+#else
+       {
+               SYSTEM_SETTINGS_KEY_NETWORK_WIFI_NOTIFICATION,
+               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,
+               NULL,
+               NULL            /* user data */
+       },
+#endif
+       {
+               SYSTEM_SETTINGS_KEY_LOCK_STATE,
+               SYSTEM_SETTING_DATA_TYPE_INT,
+               system_setting_get_lock_state,
+               system_setting_set_lock_state,
+               system_setting_set_changed_callback_lock_state,
+               system_setting_unset_changed_callback_lock_state,
+               NULL,
+               NULL            /* user data */
+       },
+       {
+               SYSTEM_SETTINGS_MAX, -1, NULL, NULL, NULL, NULL, NULL, NULL
        }
 };
 
-int system_settings_get_item(system_settings_key_e key, system_setting_h *item)
+static void _dump_context()
+{
+       int i;
+       /*int max = SYSTEM_SETTINGS_MAX; */
+       int max = sizeof(system_setting_table)/sizeof(system_setting_s) -1 ;
+
+       for (i=0; i<27; i++) {
+               LOGE("[%s] system_setting_table[i].key = %d", __FUNCTION__, system_setting_table[i].key);
+               LOGE("[%s] system_setting_table[i].data_type = %d", __FUNCTION__, system_setting_table[i].data_type);
+               LOGE("[%s] system_setting_table[i].get_value_cb = %x", __FUNCTION__, system_setting_table[i].get_value_cb);
+               LOGE("[%s] system_setting_table[i].set_value_cb = %x", __FUNCTION__, system_setting_table[i].set_value_cb);
+
+               LOGE("[%s] system_setting_table[i].set_changed_cb = %x <---", __FUNCTION__, system_setting_table[i].set_changed_cb);
+               LOGE("[%s] system_setting_table[i].unset_changed_cb = %x", __FUNCTION__, system_setting_table[i].unset_changed_cb);
+               LOGE("[%s] system_setting_table[i].changed_cb = %x", __FUNCTION__, system_setting_table[i].changed_cb);
+       }
+}
+
+static int _dump_context_node(int key)
 {
-    int index = 0;
+       int index = 0;
+
+       if (!(key >= 0 && SYSTEM_SETTINGS_KEY_MAX > key)) {
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+       }
+
+       while (system_setting_table[index].key != SYSTEM_SETTINGS_MAX) {
+               if (system_setting_table[index].key == key) {
+                       int i = index;
+                       LOGE("[%s] system_setting_table[i].key = %d", __FUNCTION__, system_setting_table[i].key);
+                       LOGE("[%s] system_setting_table[i].data_type = %d", __FUNCTION__, system_setting_table[i].data_type);
+                       LOGE("[%s] system_setting_table[i].get_value_cb = %x", __FUNCTION__, system_setting_table[i].get_value_cb);
+                       LOGE("[%s] system_setting_table[i].set_value_cb = %x", __FUNCTION__, system_setting_table[i].set_value_cb);
+                       LOGE("[%s] system_setting_table[i].set_changed_cb = %x <---", __FUNCTION__, system_setting_table[i].set_changed_cb);
+                       LOGE("[%s] system_setting_table[i].unset_changed_cb = %x", __FUNCTION__, system_setting_table[i].unset_changed_cb);
+                       LOGE("[%s] system_setting_table[i].changed_cb = %x", __FUNCTION__, system_setting_table[i].changed_cb);
+                       return 0;
+               }
+               index++;
+       }
 
-    while (system_setting_table[index].key != SYSTEM_SETTINGS_MAX)
-    {   
-        if (system_setting_table[index].key == key)
-        {   
-            *item = &system_setting_table[index];
-            return 0;
-        }   
+       return -1;
+}
 
-        index++;
-    }   
+int system_settings_get_item(system_settings_key_e key, system_setting_h *item)
+{
+       int index = 0;
+
+       if (!(key >= 0 && SYSTEM_SETTINGS_KEY_MAX > key)) {
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+       }
+#if 0
+       _dump_context();
+#endif
+       while (system_setting_table[index].key != SYSTEM_SETTINGS_MAX) {
+               if (system_setting_table[index].key == key) {
+                       *item = &system_setting_table[index];
+                       LOGE("Enter [%s], index = %d, key = %d, type = %d", __FUNCTION__, index, key, (*item)->data_type);
+                       return 0;
+               }
+
+               index++;
+       }
 
-    return -1; 
+       return -1;
 }
 
-int system_settings_get_value(system_settings_key_e key, system_setting_data_type_e data_type, void** value)
+int system_settings_get_value(system_settings_key_e key, system_setting_data_type_e data_type, void **value)
 {
-    system_setting_h system_setting_item;
+       LOGE("Enter [%s]", __FUNCTION__);
+       if (!(key >= 0 && SYSTEM_SETTINGS_KEY_MAX > key)) {
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+       }
+
+       system_setting_h system_setting_item;
        system_setting_get_value_cb     system_setting_getter;
 
-    if (system_settings_get_item(key, &system_setting_item))
-    {
-        LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid key", __FUNCTION__, SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER);
-        return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
-    }
+       if (0 != system_settings_get_item(key, &system_setting_item)) {
+               _dump_context_node(key);
+               LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid key --- (%d)", __FUNCTION__, SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER, key);
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+       }
 
-    if (system_setting_item->data_type != data_type)
-    {
-        LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid data type", __FUNCTION__, SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER);
-        return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
-    }
+       if (system_setting_item->data_type != data_type) {
+               _dump_context_node(key);
+               LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid data type --- key : (%d), datatype:(%d)", __FUNCTION__, SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER, key, data_type);
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+       }
 
-       printf("assigned getter \n");
-    system_setting_getter = system_setting_item->get_value_cb;
+       system_setting_getter = system_setting_item->get_value_cb;
 
-    if (system_setting_getter == NULL)
-    {
-        LOGE("[%s] IO_ERROR(0x%08x) : failed to call getter for the system settings", __FUNCTION__, SYSTEM_SETTINGS_ERROR_IO_ERROR);
-        return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-    }
+       if (system_setting_getter == NULL) {
+               LOGE("[%s] IO_ERROR(0x%08x) : failed to call getter for the system settings", __FUNCTION__, SYSTEM_SETTINGS_ERROR_IO_ERROR);
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
 
-    return system_setting_getter(key, system_setting_item->data_type, value);
+       return system_setting_getter(key, system_setting_item->data_type, value);
 }
 
-int system_settings_set_value(system_settings_key_e key, system_setting_data_type_e data_type, voidvalue)
+int system_settings_set_value(system_settings_key_e key, system_setting_data_type_e data_type, void *value)
 {
+       LOGE("Enter [%s]", __FUNCTION__);
+       if (!(key >= 0 && SYSTEM_SETTINGS_KEY_MAX > key) || value == NULL) {
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+       }
+
+
        system_setting_h system_setting_item;
        system_setting_set_value_cb     system_setting_setter;
 
-    if (system_settings_get_item(key, &system_setting_item))
-    {
-        LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid key", __FUNCTION__, SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER);
-        return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
-    }
+       int ret = system_settings_get_item(key, &system_setting_item);
+
+       if (0 != ret) {
+               LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid key", __FUNCTION__, SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER);
+               return SYSTEM_SETTINGS_ERROR_NOT_SUPPORTED;
+       }
 
-       printf("assigned setter \n");
-    system_setting_setter = system_setting_item->set_value_cb;
+       /* type check */
+       if (system_setting_item->data_type != data_type) {
+               LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid data type", __FUNCTION__, SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER);
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+       }
 
-    if (system_setting_setter == NULL)
-    {
-        LOGE("[%s] IO_ERROR(0x%08x) : failed to call getter for the system settings", __FUNCTION__, SYSTEM_SETTINGS_ERROR_IO_ERROR);
-        return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-    }
+       system_setting_setter = system_setting_item->set_value_cb;
 
-    return system_setting_setter(key, system_setting_item->data_type, value);
+       if (system_setting_setter == NULL) {
+               LOGE("[%s] IO_ERROR(0x%08x) : failed to call setter for the system settings", __FUNCTION__, SYSTEM_SETTINGS_ERROR_NOT_SUPPORTED);
+               return SYSTEM_SETTINGS_ERROR_NOT_SUPPORTED;
+       }
+
+       return system_setting_setter(key, system_setting_item->data_type, value);
 }
 
-// typedef int (*system_setting_set_value_cb) (system_settings_key_e key, system_setting_data_type_e data_type, void* value);
 int system_settings_set_value_int(system_settings_key_e key, int value)
 {
-       printf("[MOCK] system_settings_set_value_int - value = %d \n", value);
+       if (!(key >= 0 && SYSTEM_SETTINGS_KEY_MAX > key)) {
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+       }
 
-       // TODO: make sure the value is inside of enum.
-       int* ptr = &value;
-       return system_settings_set_value(key, SYSTEM_SETTING_DATA_TYPE_INT,(void*)ptr);
+       int *ptr = &value;
+       return system_settings_set_value(key, SYSTEM_SETTING_DATA_TYPE_INT,(void *)ptr);
 }
 
 int system_settings_get_value_int(system_settings_key_e key, int *value)
 {
-       return system_settings_get_value(key, SYSTEM_SETTING_DATA_TYPE_INT, (void**)value);
+       LOGE("Enter [%s]", __FUNCTION__);
+       if (!(key >= 0 && SYSTEM_SETTINGS_KEY_MAX > key)) {
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+       }
+
+       return system_settings_get_value(key, SYSTEM_SETTING_DATA_TYPE_INT, (void **)value);
 }
 
 int system_settings_set_value_bool(system_settings_key_e key, bool value)
 {
-       printf("[MOCK] system_settings_set_value_bool - value = %d \n", value);
-       bool* ptr = &value;
-       return system_settings_set_value(key, SYSTEM_SETTING_DATA_TYPE_BOOL,(void*)ptr);
+       LOGE("Enter [%s]", __FUNCTION__);
+       if (!(key >= 0 && SYSTEM_SETTINGS_KEY_MAX > key)) {
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+       }
+
+       bool *ptr = &value;
+       return system_settings_set_value(key, SYSTEM_SETTING_DATA_TYPE_BOOL,(void *)ptr);
 }
 
 int system_settings_get_value_bool(system_settings_key_e key, bool *value)
 {
-       return system_settings_get_value(key, SYSTEM_SETTING_DATA_TYPE_BOOL, (void**)value);
-}
+       LOGE("Enter [%s]", __FUNCTION__);
+       int flag = 0;
 
-int system_settings_set_value_double(system_settings_key_e key, double value)
-{
-       printf("[MOCK] system_settings_set_value_double - value = %f \n", value);
-       double* ptr = &value;
-       return system_settings_set_value(key, SYSTEM_SETTING_DATA_TYPE_DOUBLE,(void*)ptr);
-}
+       int ret;
 
-int system_settings_get_value_double(system_settings_key_e key, double *value)
-{
-       return system_settings_get_value(key, SYSTEM_SETTING_DATA_TYPE_DOUBLE, (void**)value);
+       if (!(key >= 0 && SYSTEM_SETTINGS_KEY_MAX > key)) {
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+       }
+
+       ret = system_settings_get_value(key, SYSTEM_SETTING_DATA_TYPE_BOOL, (void **)&flag);
+       SETTING_TRACE(" inf (flag) value : %d ", flag);
+       if (flag == 0) {
+               *value = false;
+               SETTING_TRACE(" flag == 0 ");
+       } else if (flag == 1) {
+               *value = true;
+               SETTING_TRACE(" flag == 1 ");
+       } else {
+               *value = false;
+               SETTING_TRACE(" exception here!!! ");
+       }
+
+       return ret;
 }
 
 int system_settings_set_value_string(system_settings_key_e key, const char *value)
 {
-       printf("[MOCK] system_settings_set_value_string - input string : %s \n", value);
-       return system_settings_set_value(key, SYSTEM_SETTING_DATA_TYPE_STRING,(void*)value);
+       LOGE("Enter [%s]", __FUNCTION__);
+       if (!(key >= 0 && SYSTEM_SETTINGS_KEY_MAX > key)) {
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+       }
+
+
+       if (key == SYSTEM_SETTINGS_KEY_DEFAULT_FONT_TYPE)
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+
+       return system_settings_set_value(key, SYSTEM_SETTING_DATA_TYPE_STRING,(void *)value);
 }
 
 int system_settings_get_value_string(system_settings_key_e key, char **value)
 {
-       return system_settings_get_value(key, SYSTEM_SETTING_DATA_TYPE_STRING, (void**)value);
+       LOGE("Enter [%s]", __FUNCTION__);
+       if (!(key >= 0 && SYSTEM_SETTINGS_KEY_MAX > key)) {
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+       }
+
+       return system_settings_get_value(key, SYSTEM_SETTING_DATA_TYPE_STRING, (void **)value);
 }
 
 
@@ -233,28 +608,36 @@ int system_settings_get_value_string(system_settings_key_e key, char **value)
 /*PUBLIC*/
 int system_settings_set_changed_cb(system_settings_key_e key, system_settings_changed_cb callback, void *user_data)
 {
-       printf("system_settings_set_changed_cb \n");
-
-    system_setting_h system_setting_item;
+       LOGE("Enter [%s]", __FUNCTION__);
+       system_setting_h system_setting_item;
        system_setting_set_changed_callback_cb system_setting_set_changed_cb;
 
-    if (system_settings_get_item(key, &system_setting_item))
-    {
-        LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid key", __FUNCTION__, SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER);
-        return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
-    }
+       if (!(key >= 0 && SYSTEM_SETTINGS_KEY_MAX > key)) {
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+       }
+
+       if (key == SYSTEM_SETTINGS_KEY_DEFAULT_FONT_TYPE)
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+
+       if (system_settings_get_item(key, &system_setting_item)) {
+               LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid key", __FUNCTION__, SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER);
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+       }
 
        system_setting_set_changed_cb = system_setting_item->set_changed_cb;
 
-       // Store the callback function from application side
+
+       /* Store the callback function from application side */
        if (callback)
                system_setting_item->changed_cb = callback;
 
-    if (system_setting_set_changed_cb == NULL)
-    {
-        LOGE("[%s] IO_ERROR(0x%08x) : failed to call getter for the system settings", __FUNCTION__, SYSTEM_SETTINGS_ERROR_IO_ERROR);
-        return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-    }
+       if (user_data)
+               system_setting_item->user_data = user_data;
+
+       if (system_setting_set_changed_cb == NULL) {
+               LOGE("[%s] IO_ERROR(0x%08x) : failed to call getter for the system settings", __FUNCTION__, SYSTEM_SETTINGS_ERROR_IO_ERROR);
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
 
        return system_setting_set_changed_cb(key, callback, user_data);
 }
@@ -262,29 +645,34 @@ int system_settings_set_changed_cb(system_settings_key_e key, system_settings_ch
 
 int system_settings_unset_changed_cb(system_settings_key_e key)
 {
-       printf("system_settings_unset_changed_cb \n");
-
-    system_setting_h system_setting_item;
+       LOGE("Enter [%s]", __FUNCTION__);
+       system_setting_h system_setting_item;
        system_setting_unset_changed_callback_cb system_setting_unset_changed_cb;
 
-    if (system_settings_get_item(key, &system_setting_item))
-    {
-        LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid key", __FUNCTION__, SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER);
-        return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
-    }
+       if (!(key >= 0 && SYSTEM_SETTINGS_KEY_MAX > key)) {
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+       }
+
+       if (key == SYSTEM_SETTINGS_KEY_DEFAULT_FONT_TYPE)
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+
+       int ret = system_settings_get_item(key, &system_setting_item) ;
+       if (ret) {
+               LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid key", __FUNCTION__, SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER);
+               return SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER;
+       }
 
        system_setting_unset_changed_cb = system_setting_item->unset_changed_cb;
 
-       // free the callback function from application side
+       /* free the callback function from application side */
        if (system_setting_item->changed_cb)
                system_setting_item->changed_cb = NULL;
-       //-----------------------------------------------------
+       /*----------------------------------------------------- */
 
-    if (system_setting_unset_changed_cb == NULL)
-    {
-        LOGE("[%s] IO_ERROR(0x%08x) : failed to call getter for the system settings", __FUNCTION__, SYSTEM_SETTINGS_ERROR_IO_ERROR);
-        return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-    }
+       if (system_setting_unset_changed_cb == NULL) {
+               LOGE("[%s] IO_ERROR(0x%08x) : failed to call getter for the system settings", __FUNCTION__, SYSTEM_SETTINGS_ERROR_IO_ERROR);
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
 
        return system_setting_unset_changed_cb(key);
 }
index 3c86cf4..b442a51 100644 (file)
@@ -11,7 +11,7 @@
  * distributed under the License is distributed on an AS IS BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
- * limitations under the License. 
+ * limitations under the License.
  */
 
 #include <stdio.h>
@@ -38,29 +38,29 @@ int system_setting_vconf_get_value_int(const char *vconf_key, int *value)
 
 int system_setting_vconf_get_value_bool(const char *vconf_key, bool *value)
 {
-       return vconf_get_bool(vconf_key, (int*)value);
-}
+       int tempvalue = 0;
+       int ret = vconf_get_bool(vconf_key, &tempvalue);
 
-int system_setting_vconf_get_value_double(const char *vconf_key, double *value)
-{
-       return vconf_get_dbl(vconf_key, value);
+       if (tempvalue == 1) {
+               *value = true;
+       } else {
+               *value = false;
+       }
+       return ret;
 }
 
 int system_setting_vconf_get_value_string(const char *vconf_key, char **value)
 {
-    char *str_value = NULL;
-
-    str_value = vconf_get_str(vconf_key);
-        
-    if (str_value != NULL)
-    {
-        *value = str_value;
-        return 0;
-    }
-    else
-    {
-        return -1;
-    }
+       char *str_value = NULL;
+
+       str_value = vconf_get_str(vconf_key);
+
+       if (str_value != NULL) {
+               *value = str_value;
+               return 0;
+       } else {
+               return -1;
+       }
 }
 
 int system_setting_vconf_set_value_int(const char *vconf_key, int value)
@@ -73,162 +73,180 @@ int system_setting_vconf_set_value_bool(const char *vconf_key, bool value)
        return vconf_set_bool(vconf_key, (int)value);
 }
 
-int system_setting_vconf_set_value_double(const char *vconf_key, double value)
-{
-       return vconf_set_dbl(vconf_key, value);
-}
-
 int system_setting_vconf_set_value_string(const char *vconf_key, char *value)
 {
-    return vconf_set_str(vconf_key, value);
+       return vconf_set_str(vconf_key, value);
 }
 
-
-/////////////////////////////////////////////////////////////////////////////////////////////
+/*/////////////////////////////////////////////////////////////////////////////////////////// */
 
 typedef void (*system_setting_vconf_event_cb)(keynode_t *node, void *event_data);
-    
+
 static void system_setting_vconf_event_cb0(keynode_t *node, void *event_data)
-{       
+{
        system_settings_key_e pkey = (system_settings_key_e)event_data;
-       printf("*** system_setting_vconf_event_cb0  : %d \n",pkey );
 
-    if (node != NULL)
-    {
+       if (node != NULL) {
                system_setting_h system_setting_item;
-                                                                                                                                                                                                                                                 
-               if (system_settings_get_item(pkey, &system_setting_item))
-               {
+
+               if (system_settings_get_item(pkey, &system_setting_item)) {
                        LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid key", __FUNCTION__, SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER);
                }
-               system_setting_item->changed_cb(pkey, NULL);
-    }       
+
+               void *user_data = NULL;
+               user_data = system_setting_item->user_data;
+               system_setting_item->changed_cb(pkey, user_data);
+       }
 }
-    
+
 static void system_setting_vconf_event_cb1(keynode_t *node, void *event_data)
-{       
+{
        system_settings_key_e pkey = (system_settings_key_e)event_data;
-       printf("*** system_setting_vconf_event_cb1  : %d \n",pkey );
 
-    if (node != NULL)
-    {
+       if (node != NULL) {
                system_setting_h system_setting_item;
-                                                                                                                                                                                                                                                 
-               if (system_settings_get_item(pkey, &system_setting_item))
-               {
+
+               if (system_settings_get_item(pkey, &system_setting_item)) {
                        LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid key", __FUNCTION__, SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER);
                }
-               system_setting_item->changed_cb(pkey, NULL);
-    }       
+
+               void *user_data = NULL;
+               user_data = system_setting_item->user_data;
+               system_setting_item->changed_cb(pkey, user_data);
+       }
 }
-    
+
 static void system_setting_vconf_event_cb2(keynode_t *node, void *event_data)
-{       
+{
        system_settings_key_e pkey = (system_settings_key_e)event_data;
-       printf("*** system_setting_vconf_event_cb2  : %d \n",pkey );
 
-    if (node != NULL)
-    {
+       if (node != NULL) {
                system_setting_h system_setting_item;
-                                                                                                                                                                                                                                                 
-               if (system_settings_get_item(pkey, &system_setting_item))
-               {
+
+               if (system_settings_get_item(pkey, &system_setting_item)) {
                        LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid key", __FUNCTION__, SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER);
                }
-               system_setting_item->changed_cb(pkey, NULL);
-    }       
+
+               void *user_data = NULL;
+               user_data = system_setting_item->user_data;
+               system_setting_item->changed_cb(pkey, user_data);
+       }
 }
 
 static void system_setting_vconf_event_cb3(keynode_t *node, void *event_data)
 {
        system_settings_key_e pkey = (system_settings_key_e)event_data;
-       printf("*** system_setting_vconf_event_cb3  : %d \n",pkey );
 
-    if (node != NULL)
-    {
+       if (node != NULL) {
                system_setting_h system_setting_item;
-                                                                                                                                                                                                                                                 
-               if (system_settings_get_item(pkey, &system_setting_item))
-               {
+
+               if (system_settings_get_item(pkey, &system_setting_item)) {
                        LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid key", __FUNCTION__, SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER);
                }
-               system_setting_item->changed_cb(pkey, NULL);
-    }       
+
+               void *user_data = NULL;
+               user_data = system_setting_item->user_data;
+               system_setting_item->changed_cb(pkey, user_data);
+       }
 }
 
 static void system_setting_vconf_event_cb4(keynode_t *node, void *event_data)
 {
        system_settings_key_e pkey = (system_settings_key_e)event_data;
-       printf("*** system_setting_vconf_event_cb4  : %d \n",pkey );
 
-    if (node != NULL)
-    {
+       if (node != NULL) {
+               system_setting_h system_setting_item;
+
+               if (system_settings_get_item(pkey, &system_setting_item)) {
+                       LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid key", __FUNCTION__, SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER);
+               }
+
+               void *user_data = NULL;
+               user_data = system_setting_item->user_data;
+               system_setting_item->changed_cb(pkey, user_data);
+       }
+}
+
+static void system_setting_vconf_event_cb100(keynode_t *node, void *event_data)
+{
+       system_settings_key_e pkey = (system_settings_key_e)event_data;
+
+       if (node != NULL) {
                system_setting_h system_setting_item;
-                                                                                                                                                                                                                                                 
-               if (system_settings_get_item(pkey, &system_setting_item))
-               {
+
+               if (system_settings_get_item(pkey, &system_setting_item)) {
                        LOGE("[%s] INVALID_PARAMETER(0x%08x) : invalid key", __FUNCTION__, SYSTEM_SETTINGS_ERROR_INVALID_PARAMETER);
                }
-               system_setting_item->changed_cb(pkey, NULL);
-    }       
+
+               void *user_data = NULL;
+               user_data = system_setting_item->user_data;
+               system_setting_item->changed_cb(pkey, user_data);
+       }
 }
 
 
+
+
 static system_setting_vconf_event_cb system_setting_vconf_get_event_cb_slot(int slot)
 {
-    switch (slot)
-    {
-    case 0:
-        return system_setting_vconf_event_cb0;
+       switch (slot) {
+       case 0:
+               return system_setting_vconf_event_cb0;
 
-    case 1:
-        return system_setting_vconf_event_cb1;
+       case 1:
+               return system_setting_vconf_event_cb1;
 
-    case 2:
-        return system_setting_vconf_event_cb2;
+       case 2:
+               return system_setting_vconf_event_cb2;
 
-    case 3:
-        return system_setting_vconf_event_cb3;
+       case 3:
+               return system_setting_vconf_event_cb3;
 
-    case 4:
-        return system_setting_vconf_event_cb4;
+       case 4:
+               return system_setting_vconf_event_cb4;
+       case 100:
+               return system_setting_vconf_event_cb100;
 
-    default:
-        return NULL;
-    }
+       default:
+               return NULL;
+       }
 }
 
-int system_setting_vconf_set_changed_cb(const char *vconf_key, system_settings_key_e key, int slot)
+int system_setting_vconf_set_changed_cb(const char *vconf_key, system_settings_key_e key, int slot, void *user_data)
 {
-    system_setting_vconf_event_cb vconf_event_cb;
+       system_setting_vconf_event_cb vconf_event_cb;
 
-    vconf_event_cb = system_setting_vconf_get_event_cb_slot(slot);
+       vconf_event_cb = system_setting_vconf_get_event_cb_slot(slot);
 
-    if (vconf_event_cb == NULL)
-    {
-        return SYSTEM_SETTINGS_ERROR_IO_ERROR;
-    }
+       if (vconf_event_cb == NULL) {
+               LOGE("[%s] INVALID_error , %s", __FUNCTION__, "vconf_event_cb == 0");
+               return SYSTEM_SETTINGS_ERROR_IO_ERROR;
+       }
 
-    if (vconf_notify_key_changed(vconf_key, vconf_event_cb, (void*)key))
-    {
-        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;
+       return SYSTEM_SETTINGS_ERROR_NONE;
 }
 
 int system_setting_vconf_unset_changed_cb(const char *vconf_key, int slot)
 {
-    system_setting_vconf_event_cb vconf_event_cb;
+       system_setting_vconf_event_cb vconf_event_cb;
 
-    vconf_event_cb = system_setting_vconf_get_event_cb_slot(slot);
+       vconf_event_cb = system_setting_vconf_get_event_cb_slot(slot);
 
-    if (vconf_event_cb != NULL)
-    {
-        vconf_ignore_key_changed(vconf_key, vconf_event_cb);
-    }
+       if (vconf_event_cb != NULL) {
+               vconf_ignore_key_changed(vconf_key, vconf_event_cb);
+       }
 
-    return SYSTEM_SETTINGS_ERROR_NONE;
+       return SYSTEM_SETTINGS_ERROR_NONE;
 }