Name: ug-setting-mobileap-efl
Summary: Tethering UI Gadget Library
-Version: 0.1.165
+Version: 0.1.166
Release: 1
Group: TO_BE/FILLED_IN
License: Flora License Version 1.0
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(evas)
BuildRequires: pkgconfig(ui-gadget-1)
-BuildRequires: pkgconfig(wifi-direct)
+BuildRequires: pkgconfig(capi-network-wifi-direct)
BuildRequires: pkgconfig(capi-network-tethering)
BuildRequires: pkgconfig(capi-network-connection)
BuildRequires: pkgconfig(capi-network-wifi)
-BuildRequires: pkgconfig(capi-telephony-sim)
BuildRequires: pkgconfig(capi-network-bluetooth)
BuildRequires: pkgconfig(notification)
%if %{with x}
break;
case MH_POP_WIFI_OFF_CONF:
- ret = vconf_set_int(VCONFKEY_MOBILE_HOTSPOT_WIFI_STATE,
- VCONFKEY_MOBILE_HOTSPOT_WIFI_PENDING_OFF);
- if (ret < 0)
- ERR("vconf_set_int() is failed : %d\n", ret);
-
ret = tethering_disable(ad->handle, TETHERING_TYPE_WIFI);
if (ret != TETHERING_ERROR_NONE) {
ERR("wifi tethering off is failed : %d\n", ret);
static bool __is_connected_cellular_net(mh_appdata_t *ad)
{
connection_cellular_state_e cellular_state = CONNECTION_CELLULAR_STATE_OUT_OF_SERVICE;
- sim_state_e sim_state = SIM_STATE_UNAVAILABLE;
int ret;
- /* Check SIM state */
- ret = sim_get_state(&sim_state);
- if (ret != SIM_ERROR_NONE) {
- ERR("sim_get_state() is failed : %d\n", ret);
- _prepare_popup(MH_POP_INFORMATION,
- _("IDS_MOBILEAP_POP_INSERT_SIM_CARD_AND_RESTART_DEVICE_TO_USE_TETHERING"));
- _create_popup(ad);
- return false;
- }
- DBG("SIM State : %d\n", sim_state);
- if (sim_state != SIM_STATE_AVAILABLE) {
- _prepare_popup(MH_POP_INFORMATION,
- _("IDS_MOBILEAP_POP_INSERT_SIM_CARD_AND_RESTART_DEVICE_TO_USE_TETHERING"));
- _create_popup(ad);
- return false;
- }
-
ret = connection_get_cellular_state(ad->conn_handle, &cellular_state);
if (ret != CONNECTION_ERROR_NONE) {
ERR("connection_get_cellular_state() is failed : %d\n");
DBG("TETHERING_DISABLED_IND by LOW_BATTERY\n");
break;
- case TETHERING_DISABLED_BY_MDM_ON:
- DBG("TETHERING_DISABLED_IND by MDM\n");
- break;
-
default:
DBG("TETHERING_DISABLED_IND Default\n");
break;
return;
}
- if (result == TETHERING_ERROR_NONE) {
- int ret = vconf_set_int(
- VCONFKEY_MOBILE_HOTSPOT_WIFI_STATE,
- VCONFKEY_MOBILE_HOTSPOT_WIFI_ON);
- if (ret < 0)
- ERR("vconf_set_int() is failed : %d\n", ret);
- }
-
mh_appdata_t *ad = (mh_appdata_t *)user_data;
ad->main.need_recover_wifi_tethering = false;
_("IDS_MOBILEAP_POP_DISABLING_TETHERING_WILL_PREVENT_LINKED_DEVICES_FROM_ACCESSING_THE_INTERNET_CONTINUE_Q"));
_create_popup(ad);
} else {
- ret = vconf_set_int(
- VCONFKEY_MOBILE_HOTSPOT_WIFI_STATE,
- VCONFKEY_MOBILE_HOTSPOT_WIFI_PENDING_OFF);
- if (ret < 0)
- ERR("vconf_set_int() is failed : %d\n", ret);
-
ret = tethering_disable(ad->handle, TETHERING_TYPE_WIFI);
if (ret != TETHERING_ERROR_NONE) {
ERR("wifi tethering off is failed : %d\n", ret);