[Feature] add Tethering menu in case of RSA Target environment
authoryigang.jing <yigang.jing@samsung.com>
Thu, 1 Nov 2012 06:35:34 +0000 (14:35 +0800)
committeryigang.jing <yigang.jing@samsung.com>
Thu, 1 Nov 2012 06:37:42 +0000 (14:37 +0800)
Change-Id: I807d1f553d825e71ab0fa7bb7faf49d3fae0c253

resource/setting.cfg
setting-common/include/setting-common-resource.h
setting-common/src/setting-cfg.c
setting-reset/src/setting-reset-settings.c
src/setting-main.c

index 379d0ee..a61041b 100755 (executable)
         "is_resetable" : 1
       },
       {
+        "key_name" : "IDS_MOBILEAP_BODY_TETHERING",
+        "icon_path" : "/opt/apps/org.tizen.setting/res/icons/A01-1_icon_mobileAP.png",
+        "ug_args" : "setting-mobile-ap-ug",
+        "pos" : 0,
+        "click_times" : 0,
+        "is_resetable" : 1
+      },
+      {
         "key_name" : "IDS_COM_BODY_LOCATION",
         "icon_path" : "/opt/apps/org.tizen.setting/res/icons/A01-1_icon_Location.png",
         "ug_args" : "setting-location-efl",
index c2d86dd..c818f32 100755 (executable)
@@ -34,6 +34,7 @@
 #define KeyStr_WiFi                            "IDS_COM_BODY_WI_FI"
 #define KeyStr_WiFiDirect                              "IDS_ST_HEADER_WI_FI_DIRECT"
 #define KeyStr_Bluetooth                       "IDS_COM_BODY_BLUETOOTH"
+#define KeyStr_MobileAP                                "IDS_MOBILEAP_BODY_TETHERING"
 
 #define KeyStr_AllShare                                "IDS_COM_BODY_ALLSHARE"
 
 #define IMG_UsePacketData              SETTING_ICON_PATH_CFG"Data-32.png"
 #define IMG_USBconnection              SETTING_ICON_PATH_CFG"A01-1_icon_USB_Connection.png"
 #define IMG_TVout                      SETTING_ICON_PATH_CFG"TVout.png"
+#define IMG_MobileAP                   SETTING_ICON_PATH_CFG"A01-1_icon_mobileAP.png"
 
 /* system IMG*/
 #define IMG_Menuscreen         SETTING_ICON_PATH_CFG"A01-1_icon_Menu.png"
index 302afcb..60bee4a 100755 (executable)
@@ -113,6 +113,7 @@ int setting_cfg_create(void)
 
        __create_an_item(KeyStr_FlightMode, IMG_FlightMode, NULL, Cfg_Item_Pos_Level0, Cfg_Item_unResetable);
        __create_an_item(KeyStr_WiFi, IMG_WiFi, "wifi-efl-UG", Cfg_Item_Pos_Level0, Cfg_Item_Resetable);
+       __create_an_item(KeyStr_MobileAP, IMG_MobileAP, "setting-mobile-ap-ug", Cfg_Item_Pos_Level0, Cfg_Item_Resetable);
        __create_an_item(KeyStr_Location, IMG_Location, "setting-location-efl", Cfg_Item_Pos_Level0, Cfg_Item_Resetable);
        __create_an_item(KeyStr_Network, IMG_Network, "setting-network-efl", Cfg_Item_Pos_Level0, Cfg_Item_Resetable);
        __create_an_item(KeyStr_Bluetooth, IMG_Bluetooth, "setting-bluetooth-efl", Cfg_Item_Pos_Level1, Cfg_Item_Resetable);
index d5ec465..49bdd8a 100755 (executable)
@@ -301,6 +301,8 @@ static int setting_reset_settings_create(void *cb)
                                        continue; /* hide Flight Mode in Emulator*/
                                } else if (!safeStrCmp(KeyStr_WiFi, item_name)) {
                                        continue; /* hide WIFI in Emulator*/
+                               } else if (!safeStrCmp(KeyStr_MobileAP, item_name)) {
+                                       continue; /* hide Tethering in Emulator*/
                                } else if (!safeStrCmp(KeyStr_WiFiDirect, item_name)) {
                                        continue; /* hide WiFiDirect in Emulator*/
                                } else if (!safeStrCmp(KeyStr_Network, item_name)) {
index b12706c..a79bea1 100755 (executable)
@@ -590,6 +590,8 @@ void __load_connectivity_menu_list(void *data, Cfg_Item_Position inputPos, Evas_
                                        continue; /* hide Network in Emulator*/
                                } else if (!safeStrCmp(KeyStr_Bluetooth, keyStr)) {
                                        continue; /* hide Bluetooth in Emulator*/
+                               } else if (!safeStrCmp(KeyStr_MobileAP, keyStr)) {
+                                       continue; /* hide Tethering in Emulator*/
                                } else {
                                        /* do nothing */
                                }