static void _display_auth_type(SettingNetwork * ad, int auth_type);
static void _hide_input_pannel(SettingNetwork *ad);
+static struct setting_network_connection_create_info {
+ connection_profile_h sel_profile_h;
+ Evas_Object *popup_auth_type;
+ Evas_Object *popup_pdn_type;
+ Elm_Object_Item *navi_it;
+ Evas_Object *con_create_gl;
+ Evas_Object *l_button;
+ Evas_Object *r_button;
+ bool has_form_changed;
+ Setting_GenGroupItem_Data *data_srv_type;
+ int is_show_user;
+ Evas_Object *chk_type;
+ Evas_Object *chk_type_pdn;
+ Evas_Object *chk_type_roam_pdn;
+ char *ed_profile_name_desc;
+ char *ed_acs_name_desc;
+ char *ed_auth_type_desc;
+ char *ed_user_name_desc;
+ char *ed_pwd_desc;
+ char *ed_pxy_addr_desc;
+ char *ed_pxy_port_desc;
+ char *ed_pdn_type_desc;
+ char *ed_roam_pdn_type_desc;
+ char *ed_hm_url_desc;
+ int chkType;
+ int chkType_pdn;
+ int chkType_roam_pdn;
+ int srvType;
+ bool is_editable;
+ Elm_Object_Item *item_above_user_name;
+ Elm_Object_Item *item_above_proxy_add;
+ Setting_GenGroupItem_Data *data_user_name;
+ Setting_GenGroupItem_Data *data_pwd;
+ Setting_GenGroupItem_Data *data_acs_name;
+ Setting_GenGroupItem_Data *data_profile_name;
+ Setting_GenGroupItem_Data *data_pxy_addr;
+ Setting_GenGroupItem_Data *data_pxy_port;
+ Setting_GenGroupItem_Data *data_pdn_type;
+ Setting_GenGroupItem_Data *data_roam_pdn_type;
+ Setting_GenGroupItem_Data *data_hm_url;
+ Setting_GenGroupItem_Data *data_auth_type;
+ Evas_Object *scl_edit;
+} s_info = {0,};
+
setting_view setting_network_connection_create_view = {
.create = _view_create,
.destroy = _view_destroy,
*
***************************************************/
+void setting_network_connection_create_terminate(void)
+{
+ G_FREE(s_info.ed_pxy_addr_desc);
+ G_FREE(s_info.ed_pxy_port_desc);
+}
+
static void __sub_list_rd_change(void *data, Evas_Object *obj, void *event_info)
{
SETTING_TRACE_BEGIN;
retm_if(data == NULL, "Data parameter is NULL");
- Setting_GenGroupItem_Data *list_item =
- (Setting_GenGroupItem_Data *)data;
+ Setting_GenGroupItem_Data *list_item = (Setting_GenGroupItem_Data *)data;
list_item->chk_status = elm_radio_value_get(obj); /* for update */
Elm_Object_Item *subItem = list_item->item;
Elm_Object_Item *parentItem = elm_genlist_item_parent_get(subItem);
- Setting_GenGroupItem_Data *data_subItem = elm_object_item_data_get(
- subItem); /* subItem data */
- Setting_GenGroupItem_Data *data_parentItem = elm_object_item_data_get(
- parentItem); /* parent data */
+ Setting_GenGroupItem_Data *data_subItem = elm_object_item_data_get(subItem); /* subItem data */
+ Setting_GenGroupItem_Data *data_parentItem = elm_object_item_data_get(parentItem); /* parent data */
ret_if(NULL == data_subItem || NULL == data_parentItem);
SettingNetwork *ad = data_parentItem->userdata;
- if (data_parentItem == ad->data_auth_type) {
- elm_genlist_item_expanded_set(ad->data_auth_type->item, FALSE);
- elm_genlist_item_update(ad->data_auth_type->item);
-
- _display_auth_type(
- data_parentItem->userdata,
- list_item->chk_status);
- } else if (data_parentItem == ad->data_srv_type) {
- if (ad->srvType != data_subItem->chk_status)
- ad->srvType = data_subItem->chk_status;
- if (ad->srvType != CONNECTION_CELLULAR_SERVICE_TYPE_INTERNET) {
- if (!ad->data_hm_url) {
+ if (data_parentItem == s_info.data_hm_url) {
+ elm_genlist_item_expanded_set(s_info.data_hm_url->item, FALSE);
+ elm_genlist_item_update(s_info.data_hm_url->item);
+
+ _display_auth_type(data_parentItem->userdata, list_item->chk_status);
+ } else if (data_parentItem == s_info.data_srv_type) {
+ if (s_info.srvType != data_subItem->chk_status)
+ s_info.srvType = data_subItem->chk_status;
+ if (s_info.srvType != CONNECTION_CELLULAR_SERVICE_TYPE_INTERNET) {
+ if (!s_info.data_hm_url) {
/* need home url */
- ad->data_hm_url = setting_create_Gendial_field_def(
+ s_info.data_hm_url = setting_create_Gendial_field_def(
obj, &itc_editfield,
NULL, NULL,
SWALLOW_Type_LAYOUT_EDITFIELD,
NULL, NULL, 0,
"IDS_ST_BODY_HOME_URL",
- (char *)ad->ed_hm_url_desc,
+ (char *)s_info.ed_hm_url_desc,
_entry_changed_cb);
- if (ad->data_hm_url) {
- ad->data_hm_url->userdata = ad;
- ad->data_hm_url->input_type = ELM_INPUT_PANEL_LAYOUT_URL;
- ad->data_hm_url->isSinglelineFlag = TRUE;
- ad->data_hm_url->limit_filter_data = calloc(
+ if (s_info.data_hm_url) {
+ s_info.data_hm_url->userdata = ad;
+ s_info.data_hm_url->input_type = ELM_INPUT_PANEL_LAYOUT_URL;
+ s_info.data_hm_url->isSinglelineFlag = TRUE;
+ s_info.data_hm_url->limit_filter_data = calloc(
1,
sizeof(Elm_Entry_Filter_Accept_Set));
- if (ad->data_hm_url->limit_filter_data) {
- ad->data_hm_url->limit_filter_data->max_byte_count = MAX_HOME_URL_LEN_MAX
+ if (s_info.data_hm_url->limit_filter_data) {
+ s_info.data_hm_url->limit_filter_data->max_byte_count = MAX_HOME_URL_LEN_MAX
- 1;
- ad->data_hm_url->window = ad->md.window;
+ s_info.data_hm_url->window = ad->md.window;
}
} else {
SETTING_TRACE_ERROR(
- "ad->data_hm_url is NULL");
+ "s_info.data_hm_url is NULL");
}
}
} else {
/* do need home-url */
- if (ad->data_hm_url) {
- elm_object_item_del(ad->data_hm_url->item);
- ad->data_hm_url = NULL;
+ if (s_info.data_hm_url) {
+ elm_object_item_del(s_info.data_hm_url->item);
+ s_info.data_hm_url = NULL;
}
}
}
int ret;
const char *profile_name = NULL;
- if (ad->data_profile_name)
+ if (s_info.data_profile_name)
profile_name = elm_entry_markup_to_utf8(
- ad->data_profile_name->sub_desc);
+ s_info.data_profile_name->sub_desc);
if (!profile_name)
profile_name = strdup("");
ret = connection_profile_create(
CONNECTION_PROFILE_TYPE_CELLULAR,
- _(profile_name), &ad->sel_profile_h);
+ _(profile_name), &s_info.sel_profile_h);
if (ret == CONNECTION_ERROR_NONE)
ret = connection_profile_set_cellular_service_type(
- ad->sel_profile_h,
+ s_info.sel_profile_h,
CONNECTION_CELLULAR_SERVICE_TYPE_INTERNET);
if (ret != CONNECTION_ERROR_NONE)
data_parentItem->sub_desc = (char *)g_strdup(_(data_subItem->keyStr));
elm_object_item_data_set(data_parentItem->item, data_parentItem);
- if (data_parentItem == ad->data_auth_type) {
- elm_genlist_item_expanded_set(ad->data_auth_type->item, FALSE);
- elm_genlist_item_update(ad->data_auth_type->item);
+ if (data_parentItem == s_info.data_hm_url) {
+ elm_genlist_item_expanded_set(s_info.data_hm_url->item, FALSE);
+ elm_genlist_item_update(s_info.data_hm_url->item);
_display_auth_type(ad, chk_status);
/* remove network mode popup */
- if (ad->popup_auth_type) {
- evas_object_del(ad->popup_auth_type);
- ad->popup_auth_type = NULL;
+ if (s_info.popup_auth_type) {
+ evas_object_del(s_info.popup_auth_type);
+ s_info.popup_auth_type = NULL;
}
- } else if (data_parentItem == ad->data_srv_type) {
- if (ad->srvType != data_subItem->chk_status)
- ad->srvType = data_subItem->chk_status;
- if (ad->srvType != CONNECTION_CELLULAR_SERVICE_TYPE_INTERNET) {
- if (!ad->data_hm_url) {
+ } else if (data_parentItem == s_info.data_srv_type) {
+ if (s_info.srvType != data_subItem->chk_status)
+ s_info.srvType = data_subItem->chk_status;
+ if (s_info.srvType != CONNECTION_CELLULAR_SERVICE_TYPE_INTERNET) {
+ if (!s_info.data_hm_url) {
/* need home url */
- ad->data_hm_url = setting_create_Gendial_field_def(
+ s_info.data_hm_url = setting_create_Gendial_field_def(
obj, &itc_editfield,
NULL, NULL,
SWALLOW_Type_LAYOUT_EDITFIELD,
NULL, NULL, 0,
"IDS_ST_BODY_HOME_URL",
- (char *)ad->ed_hm_url_desc,
+ (char *)s_info.ed_hm_url_desc,
_entry_changed_cb);
- if (ad->data_hm_url) {
- ad->data_hm_url->userdata = ad;
- ad->data_hm_url->input_type = ELM_INPUT_PANEL_LAYOUT_URL;
- ad->data_hm_url->limit_filter_data = calloc(
+ if (s_info.data_hm_url) {
+ s_info.data_hm_url->userdata = ad;
+ s_info.data_hm_url->input_type = ELM_INPUT_PANEL_LAYOUT_URL;
+ s_info.data_hm_url->limit_filter_data = calloc(
1,
sizeof(Elm_Entry_Filter_Accept_Set));
- if (ad->data_hm_url->limit_filter_data) {
- ad->data_hm_url->limit_filter_data->max_byte_count = MAX_HOME_URL_LEN_MAX
+ if (s_info.data_hm_url->limit_filter_data) {
+ s_info.data_hm_url->limit_filter_data->max_byte_count = MAX_HOME_URL_LEN_MAX
- 1;
- ad->data_hm_url->window = ad->md.window;
+ s_info.data_hm_url->window = ad->md.window;
}
} else {
SETTING_TRACE_ERROR(
- "ad->data_hm_url is NULL");
+ "s_info.data_hm_url is NULL");
}
}
} else {
/* do need home-url */
- if (ad->data_hm_url) {
- elm_object_item_del(ad->data_hm_url->item);
- ad->data_hm_url = NULL;
+ if (s_info.data_hm_url) {
+ elm_object_item_del(s_info.data_hm_url->item);
+ s_info.data_hm_url = NULL;
}
}
- } else if (data_parentItem == ad->data_pdn_type) {
- elm_genlist_item_expanded_set(ad->data_pdn_type->item, FALSE);
- elm_genlist_item_update(ad->data_pdn_type->item);
+ } else if (data_parentItem == s_info.data_pdn_type) {
+ elm_genlist_item_expanded_set(s_info.data_pdn_type->item, FALSE);
+ elm_genlist_item_update(s_info.data_pdn_type->item);
- if (!ad->sel_profile_h)
+ if (!s_info.sel_profile_h)
_create_new_cellular_internet_profile(ad);
- ret = connection_profile_set_cellular_pdn_type(
- ad->sel_profile_h,
- chk_status);
+ ret = connection_profile_set_cellular_pdn_type(s_info.sel_profile_h, chk_status);
if (ret != CONNECTION_ERROR_NONE) {
- SETTING_TRACE_ERROR("Fail to set cellular pdn type!"
- " Error code (%d): %s",
- ret, get_error_message(ret));
+ SETTING_TRACE_ERROR("Fail to set cellular pdn type! Error code (%d): %s", ret, get_error_message(ret));
} else {
- ad->chkType_pdn = chk_status;
- connection_update_profile(ad->connection,
- ad->sel_profile_h);
+ s_info.chkType_pdn = chk_status;
+ connection_update_profile(ad->connection, s_info.sel_profile_h);
}
/* remove network mode popup */
- if (ad->popup_pdn_type) {
- evas_object_del(ad->popup_pdn_type);
- ad->popup_pdn_type = NULL;
+ if (s_info.popup_pdn_type) {
+ evas_object_del(s_info.popup_pdn_type);
+ s_info.popup_pdn_type = NULL;
}
- } else if (data_parentItem == ad->data_roam_pdn_type) {
- elm_genlist_item_expanded_set(ad->data_roam_pdn_type->item,
- FALSE);
- elm_genlist_item_update(ad->data_roam_pdn_type->item);
+ } else if (data_parentItem == s_info.data_roam_pdn_type) {
+ elm_genlist_item_expanded_set(s_info.data_roam_pdn_type->item, FALSE);
+ elm_genlist_item_update(s_info.data_roam_pdn_type->item);
- if (!ad->sel_profile_h)
+ if (!s_info.sel_profile_h)
_create_new_cellular_internet_profile(ad);
- ret = connection_profile_set_cellular_roam_pdn_type(
- ad->sel_profile_h,
- chk_status);
+ ret = connection_profile_set_cellular_roam_pdn_type(s_info.sel_profile_h, chk_status);
if (ret != CONNECTION_ERROR_NONE) {
- SETTING_TRACE_ERROR("Fail to set cellular roam pdn "
- "type: %s", get_error_message(ret));
+ SETTING_TRACE_ERROR("Fail to set cellular roam pdn type: %s", get_error_message(ret));
} else {
- ad->chkType_roam_pdn = chk_status;
- connection_update_profile(ad->connection,
- ad->sel_profile_h);
+ s_info.chkType_roam_pdn = chk_status;
+ connection_update_profile(ad->connection, s_info.sel_profile_h);
}
/* remove network mode popup */
- if (ad->popup_pdn_type) {
- evas_object_del(ad->popup_pdn_type);
- ad->popup_pdn_type = NULL;
+ if (s_info.popup_pdn_type) {
+ evas_object_del(s_info.popup_pdn_type);
+ s_info.popup_pdn_type = NULL;
}
}
}
static void __popup_del(void *data, Evas_Object *obj, void *event_info)
{
- SettingNetwork *ad = data;
-
ret_if(data == NULL);
- if (ad->popup_auth_type) {
- evas_object_del(ad->popup_auth_type);
- ad->popup_auth_type = NULL;
- } else if (ad->popup_pdn_type) {
- evas_object_del(ad->popup_pdn_type);
- ad->popup_auth_type = NULL;
+ if (s_info.popup_auth_type) {
+ evas_object_del(s_info.popup_auth_type);
+ s_info.popup_auth_type = NULL;
+ } else if (s_info.popup_pdn_type) {
+ evas_object_del(s_info.popup_pdn_type);
+ s_info.popup_auth_type = NULL;
}
}
parentItem); /* parent data */
/* create popup */
- if (ad->popup_auth_type) {
- evas_object_del(ad->popup_auth_type);
- ad->popup_auth_type = NULL;
+ if (s_info.popup_auth_type) {
+ evas_object_del(s_info.popup_auth_type);
+ s_info.popup_auth_type = NULL;
}
Evas_Object *scroller = NULL;
- ad->popup_auth_type = setting_create_popup_with_list(&scroller, ad,
+ s_info.popup_auth_type = setting_create_popup_with_list(&scroller, ad,
ad->md.window, data_parentItem->keyStr, __popup_del, 0,
false, false, 0);
- _P(ad->popup_auth_type);
+ _P(s_info.popup_auth_type);
Evas_Object *rgd;
- if (data_parentItem == ad->data_auth_type) {
+ if (data_parentItem == s_info.data_hm_url) {
rgd = elm_radio_add(scroller);
elm_radio_value_set(rgd, -1);
"IDS_ST_BODY_NONE",
NULL);
- elm_radio_value_set(rgd, ad->chkType);
+ elm_radio_value_set(rgd, s_info.chkType);
elm_object_signal_emit(rgd, "elm,event,pass,enabled", "elm");
- } else if (data_parentItem == ad->data_srv_type) {
+ } else if (data_parentItem == s_info.data_srv_type) {
rgd = elm_radio_add(scroller);
elm_radio_value_set(rgd, -1);
CONNECTION_CELLULAR_SERVICE_TYPE_APPLICATION,
tmp_str, __sub_list_rd_change);
- elm_radio_value_set(rgd, ad->srvType);
+ elm_radio_value_set(rgd, s_info.srvType);
elm_object_signal_emit(rgd, "elm,event,pass,enabled", "elm");
}
}
ret_if(NULL == data_parentItem);
/* create popup */
- if (ad->popup_pdn_type) {
- evas_object_del(ad->popup_pdn_type);
- ad->popup_pdn_type = NULL;
+ if (s_info.popup_pdn_type) {
+ evas_object_del(s_info.popup_pdn_type);
+ s_info.popup_pdn_type = NULL;
}
Evas_Object *scroller = NULL;
- ad->popup_pdn_type = setting_create_popup_with_list(&scroller, ad,
+ s_info.popup_pdn_type = setting_create_popup_with_list(&scroller, ad,
ad->md.window, data_parentItem->keyStr, __popup_del, 0,
false, false, 0);
- _P(ad->popup_pdn_type);
+ _P(s_info.popup_pdn_type);
Evas_Object *rgd;
- if (data_parentItem == ad->data_pdn_type) {
+ if (data_parentItem == s_info.data_pdn_type) {
rgd = elm_radio_add(scroller);
elm_radio_value_set(rgd, -1);
"IPv6",
NULL);
- elm_radio_value_set(rgd, ad->chkType_pdn);
+ elm_radio_value_set(rgd, s_info.chkType_pdn);
elm_object_signal_emit(rgd, "elm,event,pass,enabled", "elm");
- } else if (data_parentItem == ad->data_roam_pdn_type) {
+ } else if (data_parentItem == s_info.data_roam_pdn_type) {
rgd = elm_radio_add(scroller);
elm_radio_value_set(rgd, -1);
CONNECTION_CELLULAR_PDN_TYPE_IPV6, "IPv6",
NULL);
- elm_radio_value_set(rgd, ad->chkType_roam_pdn);
+ elm_radio_value_set(rgd, s_info.chkType_roam_pdn);
elm_object_signal_emit(rgd, "elm,event,pass,enabled", "elm");
}
Evas_Object *rgd;
- if (data_parentItem == ad->data_auth_type) {
+ if (data_parentItem == s_info.data_hm_url) {
rgd = elm_radio_add(scroller);
/* elm_object_style_set(rgd, "list"); */
elm_radio_value_set(rgd, -1);
IDS_ST_POP_CHAP, __sub_list_rd_change);
SETTING_TRACE(
- " ---------------------->>> ad->chkType : %d ",
- ad->chkType);
+ " ---------------------->>> s_info.chkType : %d ",
+ s_info.chkType);
- elm_radio_value_set(rgd, ad->chkType);
- } else if (data_parentItem == ad->data_srv_type) {
+ elm_radio_value_set(rgd, s_info.chkType);
+ } else if (data_parentItem == s_info.data_srv_type) {
rgd = elm_radio_add(scroller);
elm_radio_value_set(rgd, -1);
CONNECTION_CELLULAR_SERVICE_TYPE_APPLICATION,
tmp_str, __sub_list_rd_change);
- elm_radio_value_set(rgd, ad->srvType);
+ elm_radio_value_set(rgd, s_info.srvType);
}
}
SETTING_TRACE_BEGIN;
retv_if(!data, FALSE);
SettingNetwork *ad = data;
- /* __genlist_disable_set(ad->scl_edit, TRUE); */
_hide_input_pannel(ad);
return FALSE;
}
SettingNetwork *ad = (SettingNetwork *)cb;
ret_if(!ad);
- G_FREE(ad->ed_profile_name_desc);
- G_FREE(ad->ed_acs_name_desc);
- G_FREE(ad->ed_user_name_desc);
- G_FREE(ad->ed_pwd_desc);
- G_FREE(ad->ed_pxy_addr_desc);
- G_FREE(ad->ed_pxy_port_desc);
- G_FREE(ad->ed_hm_url_desc);
+ G_FREE(s_info.ed_profile_name_desc);
+ G_FREE(s_info.ed_acs_name_desc);
+ G_FREE(s_info.ed_user_name_desc);
+ G_FREE(s_info.ed_pwd_desc);
+ G_FREE(s_info.ed_pxy_addr_desc);
+ G_FREE(s_info.ed_pxy_port_desc);
+ G_FREE(s_info.ed_hm_url_desc);
- ad->ed_auth_type_desc = NULL;
- ad->ed_pdn_type_desc = NULL;
- ad->ed_roam_pdn_type_desc = NULL;
- ad->chkType = CONNECTION_CELLULAR_AUTH_TYPE_NONE;
- ad->chkType_pdn = CONNECTION_CELLULAR_PDN_TYPE_UNKNOWN;
+ s_info.ed_auth_type_desc = NULL;
+ s_info.ed_pdn_type_desc = NULL;
+ s_info.ed_roam_pdn_type_desc = NULL;
+ s_info.chkType = CONNECTION_CELLULAR_AUTH_TYPE_NONE;
+ s_info.chkType_pdn = CONNECTION_CELLULAR_PDN_TYPE_UNKNOWN;
SETTING_TRACE("ad->con_name:%s, ad->profile_service_type:%d",
ad->con_name, ad->profile_service_type);
/* match with ServiceType */
if (selected_service_type == service_type
&& safeStrCmp(con_name_utf8, profile_id) == 0) {
- ad->sel_profile_h = profile_h;
+ s_info.sel_profile_h = profile_h;
found = TRUE;
break;
}
cnt++;
}
FREE(con_name_utf8);
- ad->is_editable = TRUE;
+ s_info.is_editable = TRUE;
if (found) { /* found sucessfully */
SETTING_TRACE("found the following record:");
SETTING_TRACE("\tapn:%s", apn);
SETTING_TRACE("\tprofile_name:%s", profile_name);
SETTING_TRACE("\tservice_type:%d", service_type);
SETTING_TRACE("\tprofile_type:%d", profile_type);
- ad->srvType = service_type;
- ad->ed_profile_name_desc = profile_name;
+ s_info.srvType = service_type;
+ s_info.ed_profile_name_desc = profile_name;
- connection_profile_is_cellular_editable(ad->sel_profile_h,
- &(ad->is_editable));
- SETTING_TRACE("ad->is_editable:%d", ad->is_editable);
+ connection_profile_is_cellular_editable(s_info.sel_profile_h,
+ &(s_info.is_editable));
+ SETTING_TRACE("s_info.is_editable:%d", s_info.is_editable);
/* load access name */
- connection_profile_get_cellular_apn(ad->sel_profile_h,
- &(ad->ed_acs_name_desc));
+ connection_profile_get_cellular_apn(s_info.sel_profile_h,
+ &(s_info.ed_acs_name_desc));
connection_cellular_auth_type_e auth_type =
CONNECTION_CELLULAR_AUTH_TYPE_NONE;
- connection_profile_get_cellular_auth_info(ad->sel_profile_h,
- &auth_type, &(ad->ed_user_name_desc),
- &(ad->ed_pwd_desc));
+ connection_profile_get_cellular_auth_info(s_info.sel_profile_h,
+ &auth_type, &(s_info.ed_user_name_desc),
+ &(s_info.ed_pwd_desc));
SETTING_TRACE(" ----> auth_type: (%d)", auth_type);
- ad->chkType = auth_type;
+ s_info.chkType = auth_type;
/*SETTING_TRACE("-----> radio button state: %d",
- * elm_radio_value_get(ad->chk_type));*/
+ * elm_radio_value_get(s_info.chk_type));*/
SETTING_TRACE(
"-------------> connection_profile_get_cellular"
"_auth_info: %d",
auth_type);
- elm_radio_value_set(ad->chk_type, ad->chkType);
+ elm_radio_value_set(s_info.chk_type, s_info.chkType);
- switch (ad->chkType) {
+ switch (s_info.chkType) {
case CONNECTION_CELLULAR_AUTH_TYPE_NONE:
- ad->ed_auth_type_desc = _("IDS_ST_BODY_NONE");
+ s_info.ed_auth_type_desc = _("IDS_ST_BODY_NONE");
break;
case CONNECTION_CELLULAR_AUTH_TYPE_PAP:
- ad->ed_auth_type_desc = _("IDS_ST_MBODY_PAP");
+ s_info.ed_auth_type_desc = _("IDS_ST_MBODY_PAP");
break;
case CONNECTION_CELLULAR_AUTH_TYPE_CHAP:
- ad->ed_auth_type_desc = _("IDS_ST_POP_CHAP");
+ s_info.ed_auth_type_desc = _("IDS_ST_POP_CHAP");
break;
default:
- ad->chkType = CONNECTION_CELLULAR_AUTH_TYPE_NONE;
- ad->ed_auth_type_desc = _("IDS_ST_BODY_NONE");
+ s_info.chkType = CONNECTION_CELLULAR_AUTH_TYPE_NONE;
+ s_info.ed_auth_type_desc = _("IDS_ST_BODY_NONE");
break;
}
connection_cellular_pdn_type_e pdn_type;
if (CONNECTION_ERROR_NONE
!= connection_profile_get_cellular_pdn_type(
- ad->sel_profile_h, &pdn_type)) {
+ s_info.sel_profile_h, &pdn_type)) {
SETTING_TRACE_ERROR("Fail to get cellular pdn type!\n");
} else {
- ad->chkType_pdn = pdn_type;
+ s_info.chkType_pdn = pdn_type;
SETTING_TRACE("Cellular pdn type : %d\n", pdn_type);
- elm_radio_value_set(ad->chk_type_pdn, ad->chkType_pdn);
+ elm_radio_value_set(s_info.chk_type_pdn, s_info.chkType_pdn);
- switch (ad->chkType_pdn) {
+ switch (s_info.chkType_pdn) {
case CONNECTION_CELLULAR_PDN_TYPE_IPV4:
- ad->ed_pdn_type_desc = _("IPv4");
+ s_info.ed_pdn_type_desc = _("IPv4");
break;
case CONNECTION_CELLULAR_PDN_TYPE_IPV6:
- ad->ed_pdn_type_desc = _("IPv6");
+ s_info.ed_pdn_type_desc = _("IPv6");
break;
case CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPv6:
- ad->ed_pdn_type_desc = _("IPv4v6");
+ s_info.ed_pdn_type_desc = _("IPv4v6");
break;
default:
- ad->chkType_pdn = CONNECTION_CELLULAR_PDN_TYPE_UNKNOWN;
- ad->ed_pdn_type_desc = _("Unknown");
+ s_info.chkType_pdn = CONNECTION_CELLULAR_PDN_TYPE_UNKNOWN;
+ s_info.ed_pdn_type_desc = _("Unknown");
}
}
connection_cellular_pdn_type_e roam_pdn_type;
if (CONNECTION_ERROR_NONE
!= connection_profile_get_cellular_roam_pdn_type(
- ad->sel_profile_h,
+ s_info.sel_profile_h,
&roam_pdn_type)) {
SETTING_TRACE_ERROR("Fail to get cellular pdn type!\n");
} else {
- ad->chkType_roam_pdn = roam_pdn_type;
+ s_info.chkType_roam_pdn = roam_pdn_type;
SETTING_TRACE("Cellular roam pdn type : %d\n",
roam_pdn_type);
- elm_radio_value_set(ad->chk_type_roam_pdn,
- ad->chkType_roam_pdn);
+ elm_radio_value_set(s_info.chk_type_roam_pdn,
+ s_info.chkType_roam_pdn);
- switch (ad->chkType_roam_pdn) {
+ switch (s_info.chkType_roam_pdn) {
case CONNECTION_CELLULAR_PDN_TYPE_IPV4:
- ad->ed_roam_pdn_type_desc = _("IPv4");
+ s_info.ed_roam_pdn_type_desc = _("IPv4");
break;
case CONNECTION_CELLULAR_PDN_TYPE_IPV6:
- ad->ed_roam_pdn_type_desc = _("IPv6");
+ s_info.ed_roam_pdn_type_desc = _("IPv6");
break;
case CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPv6:
- ad->ed_roam_pdn_type_desc = _("IPv4v6");
+ s_info.ed_roam_pdn_type_desc = _("IPv4v6");
break;
default:
- ad->chkType_roam_pdn =
+ s_info.chkType_roam_pdn =
CONNECTION_CELLULAR_PDN_TYPE_UNKNOWN;
- ad->ed_roam_pdn_type_desc = _("Unknown");
+ s_info.ed_roam_pdn_type_desc = _("Unknown");
}
}
/* Fix the Port 'NULL' issue when enter connection view
* repeatly.. */
- connection_profile_get_proxy_address(ad->sel_profile_h,
+ connection_profile_get_proxy_address(s_info.sel_profile_h,
CONNECTION_ADDRESS_FAMILY_IPV4, &full_addr);
SETTING_TRACE("full_addr: %s", full_addr);
safeCopyStr(ProxyAddr, full_addr, MAX_HOME_URL_LEN_MAX);
addr = strsep(&addr, "/");
}
- ad->ed_pxy_addr_desc = NULL;
+ s_info.ed_pxy_addr_desc = NULL;
/* proxy address support not only ip but also url, need not
* check the format */
if (!isEmptyStr(addr)) {
- ad->ed_pxy_addr_desc = g_strdup(addr);
+ s_info.ed_pxy_addr_desc = g_strdup(addr);
port = strsep(&full_addr, "/");
} else { /* invalid format,let addr and port to be NULL. */
addr = NULL;
}
SETTING_TRACE("addr:%s", addr);
SETTING_TRACE("port:%s", port);
- SETTING_TRACE("ad->ed_pxy_addr_desc:%s", ad->ed_pxy_addr_desc);
- ad->ed_pxy_port_desc = g_strdup(port);
+ SETTING_TRACE("s_info.ed_pxy_addr_desc:%s", s_info.ed_pxy_addr_desc);
+ s_info.ed_pxy_port_desc = g_strdup(port);
/* Message Connection */
if (!safeStrCmp(ad->con_name, STR_SETTING_MMS_CONNECTIONS))
connection_profile_get_cellular_home_url(
- ad->sel_profile_h,
- &(ad->ed_hm_url_desc));
+ s_info.sel_profile_h,
+ &(s_info.ed_hm_url_desc));
} else {
SETTING_TRACE("Didn't find any record, to let add a new one:");
- ad->sel_profile_h = NULL;
- ad->ed_auth_type_desc = _("IDS_ST_BODY_NONE");
- ad->chkType = CONNECTION_CELLULAR_AUTH_TYPE_NONE;
- ad->srvType = CONNECTION_CELLULAR_SERVICE_TYPE_INTERNET;
+ s_info.sel_profile_h = NULL;
+ s_info.ed_auth_type_desc = _("IDS_ST_BODY_NONE");
+ s_info.chkType = CONNECTION_CELLULAR_AUTH_TYPE_NONE;
+ s_info.srvType = CONNECTION_CELLULAR_SERVICE_TYPE_INTERNET;
}
/* release the memory.. */
SETTING_TRACE_BEGIN;
retm_if(data == NULL, "Data parameter is NULL");
- Setting_GenGroupItem_Data *list_item =
- (Setting_GenGroupItem_Data *)data;
- SettingNetwork *ad = list_item->userdata;
+ Setting_GenGroupItem_Data *list_item = (Setting_GenGroupItem_Data *)data;
Evas_Object *pObj_NextEntry = NULL;
- if (list_item == ad->data_profile_name) {
+ if (list_item == s_info.data_profile_name) {
/* Profile name -> Access name */
- if (ad->data_acs_name)
- pObj_NextEntry = ad->data_acs_name->eo_check;
- } else if (list_item == ad->data_user_name) {
+ if (s_info.data_acs_name)
+ pObj_NextEntry = s_info.data_acs_name->eo_check;
+ } else if (list_item == s_info.data_user_name) {
/* User name -> Password */
- if (ad->data_pwd)
- pObj_NextEntry = ad->data_pwd->eo_check;
- } else if (list_item == ad->data_pwd) {
+ if (s_info.data_pwd)
+ pObj_NextEntry = s_info.data_pwd->eo_check;
+ } else if (list_item == s_info.data_pwd) {
/* Password -> Proxy address */
- if (ad->data_pxy_addr)
- pObj_NextEntry = ad->data_pxy_addr->eo_check;
- } else if (list_item == ad->data_pxy_addr) {
+ if (s_info.data_pxy_addr)
+ pObj_NextEntry = s_info.data_pxy_addr->eo_check;
+ } else if (list_item == s_info.data_pxy_addr) {
/* Proxy address -> Proxy port */
- if (ad->data_pxy_port)
- pObj_NextEntry = ad->data_pxy_port->eo_check;
- } else if (list_item == ad->data_pxy_port) {
+ if (s_info.data_pxy_port)
+ pObj_NextEntry = s_info.data_pxy_port->eo_check;
+ } else if (list_item == s_info.data_pxy_port) {
/* Proxy port -> Home URL */
- if (ad->data_hm_url)
- pObj_NextEntry = ad->data_hm_url->eo_check;
+ if (s_info.data_hm_url)
+ pObj_NextEntry = s_info.data_hm_url->eo_check;
} else {
SETTING_TRACE_ERROR("list_item unknown");
return;
SETTING_TRACE_BEGIN;
ret_if(cb == NULL);
- SettingNetwork *ad = (SettingNetwork *)cb;
-
/* connection intializes */
- ad->data_profile_name = NULL;
- ad->data_acs_name = NULL;
- ad->data_auth_type = NULL;
- ad->data_user_name = NULL;
- ad->data_pwd = NULL;
- ad->data_pxy_addr = NULL;
- ad->data_pxy_port = NULL;
- ad->data_hm_url = NULL;
+ s_info.data_profile_name = NULL;
+ s_info.data_acs_name = NULL;
+ s_info.data_hm_url = NULL;
+ s_info.data_user_name = NULL;
+ s_info.data_pwd = NULL;
+ s_info.data_pxy_addr = NULL;
+ s_info.data_pxy_port = NULL;
+ s_info.data_hm_url = NULL;
}
/* ////////////////////////////////////////////////////////////////////////// */
ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
evas_object_smart_callback_add(genlist, "realized", __gl_realized_cb,
NULL);
- ad->con_create_gl = genlist;
+ s_info.con_create_gl = genlist;
_init_context(ad);
rbtn = setting_create_button(ad->md.naviframe,
_("IDS_MSG_ACBUTTON_DONE_ABB"), "naviframe/title_right",
_click_softkey_done_cb, ad);
- ad->navi_it = elm_naviframe_item_push(ad->md.naviframe,
+ s_info.navi_it = elm_naviframe_item_push(ad->md.naviframe,
_(title), NULL, NULL, genlist, NULL);
- elm_object_item_part_content_set(ad->navi_it, "title_left_btn", lbtn);
- elm_object_item_part_content_set(ad->navi_it, "title_right_btn", rbtn);
- elm_naviframe_item_pop_cb_set(ad->navi_it, _naviframe_item_pop_cb, ad);
+ elm_object_item_part_content_set(s_info.navi_it, "title_left_btn", lbtn);
+ elm_object_item_part_content_set(s_info.navi_it, "title_right_btn", rbtn);
+ elm_naviframe_item_pop_cb_set(s_info.navi_it, _naviframe_item_pop_cb, ad);
evas_object_data_set(ad->md.naviframe, "sip.naviframe.title_obj", "*");
- ad->has_form_changed = FALSE;
+ s_info.has_form_changed = FALSE;
setting_enable_expandable_genlist(genlist, ad,
__setting_network_connection_exp_cb,
/* new a profile,need to select the "Service type" */
if (!safeStrCmp(STR_SETTING_NEW_CONNECTIONS, ad->con_name)) {
- ad->data_srv_type = setting_create_Gendial_exp_parent_field(
+ s_info.data_srv_type = setting_create_Gendial_exp_parent_field(
genlist, &itc_2text_3_parent,
NULL, NULL, SWALLOW_Type_INVALID,
_("IDS_MSGF_BODY_SERVICE_TYPE"),
_("IDS_ST_BODY_INTERNET_CONNECTION"));
- if (ad->data_srv_type) {
- ad->data_srv_type->userdata = ad;
- __BACK_POINTER_SET(ad->data_srv_type);
+ if (s_info.data_srv_type) {
+ s_info.data_srv_type->userdata = ad;
+ __BACK_POINTER_SET(s_info.data_srv_type);
} else {
- SETTING_TRACE_ERROR("ad->data_auth_type is NULL");
+ SETTING_TRACE_ERROR("s_info.data_hm_url is NULL");
}
}
- ad->ed_profile_name_desc = elm_entry_utf8_to_markup(
- ad->ed_profile_name_desc);
- ad->ed_acs_name_desc = elm_entry_utf8_to_markup(ad->ed_acs_name_desc);
- SETTING_TRACE("name :%s", ad->ed_profile_name_desc);
- SETTING_TRACE("apn :%s", ad->ed_acs_name_desc);
+ s_info.ed_profile_name_desc = elm_entry_utf8_to_markup(
+ s_info.ed_profile_name_desc);
+ s_info.ed_acs_name_desc = elm_entry_utf8_to_markup(s_info.ed_acs_name_desc);
+ SETTING_TRACE("name :%s", s_info.ed_profile_name_desc);
+ SETTING_TRACE("apn :%s", s_info.ed_acs_name_desc);
/* [UI] Profile name */
- if (!isEmptyStr(ad->ed_profile_name_desc)) {
+ if (!isEmptyStr(s_info.ed_profile_name_desc)) {
/* Display */
- ad->data_profile_name = setting_create_Gendial_field_def(
+ s_info.data_profile_name = setting_create_Gendial_field_def(
genlist, &itc_multiline_2text,
NULL, ad, SWALLOW_Type_INVALID,
NULL,
NULL, 0, /* chk_status*/
"IDS_ST_BODY_PROFILE_NAME",
- (char *)ad->ed_profile_name_desc, /* sub_desk*/
+ (char *)s_info.ed_profile_name_desc, /* sub_desk*/
NULL);
} else {
/* Editor */
- ad->data_profile_name = setting_create_Gendial_field_entry_with_return_key(
+ s_info.data_profile_name = setting_create_Gendial_field_entry_with_return_key(
genlist, &itc_editfield, NULL, ad,
SWALLOW_Type_LAYOUT_EDITFIELD,
NULL, NULL, 0, "IDS_ST_BODY_PROFILE_NAME",
- (char *)ad->ed_profile_name_desc,
+ (char *)s_info.ed_profile_name_desc,
_entry_changed_cb,
__network_max_len_reached,
ELM_INPUT_PANEL_LAYOUT_NORMAL,
NULL);
}
- if (ad->data_profile_name) {
- __BACK_POINTER_SET(ad->data_profile_name);
- ad->data_profile_name->userdata = ad;
- ad->data_profile_name->window = ad->md.window;
- ad->data_profile_name->isSinglelineFlag = TRUE;
+ if (s_info.data_profile_name) {
+ __BACK_POINTER_SET(s_info.data_profile_name);
+ s_info.data_profile_name->userdata = ad;
+ s_info.data_profile_name->window = ad->md.window;
+ s_info.data_profile_name->isSinglelineFlag = TRUE;
/* there is no CAPI to set profile name,so disable it: */
- /* setting_disable_genlist_item(ad->data_profile_name->item); */
+ /* setting_disable_genlist_item(s_info.data_profile_name->item); */
/* not create(first time) */
- if (!isEmptyStr(ad->ed_profile_name_desc)) {
- elm_genlist_item_select_mode_set(
- ad->data_profile_name->item,
- ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
-
+ if (!isEmptyStr(s_info.ed_profile_name_desc)) {
+ elm_genlist_item_select_mode_set(s_info.data_profile_name->item, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
/* setting_disable_genlist_item(
- * ad->data_profile_name->item); */
+ * s_info.data_profile_name->item); */
}
} else {
- SETTING_TRACE_ERROR("ad->data_profile_name is NULL");
+ SETTING_TRACE_ERROR("s_info.data_profile_name is NULL");
}
/* [UI] Access point name */
- ad->data_acs_name = setting_create_Gendial_field_entry_with_return_key(
+ s_info.data_acs_name = setting_create_Gendial_field_entry_with_return_key(
genlist, &itc_editfield, NULL, ad,
SWALLOW_Type_LAYOUT_EDITFIELD,
NULL, NULL, 0, "IDS_DLNA_BODY_ACCESS_POINT_NAME",
- (char *)ad->ed_acs_name_desc,
+ (char *)s_info.ed_acs_name_desc,
_entry_changed_cb,
__network_max_len_reached,
ELM_INPUT_PANEL_LAYOUT_NORMAL,
FALSE, FALSE, 64, 64, NULL, NULL,
ELM_INPUT_PANEL_RETURN_KEY_TYPE_DONE, NULL, NULL);
- if (ad->data_acs_name) {
- __BACK_POINTER_SET(ad->data_acs_name);
- ad->data_acs_name->userdata = ad;
- ad->data_acs_name->isSinglelineFlag = TRUE;
- ad->data_acs_name->window = ad->md.window;
+ if (s_info.data_acs_name) {
+ __BACK_POINTER_SET(s_info.data_acs_name);
+ s_info.data_acs_name->userdata = ad;
+ s_info.data_acs_name->isSinglelineFlag = TRUE;
+ s_info.data_acs_name->window = ad->md.window;
} else {
- SETTING_TRACE_ERROR("ad->data_acs_name is NULL");
+ SETTING_TRACE_ERROR("s_info.data_acs_name is NULL");
}
/* [UI] Authentication type */
- ad->data_auth_type = setting_create_Gendial_field_def(genlist,
+ s_info.data_hm_url = setting_create_Gendial_field_def(genlist,
&itc_2text_3_parent, __create_auth_type_popup, ad,
SWALLOW_Type_INVALID,
NULL, NULL, 0, "IDS_ST_BODY_AUTH_TYPE",
- (char *)ad->ed_auth_type_desc, NULL);
- if (ad->data_auth_type) {
- ad->data_auth_type->userdata = ad;
- __BACK_POINTER_SET(ad->data_auth_type);
+ (char *)s_info.ed_auth_type_desc, NULL);
+ if (s_info.data_hm_url) {
+ s_info.data_hm_url->userdata = ad;
+ __BACK_POINTER_SET(s_info.data_hm_url);
- ad->item_above_user_name = ad->data_auth_type->item;
+ s_info.item_above_user_name = s_info.data_hm_url->item;
} else {
- SETTING_TRACE_ERROR("ad->data_auth_type is NULL");
+ SETTING_TRACE_ERROR("s_info.data_hm_url is NULL");
}
- ad->is_show_user = 0;
- if (CONNECTION_CELLULAR_AUTH_TYPE_NONE != ad->chkType) {
+ s_info.is_show_user = 0;
+ if (CONNECTION_CELLULAR_AUTH_TYPE_NONE != s_info.chkType) {
/* [UI] User ID */
- ad->data_user_name = setting_create_Gendial_field_entry_with_return_key(
+ s_info.data_user_name = setting_create_Gendial_field_entry_with_return_key(
genlist, &itc_editfield,
NULL, ad, SWALLOW_Type_LAYOUT_EDITFIELD,
NULL, NULL, 0,
- KeyStr_UserID, (char *)ad->ed_user_name_desc,
+ KeyStr_UserID, (char *)s_info.ed_user_name_desc,
_entry_changed_cb,
__network_max_len_reached,
ELM_INPUT_PANEL_LAYOUT_NORMAL,
ELM_INPUT_PANEL_RETURN_KEY_TYPE_NEXT,
_entry_next_activated_cb,
NULL);
- if (ad->data_user_name) {
- __BACK_POINTER_SET(ad->data_user_name);
- ad->data_user_name->userdata = ad;
- ad->data_user_name->isSinglelineFlag = TRUE;
- ad->data_user_name->window = ad->md.window;
+ if (s_info.data_user_name) {
+ __BACK_POINTER_SET(s_info.data_user_name);
+ s_info.data_user_name->userdata = ad;
+ s_info.data_user_name->isSinglelineFlag = TRUE;
+ s_info.data_user_name->window = ad->md.window;
} else {
- SETTING_TRACE_ERROR("ad->data_user_name is NULL");
+ SETTING_TRACE_ERROR("s_info.data_user_name is NULL");
}
/* [UI] Password */
- ad->data_pwd = setting_create_Gendial_field_entry_with_return_key(
+ s_info.data_pwd = setting_create_Gendial_field_entry_with_return_key(
genlist, &itc_editfield,
NULL, ad, SWALLOW_Type_LAYOUT_EDITFIELD,
NULL, NULL, 0, "IDS_ST_BODY_PASSWORD",
- (char *)ad->ed_pwd_desc,
+ (char *)s_info.ed_pwd_desc,
_entry_changed_cb,
__network_max_len_reached,
ELM_INPUT_PANEL_LAYOUT_NORMAL,
ELM_INPUT_PANEL_RETURN_KEY_TYPE_NEXT,
_entry_next_activated_cb,
NULL);
- if (ad->data_pwd) {
- __BACK_POINTER_SET(ad->data_pwd);
- ad->data_pwd->userdata = ad;
- ad->data_pwd->window = ad->md.window;
- ad->data_pwd->isSinglelineFlag = TRUE;
- ad->is_show_user = 1;
-
- ad->item_above_proxy_add = ad->data_pwd->item;
+ if (s_info.data_pwd) {
+ __BACK_POINTER_SET(s_info.data_pwd);
+ s_info.data_pwd->userdata = ad;
+ s_info.data_pwd->window = ad->md.window;
+ s_info.data_pwd->isSinglelineFlag = TRUE;
+ s_info.is_show_user = 1;
+
+ s_info.item_above_proxy_add = s_info.data_pwd->item;
} else {
- SETTING_TRACE_ERROR("ad->data_pwd is NULL");
+ SETTING_TRACE_ERROR("s_info.data_pwd is NULL");
}
}
/* [UI] Proxy address */
- ad->data_pxy_addr = setting_create_Gendial_field_entry_with_return_key(
+ s_info.data_pxy_addr = setting_create_Gendial_field_entry_with_return_key(
genlist, &itc_editfield, NULL, ad,
SWALLOW_Type_LAYOUT_EDITFIELD,
NULL, NULL, 0,
"IDS_ST_BODY_CONNECTIONSETTINGS_PROXY_ADDRESS",
- (char *)ad->ed_pxy_addr_desc,
+ (char *)s_info.ed_pxy_addr_desc,
_entry_changed_cb,
__network_max_len_reached, ELM_INPUT_PANEL_LAYOUT_URL,
FALSE, FALSE, 512, 512, NULL, NULL,
ELM_INPUT_PANEL_RETURN_KEY_TYPE_NEXT,
_entry_next_activated_cb,
NULL);
- if (ad->data_pxy_addr) {
- __BACK_POINTER_SET(ad->data_pxy_addr);
- ad->data_pxy_addr->userdata = ad;
- ad->data_pxy_addr->isSinglelineFlag = TRUE;
- ad->data_pxy_addr->window = ad->md.window;
+ if (s_info.data_pxy_addr) {
+ __BACK_POINTER_SET(s_info.data_pxy_addr);
+ s_info.data_pxy_addr->userdata = ad;
+ s_info.data_pxy_addr->isSinglelineFlag = TRUE;
+ s_info.data_pxy_addr->window = ad->md.window;
} else {
- SETTING_TRACE_ERROR("ad->data_pxy_addr is NULL");
+ SETTING_TRACE_ERROR("s_info.data_pxy_addr is NULL");
}
/* Set SIP key on Next or Done if Home URL existed or not below. */
}
/* [UI] Proxy port */
- ad->data_pxy_port = setting_create_Gendial_field_entry_with_return_key(
+ s_info.data_pxy_port = setting_create_Gendial_field_entry_with_return_key(
genlist, &itc_editfield, NULL, ad,
SWALLOW_Type_LAYOUT_EDITFIELD,
NULL, NULL, 0, "IDS_ST_BODY_PROXY_PORT",
- (char *)ad->ed_pxy_port_desc,
+ (char *)s_info.ed_pxy_port_desc,
_entry_changed_cb,
__network_max_len_reached,
ELM_INPUT_PANEL_LAYOUT_NUMBERONLY,
FALSE, FALSE, 0, 5, "0123456789", NULL, type, cbFunc,
NULL);
- if (ad->data_pxy_port) {
- ad->data_pxy_port->userdata = ad;
- ad->data_pxy_port->isSinglelineFlag = TRUE;
- __BACK_POINTER_SET(ad->data_pxy_port);
- ad->data_pxy_port->window = ad->md.window;
+ if (s_info.data_pxy_port) {
+ s_info.data_pxy_port->userdata = ad;
+ s_info.data_pxy_port->isSinglelineFlag = TRUE;
+ __BACK_POINTER_SET(s_info.data_pxy_port);
+ s_info.data_pxy_port->window = ad->md.window;
} else {
- SETTING_TRACE_ERROR("ad->data_pxy_port is NULL");
+ SETTING_TRACE_ERROR("s_info.data_pxy_port is NULL");
}
/* if current view is "MMS connection" */
/* mms Connection */
if (!safeStrCmp(ad->con_name, STR_SETTING_MMS_CONNECTIONS)) {
/* [UI] Home URL */
- ad->data_hm_url = setting_create_Gendial_field_entry_with_return_key(
+ s_info.data_hm_url = setting_create_Gendial_field_entry_with_return_key(
genlist, &itc_editfield,
NULL, ad, SWALLOW_Type_LAYOUT_EDITFIELD,
NULL, NULL, 0, "IDS_ST_BODY_HOME_URL",
- (char *)ad->ed_hm_url_desc,
+ (char *)s_info.ed_hm_url_desc,
_entry_changed_cb,
__network_max_len_reached,
ELM_INPUT_PANEL_LAYOUT_URL,
FALSE, FALSE, 0, 521, NULL, NULL,
ELM_INPUT_PANEL_RETURN_KEY_TYPE_DONE, NULL,
NULL);
- if (ad->data_hm_url) {
- __BACK_POINTER_SET(ad->data_hm_url);
- ad->data_hm_url->userdata = ad;
- ad->data_hm_url->isSinglelineFlag = TRUE;
- ad->data_hm_url->window = ad->md.window;
- ad->data_hm_url->return_key_type = ELM_INPUT_PANEL_RETURN_KEY_TYPE_DONE;
+ if (s_info.data_hm_url) {
+ __BACK_POINTER_SET(s_info.data_hm_url);
+ s_info.data_hm_url->userdata = ad;
+ s_info.data_hm_url->isSinglelineFlag = TRUE;
+ s_info.data_hm_url->window = ad->md.window;
+ s_info.data_hm_url->return_key_type = ELM_INPUT_PANEL_RETURN_KEY_TYPE_DONE;
} else {
- SETTING_TRACE_ERROR("ad->data_hm_url is NULL");
+ SETTING_TRACE_ERROR("s_info.data_hm_url is NULL");
}
}
/* [UI] APN protocol */
- ad->data_pdn_type = setting_create_Gendial_field_def(genlist,
+ s_info.data_pdn_type = setting_create_Gendial_field_def(genlist,
&itc_2text_3_parent, __create_pdn_type_popup, ad,
SWALLOW_Type_INVALID,
NULL, NULL, 0, "APN protocol",
- (char *)ad->ed_pdn_type_desc, NULL);
- if (ad->data_pdn_type)
- ad->data_pdn_type->userdata = ad;
+ (char *)s_info.ed_pdn_type_desc, NULL);
+ if (s_info.data_pdn_type)
+ s_info.data_pdn_type->userdata = ad;
else
- SETTING_TRACE_ERROR("ad->data_pdn_type is NULL");
+ SETTING_TRACE_ERROR("s_info.data_pdn_type is NULL");
/* [UI] APN roaming protocol */
- ad->data_roam_pdn_type = setting_create_Gendial_field_def(genlist,
+ s_info.data_roam_pdn_type = setting_create_Gendial_field_def(genlist,
&itc_2text_3_parent, __create_pdn_type_popup, ad,
SWALLOW_Type_INVALID,
NULL, NULL, 0, "APN roaming protocol",
- (char *)ad->ed_roam_pdn_type_desc, NULL);
- if (ad->data_roam_pdn_type)
- ad->data_roam_pdn_type->userdata = ad;
+ (char *)s_info.ed_roam_pdn_type_desc, NULL);
+ if (s_info.data_roam_pdn_type)
+ s_info.data_roam_pdn_type->userdata = ad;
else
- SETTING_TRACE_ERROR("ad->data_roam_pdn_type is NULL");
+ SETTING_TRACE_ERROR("s_info.data_roam_pdn_type is NULL");
setting_network_connection_create_view.is_create = 1;
- ad->scl_edit = genlist;
+ s_info.scl_edit = genlist;
- SETTING_TRACE("==> ad->is_editable:%d", ad->is_editable);
- if (!ad->is_editable) {
- if (ad->data_srv_type)
- setting_disable_genlist_item(ad->data_srv_type->item);
- if (ad->data_profile_name)
+ SETTING_TRACE("==> s_info.is_editable:%d", s_info.is_editable);
+ if (!s_info.is_editable) {
+ if (s_info.data_srv_type)
+ setting_disable_genlist_item(s_info.data_srv_type->item);
+ if (s_info.data_profile_name)
setting_disable_genlist_item(
- ad->data_profile_name->item);
- if (ad->data_acs_name)
- setting_disable_genlist_item(ad->data_acs_name->item);
- if (ad->data_auth_type)
- setting_disable_genlist_item(ad->data_auth_type->item);
- if (ad->data_user_name)
- setting_disable_genlist_item(ad->data_user_name->item);
- if (ad->data_pwd)
- setting_disable_genlist_item(ad->data_pwd->item);
- if (ad->data_pxy_addr)
- setting_disable_genlist_item(ad->data_pxy_addr->item);
- if (ad->data_pxy_port)
- setting_disable_genlist_item(ad->data_pxy_port->item);
- if (ad->data_hm_url)
- setting_disable_genlist_item(ad->data_hm_url->item);
+ s_info.data_profile_name->item);
+ if (s_info.data_acs_name)
+ setting_disable_genlist_item(s_info.data_acs_name->item);
+ if (s_info.data_hm_url)
+ setting_disable_genlist_item(s_info.data_hm_url->item);
+ if (s_info.data_user_name)
+ setting_disable_genlist_item(s_info.data_user_name->item);
+ if (s_info.data_pwd)
+ setting_disable_genlist_item(s_info.data_pwd->item);
+ if (s_info.data_pxy_addr)
+ setting_disable_genlist_item(s_info.data_pxy_addr->item);
+ if (s_info.data_pxy_port)
+ setting_disable_genlist_item(s_info.data_pxy_port->item);
+ if (s_info.data_hm_url)
+ setting_disable_genlist_item(s_info.data_hm_url->item);
}
ecore_idler_add(__connection_idler, ad);
SettingNetwork *ad = (SettingNetwork *)cb;
evas_object_data_set(ad->md.naviframe, "sip.naviframe.title_obj", NULL);
- ad->navi_it = NULL;
+ s_info.navi_it = NULL;
/* manager separatly, */
- if (ad->l_button) {
- evas_object_del(ad->l_button);
- ad->l_button = NULL;
+ if (s_info.l_button) {
+ evas_object_del(s_info.l_button);
+ s_info.l_button = NULL;
}
/* if (ad->m_button)
{
evas_object_del(ad->m_button);
ad->m_button = NULL;
}*/
- if (ad->r_button) {
- evas_object_del(ad->r_button);
- ad->r_button = NULL;
+ if (s_info.r_button) {
+ evas_object_del(s_info.r_button);
+ s_info.r_button = NULL;
}
/* FREE(ad->con_name); */
- G_FREE(ad->ed_profile_name_desc);
- G_FREE(ad->ed_acs_name_desc);
- G_FREE(ad->ed_user_name_desc);
- G_FREE(ad->ed_pwd_desc);
+ G_FREE(s_info.ed_profile_name_desc);
+ G_FREE(s_info.ed_acs_name_desc);
+ G_FREE(s_info.ed_user_name_desc);
+ G_FREE(s_info.ed_pwd_desc);
- G_FREE(ad->ed_pxy_addr_desc);
- G_FREE(ad->ed_pxy_port_desc);
+ G_FREE(s_info.ed_pxy_addr_desc);
+ G_FREE(s_info.ed_pxy_port_desc);
- G_FREE(ad->ed_hm_url_desc);
+ G_FREE(s_info.ed_hm_url_desc);
elm_naviframe_item_pop(ad->md.naviframe);
/* error check */
retv_if(!ad, SETTING_GENERAL_ERR_NULL_DATA_PARAMETER);
- profile_name = (ad->data_profile_name) ? elm_entry_markup_to_utf8(
- ad->data_profile_name->sub_desc) : strdup("");
+ profile_name = (s_info.data_profile_name) ? elm_entry_markup_to_utf8(
+ s_info.data_profile_name->sub_desc) : strdup("");
SETTING_TRACE("profile_name:%s", acs_name);
- acs_name = (ad->data_acs_name) ? elm_entry_markup_to_utf8(
- ad->data_acs_name->sub_desc) : strdup("");
+ acs_name = (s_info.data_acs_name) ? elm_entry_markup_to_utf8(
+ s_info.data_acs_name->sub_desc) : strdup("");
SETTING_TRACE("acs_name:%s", acs_name);
- usr_name = (ad->data_user_name) ? elm_entry_markup_to_utf8(
- ad->data_user_name->sub_desc) : strdup("");
+ usr_name = (s_info.data_user_name) ? elm_entry_markup_to_utf8(
+ s_info.data_user_name->sub_desc) : strdup("");
SETTING_TRACE("usr_name:%s", usr_name);
- pwd = (ad->data_pwd) ? elm_entry_markup_to_utf8(
- ad->data_pwd->sub_desc) : strdup("");
+ pwd = (s_info.data_pwd) ? elm_entry_markup_to_utf8(
+ s_info.data_pwd->sub_desc) : strdup("");
SETTING_TRACE("pwd:%s", pwd);
- addr = (ad->data_pxy_addr) ? elm_entry_markup_to_utf8(
- ad->data_pxy_addr->sub_desc) : strdup("");
+ addr = (s_info.data_pxy_addr) ? elm_entry_markup_to_utf8(
+ s_info.data_pxy_addr->sub_desc) : strdup("");
SETTING_TRACE("addr:%s", addr);
- port = (ad->data_pxy_port) ? elm_entry_markup_to_utf8(
- ad->data_pxy_port->sub_desc) : strdup("");
+ port = (s_info.data_pxy_port) ? elm_entry_markup_to_utf8(
+ s_info.data_pxy_port->sub_desc) : strdup("");
SETTING_TRACE("port:%s", port);
if (!safeStrCmp(profile_name, "")) {
return SETTING_DNET_RETURN_NULL_ACCESS_NAME;
}
- if (ad->sel_profile_h) {
- con_info = ad->sel_profile_h;
+ if (s_info.sel_profile_h) {
+ con_info = s_info.sel_profile_h;
} else {
if (!safeStrCmp(ad->con_name, STR_SETTING_MMS_CONNECTIONS)) {
(void)connection_profile_create(
CONNECTION_PROFILE_TYPE_CELLULAR,
_(profile_name), &con_info);
if (CONNECTION_CELLULAR_SERVICE_TYPE_INTERNET
- == ad->srvType) {
+ == s_info.srvType) {
/* Internet */
(void)connection_profile_set_cellular_service_type(
con_info,
CONNECTION_CELLULAR_SERVICE_TYPE_INTERNET);
} else if (CONNECTION_CELLULAR_SERVICE_TYPE_MMS
- == ad->srvType) {
+ == s_info.srvType) {
/* MMS */
(void)connection_profile_set_cellular_service_type(
con_info,
FREE(acs_name);
/* save auth type */
- type = ad->chkType;
+ type = s_info.chkType;
SETTING_TRACE("-----> auth type: %d", type);
SETTING_TRACE("-----> radio button state: %d",
- elm_radio_value_get(ad->chk_type));
+ elm_radio_value_get(s_info.chk_type));
(void)connection_profile_set_cellular_auth_info(con_info, type,
usr_name, pwd);
|| (!safeStrCmp(ad->con_name,
STR_SETTING_NEW_CONNECTIONS)
&& CONNECTION_CELLULAR_SERVICE_TYPE_MMS
- == ad->srvType)) {
- home = elm_entry_markup_to_utf8(ad->data_hm_url->sub_desc);
+ == s_info.srvType)) {
+ home = elm_entry_markup_to_utf8(s_info.data_hm_url->sub_desc);
if (home == (char *)NULL) {
(void)connection_profile_set_cellular_home_url(
con_info, URL_HEAD);
}
if (con_info_2) { /* creating both internet + MMS */
- home = elm_entry_markup_to_utf8(ad->data_hm_url->sub_desc);
+ home = elm_entry_markup_to_utf8(s_info.data_hm_url->sub_desc);
if (home == (char *)NULL) {
(void)connection_profile_set_cellular_home_url(
con_info_2, URL_HEAD);
/* error check */
retvm_if(!ad, EINA_TRUE, "Data parameter is NULL");
- elm_object_tree_focus_allow_set(ad->con_create_gl, EINA_FALSE);
+ elm_object_tree_focus_allow_set(s_info.con_create_gl, EINA_FALSE);
SETTING_TRACE("ad->con_name: %s", ad->con_name);
setting_view_destroy(&setting_network_connection_create_view, ad);
setting_view_update(&setting_view_network_con, ad);
SETTING_FONT_RED, SETTING_FONT_BLACK);
}
- elm_object_tree_focus_allow_set(ad->con_create_gl, EINA_FALSE);
+ elm_object_tree_focus_allow_set(s_info.con_create_gl, EINA_FALSE);
setting_create_popup(ad, ad->md.window, NULL, KeyStr_Saved,
__save_response_cb, 1, FALSE, FALSE, 0);
static void _check_entry_empty(SettingNetwork *ad)
{
SETTING_TRACE_BEGIN;
- if (!ad->has_form_changed) {
- SETTING_TRACE_DEBUG("ad->has_form_changed == FALSE!");
+ if (!s_info.has_form_changed) {
+ SETTING_TRACE_DEBUG("s_info.has_form_changed == FALSE!");
return;
}
bool isFoundEmptyEntry = FALSE;
do {
- if (ad->data_profile_name
- && isEmptyStr(ad->data_profile_name->sub_desc)) {
+ if (s_info.data_profile_name
+ && isEmptyStr(s_info.data_profile_name->sub_desc)) {
/* SETTING_TRACE("entry_str:%s",
- * ad->data_profile_name->sub_desc); */
+ * s_info.data_profile_name->sub_desc); */
isFoundEmptyEntry = TRUE;
break;
}
- if (ad->data_acs_name
- && isEmptyStr(ad->data_acs_name->sub_desc)) {
+ if (s_info.data_acs_name
+ && isEmptyStr(s_info.data_acs_name->sub_desc)) {
/* SETTING_TRACE("entry_str:%s",
- * ad->data_acs_name->sub_desc); */
+ * s_info.data_acs_name->sub_desc); */
isFoundEmptyEntry = TRUE;
break;
}
- if (ad->data_user_name
- && isEmptyStr(ad->data_user_name->sub_desc)) {
+ if (s_info.data_user_name
+ && isEmptyStr(s_info.data_user_name->sub_desc)) {
/* SETTING_TRACE("entry_str:%s",
- * ad->data_user_name->sub_desc); */
+ * s_info.data_user_name->sub_desc); */
isFoundEmptyEntry = TRUE;
break;
}
- if (ad->data_pwd && isEmptyStr(ad->data_pwd->sub_desc)) {
+ if (s_info.data_pwd && isEmptyStr(s_info.data_pwd->sub_desc)) {
/* SETTING_TRACE("entry_str:%s",
- * ad->data_pwd->sub_desc); */
+ * s_info.data_pwd->sub_desc); */
isFoundEmptyEntry = TRUE;
break;
}
- if (ad->data_hm_url && isEmptyStr(ad->data_hm_url->sub_desc)) {
+ if (s_info.data_hm_url && isEmptyStr(s_info.data_hm_url->sub_desc)) {
/* SETTING_TRACE("entry_str:%s",
- * ad->data_hm_url->sub_desc); */
+ * s_info.data_hm_url->sub_desc); */
isFoundEmptyEntry = TRUE;
break;
}
} while (0);
- Evas_Object *done_btn = elm_object_item_part_content_get(ad->navi_it,
+ Evas_Object *done_btn = elm_object_item_part_content_get(s_info.navi_it,
NAVI_BTN_STYLE_LEFT);
if (isFoundEmptyEntry) {
/* it had not yet been disabled */
{
SETTING_TRACE_BEGIN;
retm_if(ad == NULL, "Data parameter is NULL");
- if (ad->chkType == auth_type)
+ if (s_info.chkType == auth_type)
return;
- ad->chkType = auth_type; /* for update genlist */
+ s_info.chkType = auth_type; /* for update genlist */
if (CONNECTION_CELLULAR_AUTH_TYPE_NONE != auth_type) { /* to show */
- SETTING_TRACE("ad->is_show_user:%d", ad->is_show_user);
- if (ad->is_show_user == 0) { /* do only when hiden */
+ SETTING_TRACE("s_info.is_show_user:%d", s_info.is_show_user);
+ if (s_info.is_show_user == 0) { /* do only when hiden */
SETTING_TRACE("to create");
- ad->data_user_name = (Setting_GenGroupItem_Data *)calloc(
+ s_info.data_user_name = (Setting_GenGroupItem_Data *)calloc(
1, sizeof(Setting_GenGroupItem_Data));
- setting_retm_if(ad->data_user_name == NULL,
+ setting_retm_if(s_info.data_user_name == NULL,
"calloc failed");
- ad->data_user_name->keyStr = (char *)g_strdup(
+ s_info.data_user_name->keyStr = (char *)g_strdup(
KeyStr_UserID);
- ad->data_user_name->sub_desc = (char *)g_strdup(
- ad->ed_user_name_desc);
- ad->data_user_name->swallow_type =
+ s_info.data_user_name->sub_desc = (char *)g_strdup(
+ s_info.ed_user_name_desc);
+ s_info.data_user_name->swallow_type =
SWALLOW_Type_LAYOUT_EDITFIELD;
- ad->data_user_name->isSinglelineFlag = TRUE;
- ad->data_user_name->userdata = ad;
+ s_info.data_user_name->isSinglelineFlag = TRUE;
+ s_info.data_user_name->userdata = ad;
- ad->data_user_name->return_key_type =
+ s_info.data_user_name->return_key_type =
ELM_INPUT_PANEL_RETURN_KEY_TYPE_NEXT;
- ad->data_user_name->activated_cb =
+ s_info.data_user_name->activated_cb =
_entry_next_activated_cb;
- ad->data_user_name->maxlength_reached_cb =
+ s_info.data_user_name->maxlength_reached_cb =
__network_max_len_reached;
- ad->data_user_name->disable_auto_cap = EINA_TRUE;
+ s_info.data_user_name->disable_auto_cap = EINA_TRUE;
- __BACK_POINTER_SET(ad->data_user_name);
+ __BACK_POINTER_SET(s_info.data_user_name);
- ad->data_user_name->chk_change_cb =
+ s_info.data_user_name->chk_change_cb =
_entry_changed_cb;
- ad->data_user_name->limit_filter_data = calloc(1,
+ s_info.data_user_name->limit_filter_data = calloc(1,
sizeof(Elm_Entry_Filter_Accept_Set));
- if (ad->data_user_name->limit_filter_data) {
- ad->data_user_name->limit_filter_data->max_byte_count =
+ if (s_info.data_user_name->limit_filter_data) {
+ s_info.data_user_name->limit_filter_data->max_byte_count =
MAX_PDP_AUTH_USERNAME_LEN_MAX;
- ad->data_user_name->window = ad->md.window;
+ s_info.data_user_name->window = ad->md.window;
}
- ad->data_user_name->item = elm_genlist_item_insert_after(
- ad->scl_edit, &itc_editfield,
- ad->data_user_name,
- NULL, ad->item_above_user_name,
+ s_info.data_user_name->item = elm_genlist_item_insert_after(
+ s_info.scl_edit, &itc_editfield,
+ s_info.data_user_name,
+ NULL, s_info.item_above_user_name,
ELM_GENLIST_ITEM_NONE,
NULL, ad);
- ad->data_pwd = (Setting_GenGroupItem_Data *)calloc(1,
+ s_info.data_pwd = (Setting_GenGroupItem_Data *)calloc(1,
sizeof(Setting_GenGroupItem_Data));
- setting_retm_if(ad->data_pwd == NULL, "calloc failed");
- ad->data_pwd->keyStr = (char *)g_strdup(
+ setting_retm_if(s_info.data_pwd == NULL, "calloc failed");
+ s_info.data_pwd->keyStr = (char *)g_strdup(
"IDS_ST_BODY_PASSWORD");
- ad->data_pwd->sub_desc = (char *)g_strdup(
- ad->ed_pwd_desc);
- ad->data_pwd->swallow_type =
+ s_info.data_pwd->sub_desc = (char *)g_strdup(
+ s_info.ed_pwd_desc);
+ s_info.data_pwd->swallow_type =
SWALLOW_Type_LAYOUT_EDITFIELD;
- ad->data_pwd->userdata = ad;
- ad->data_pwd->chk_change_cb =
+ s_info.data_pwd->userdata = ad;
+ s_info.data_pwd->chk_change_cb =
_entry_changed_cb;
- ad->data_pwd->isPasswordFlag = TRUE;
- ad->data_pwd->isSinglelineFlag = TRUE;
+ s_info.data_pwd->isPasswordFlag = TRUE;
+ s_info.data_pwd->isSinglelineFlag = TRUE;
- ad->data_pwd->return_key_type =
+ s_info.data_pwd->return_key_type =
ELM_INPUT_PANEL_RETURN_KEY_TYPE_NEXT;
- ad->data_pwd->activated_cb =
+ s_info.data_pwd->activated_cb =
_entry_next_activated_cb;
- ad->data_pwd->maxlength_reached_cb =
+ s_info.data_pwd->maxlength_reached_cb =
__network_max_len_reached;
- ad->data_pwd->disable_auto_cap = EINA_TRUE;
+ s_info.data_pwd->disable_auto_cap = EINA_TRUE;
- __BACK_POINTER_SET(ad->data_pwd);
+ __BACK_POINTER_SET(s_info.data_pwd);
- /* ad->data_pwd->chk_change_cb = chk_change_cb; */
- ad->data_pwd->limit_filter_data = calloc(1,
- sizeof(Elm_Entry_Filter_Accept_Set));
- if (ad->data_pwd->limit_filter_data) {
- ad->data_pwd->limit_filter_data->max_byte_count =
- MAX_PDP_AUTH_PASSWORD_LEN_MAX;
- ad->data_pwd->window = ad->md.window;
+ /* s_info.data_pwd->chk_change_cb = chk_change_cb; */
+ s_info.data_pwd->limit_filter_data = calloc(1, sizeof(Elm_Entry_Filter_Accept_Set));
+ if (s_info.data_pwd->limit_filter_data) {
+ s_info.data_pwd->limit_filter_data->max_byte_count = MAX_PDP_AUTH_PASSWORD_LEN_MAX;
+ s_info.data_pwd->window = ad->md.window;
}
- ad->data_pwd->item = elm_genlist_item_insert_after(
- ad->scl_edit, &itc_editfield,
- ad->data_pwd, NULL,
- ad->data_user_name->item,
+ s_info.data_pwd->item = elm_genlist_item_insert_after(
+ s_info.scl_edit, &itc_editfield,
+ s_info.data_pwd, NULL,
+ s_info.data_user_name->item,
ELM_GENLIST_ITEM_NONE,
NULL, ad);
- ad->item_above_proxy_add = ad->data_pwd->item;
- /* item = st_item_insert_after(ad->scl_edit,
- &itc_seperator,
- NULL, NULL,
- ad->data_pwd->item,
- ELM_GENLIST_ITEM_NONE,
- NULL, NULL);
- elm_genlist_item_select_mode_set
- (item , ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);*/
-
- ad->has_form_changed = TRUE;
+ s_info.item_above_proxy_add = s_info.data_pwd->item;
+ s_info.has_form_changed = TRUE;
_check_entry_empty(ad);
elm_genlist_item_select_mode_set(
- ad->data_user_name->item,
+ s_info.data_user_name->item,
ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
- elm_genlist_item_select_mode_set(ad->data_pwd->item,
+ elm_genlist_item_select_mode_set(s_info.data_pwd->item,
ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
- /* ad->is_show_user = 1; */
+ /* s_info.is_show_user = 1; */
}
- ad->is_show_user = 1;
+ s_info.is_show_user = 1;
} else { /* to hide */
- SETTING_TRACE("ad->is_show_user:%d", ad->is_show_user);
- if (ad->is_show_user == 1) { /* do only when shown */
+ SETTING_TRACE("s_info.is_show_user:%d", s_info.is_show_user);
+ if (s_info.is_show_user == 1) { /* do only when shown */
SETTING_TRACE("to destroy");
- if (ad->data_user_name) {
- elm_object_item_del(ad->data_user_name->item);
- ad->data_user_name = NULL;
+ if (s_info.data_user_name) {
+ elm_object_item_del(s_info.data_user_name->item);
+ s_info.data_user_name = NULL;
}
- if (ad->data_pwd) {
- elm_object_item_del(ad->data_pwd->item);
- ad->data_pwd = NULL;
+ if (s_info.data_pwd) {
+ elm_object_item_del(s_info.data_pwd->item);
+ s_info.data_pwd = NULL;
}
- if (ad->item_above_proxy_add) {
- elm_object_item_del(ad->item_above_proxy_add);
- ad->item_above_proxy_add = NULL;
+ if (s_info.item_above_proxy_add) {
+ elm_object_item_del(s_info.item_above_proxy_add);
+ s_info.item_above_proxy_add = NULL;
}
}
- ad->has_form_changed = TRUE;
+ s_info.has_form_changed = TRUE;
_check_entry_empty(ad);
- ad->is_show_user = 0;
+ s_info.is_show_user = 0;
}
}
list_item->enterKeyPressFlag = FALSE;
/* G_FREE(list_item->sub_desc);//release first */
list_item->sub_desc = (char *)g_strdup(entry_str);
- ad->has_form_changed = TRUE;
+ s_info.has_form_changed = TRUE;
_check_entry_empty(ad);
}
static void _hide_input_pannel(SettingNetwork *ad)
{
SETTING_TRACE_BEGIN;
- if (ad->data_profile_name && ad->data_profile_name->eo_check)
- setting_hide_input_pannel_cb(ad->data_profile_name->eo_check);
+ if (s_info.data_profile_name && s_info.data_profile_name->eo_check)
+ setting_hide_input_pannel_cb(s_info.data_profile_name->eo_check);
- if (ad->data_acs_name && ad->data_acs_name->eo_check)
- setting_hide_input_pannel_cb(ad->data_acs_name->eo_check);
+ if (s_info.data_acs_name && s_info.data_acs_name->eo_check)
+ setting_hide_input_pannel_cb(s_info.data_acs_name->eo_check);
- if (ad->data_user_name && ad->data_user_name->eo_check)
- setting_hide_input_pannel_cb(ad->data_user_name->eo_check);
+ if (s_info.data_user_name && s_info.data_user_name->eo_check)
+ setting_hide_input_pannel_cb(s_info.data_user_name->eo_check);
- if (ad->data_pwd && ad->data_pwd->eo_check)
- setting_hide_input_pannel_cb(ad->data_pwd->eo_check);
+ if (s_info.data_pwd && s_info.data_pwd->eo_check)
+ setting_hide_input_pannel_cb(s_info.data_pwd->eo_check);
- if (ad->data_pxy_addr && ad->data_pxy_addr->eo_check)
- setting_hide_input_pannel_cb(ad->data_pxy_addr->eo_check);
+ if (s_info.data_pxy_addr && s_info.data_pxy_addr->eo_check)
+ setting_hide_input_pannel_cb(s_info.data_pxy_addr->eo_check);
- if (ad->data_pxy_port && ad->data_pxy_port->eo_check)
- setting_hide_input_pannel_cb(ad->data_pxy_port->eo_check);
+ if (s_info.data_pxy_port && s_info.data_pxy_port->eo_check)
+ setting_hide_input_pannel_cb(s_info.data_pxy_port->eo_check);
- if (ad->data_hm_url && ad->data_hm_url->eo_check)
- setting_hide_input_pannel_cb(ad->data_hm_url->eo_check);
+ if (s_info.data_hm_url && s_info.data_hm_url->eo_check)
+ setting_hide_input_pannel_cb(s_info.data_hm_url->eo_check);
}