Add menu for 'Joyn'.
authorJing Yigang <yigang.jing@samsung.com>
Tue, 28 Aug 2012 03:18:17 +0000 (11:18 +0800)
committerJing Yigang <yigang.jing@samsung.com>
Tue, 28 Aug 2012 03:18:17 +0000 (11:18 +0800)
Change-Id: Iae1c88f8b02ab9d47e50c1aa585c7e08a4a92921

setting-common/include/setting-common-resource.h
src/setting-main.c

index 8d91810..ef1c99d 100755 (executable)
@@ -25,6 +25,7 @@
 #define SETTING_IMAGE_PATH_CFG "/opt/apps/com.samsung.setting/res/images/"
 #define SETTING_OPEN_SOURCE_LICENSE_PATH "file:///opt/apps/com.samsung.setting/data/Open_Source_Announcement.html"
 
+#define KeyStr_Joyn                    "joyn"
  /* connectivity keyStr*/
 #define KeyStr_Connectivity                    "IDS_ST_BODY_CONNECTIVITY"
 #define KeyStr_FlightMode                      "IDS_ST_BODY_FLIGHT_MODE"
 /*****/
 
 #define IMG_DefaultIcon                        SETTING_ICON_PATH_CFG"DefaultIcon.png"
+#define IMG_Joyn                       "/usr/share/ims/joyn_notification.png"
 /* connectivity IMG*/
 #define IMG_FlightMode                 SETTING_ICON_PATH_CFG"A01-1_icon_Flight_Mode.png"
 #define IMG_WiFi                       SETTING_ICON_PATH_CFG"A01-1_icon_Wi-Fi.png"
index 0e43bdd..05e6147 100755 (executable)
@@ -1505,6 +1505,22 @@ static int setting_main_refresh(void *data)
        setting_main_appdata *ad = (setting_main_appdata *) data;
        elm_genlist_clear(ad->main_genlist);    /* first to clear list */
 
+       if (is_ug_installed_by_ug_args("rcs-config"))
+       {
+               Elm_Object_Item *item = elm_genlist_item_append(ad->main_genlist, &itc_seperator, NULL, NULL,
+                                           ELM_GENLIST_ITEM_NONE, NULL, NULL);
+               elm_genlist_item_select_mode_set(item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
+               setting_create_Gendial_field_groupitem(ad->main_genlist,
+                                                      &(ad->itc[GENDIAL_Type_1text_1icon_2]),
+                                                      NULL,
+                                                      setting_main_click_list_ex_ug_cb,
+                                                      "rcs-config",
+                                                      SWALLOW_Type_INVALID,
+                                                      IMG_Joyn, NULL,
+                                                      0, KeyStr_Joyn, NULL,
+                                                      NULL);
+       }
+
        int i;
        for(i = Func_Type_Connectivity; i < Func_Type_MAX; i++)
                (ad->load_fns[i]) (ad);