Change-Id: I7bc94db560516860f56158d7be8f87447532122e
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
Name: ug-setting-mobileap-efl
Summary: Tethering UI Gadget Library
Name: ug-setting-mobileap-efl
Summary: Tethering UI Gadget Library
Release: 1
Group: App/Network
License: Flora-1.1
Release: 1
Group: App/Network
License: Flora-1.1
ad->popup = NULL;
}
_update_main_view(ad, type);
ad->popup = NULL;
}
_update_main_view(ad, type);
- if (type == TETHERING_TYPE_RESERVED) {
- DBG("MobileAP is turned on\n");
- _prepare_popup(MH_POPUP_WIFI_AP_OFF, STR_WIFI_AP_CONTROLLED_ANOTHER_APP);
- _create_popup(ad);
- }
if (ret != TETHERING_ERROR_NONE)
ERR("tethering_set_enabled_cb [0x%X]\n", ret);
if (ret != TETHERING_ERROR_NONE)
ERR("tethering_set_enabled_cb [0x%X]\n", ret);
- ret = tethering_set_enabled_cb(handle, TETHERING_TYPE_RESERVED,
- _enabled_cb, user_data);
- if (ret != TETHERING_ERROR_NONE)
- ERR("tethering_set_enabled_cb [0x%X]\n", ret);
-
ret = tethering_wifi_set_passphrase_changed_cb(handle,
_passphrase_changed_cb, user_data);
if (ret != TETHERING_ERROR_NONE)
ret = tethering_wifi_set_passphrase_changed_cb(handle,
_passphrase_changed_cb, user_data);
if (ret != TETHERING_ERROR_NONE)
if (ret != TETHERING_ERROR_NONE)
ERR("tethering_set_disabled_cb [0x%X]\n", ret);
if (ret != TETHERING_ERROR_NONE)
ERR("tethering_set_disabled_cb [0x%X]\n", ret);
- ret = tethering_set_disabled_cb(handle, TETHERING_TYPE_RESERVED,
- _disabled_cb, user_data);
- if (ret != TETHERING_ERROR_NONE)
- ERR("tethering_set_disabled_cb [0x%X]\n", ret);
-
ret = tethering_set_connection_state_changed_cb(handle,
TETHERING_TYPE_ALL,
_connection_changed_cb, user_data);
ret = tethering_set_connection_state_changed_cb(handle,
TETHERING_TYPE_ALL,
_connection_changed_cb, user_data);
if (ret != TETHERING_ERROR_NONE)
ERR("tethering_unset_connection_state_changed_cb[0x%X]\n", ret);
if (ret != TETHERING_ERROR_NONE)
ERR("tethering_unset_connection_state_changed_cb[0x%X]\n", ret);
- ret = tethering_unset_disabled_cb(handle, TETHERING_TYPE_RESERVED);
- if (ret != TETHERING_ERROR_NONE)
- ERR("tethering_unset_disabled_cb [0x%X]\n", ret);
-
ret = tethering_unset_disabled_cb(handle, TETHERING_TYPE_ALL);
if (ret != TETHERING_ERROR_NONE)
ERR("tethering_unset_disabled_cb [0x%X]\n", ret);
ret = tethering_unset_disabled_cb(handle, TETHERING_TYPE_ALL);
if (ret != TETHERING_ERROR_NONE)
ERR("tethering_unset_disabled_cb [0x%X]\n", ret);
if (ret != TETHERING_ERROR_NONE)
ERR("tethering_wifi_unset_passphrase_changed_cb [0x%X]\n", ret);
if (ret != TETHERING_ERROR_NONE)
ERR("tethering_wifi_unset_passphrase_changed_cb [0x%X]\n", ret);
- ret = tethering_unset_enabled_cb(handle, TETHERING_TYPE_RESERVED);
- if (ret != TETHERING_ERROR_NONE)
- ERR("tethering_unset_enabled [0x%X]\n", ret);
-
ret = tethering_unset_enabled_cb(handle, TETHERING_TYPE_ALL);
if (ret != TETHERING_ERROR_NONE)
ERR("tethering_unset_enabled [0x%X]\n", ret);
ret = tethering_unset_enabled_cb(handle, TETHERING_TYPE_ALL);
if (ret != TETHERING_ERROR_NONE)
ERR("tethering_unset_enabled [0x%X]\n", ret);
- if (tethering_is_enabled(NULL, TETHERING_TYPE_RESERVED) == true) {
- DBG("MobileAP is turned on\n");
- _prepare_popup(MH_POPUP_WIFI_AP_OFF, STR_WIFI_AP_CONTROLLED_ANOTHER_APP);
- _create_popup(ad);
- }
-
app_control_get_extra_data(app_control, "viewtype", &viewtype);
if (viewtype != NULL) {
app_control_get_extra_data(app_control, "viewtype", &viewtype);
if (viewtype != NULL) {
- case MH_POPUP_WIFI_AP_OFF:
- ret = tethering_disable(ad->handle, TETHERING_TYPE_RESERVED);
- if (ret != TETHERING_ERROR_NONE) {
- ERR("MobileAP off is failed : %d\n", ret);
- }
- break;
-
case MH_POPUP_WIFI_OFF:
ret = tethering_disable(ad->handle, TETHERING_TYPE_WIFI);
if (ret != TETHERING_ERROR_NONE) {
case MH_POPUP_WIFI_OFF:
ret = tethering_disable(ad->handle, TETHERING_TYPE_WIFI);
if (ret != TETHERING_ERROR_NONE) {