3 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * Licensed under the Flora License, Version 1.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://floralicense.org/license/
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
17 #include <setting-network-main-help.h>
19 #define SELECT_NETWORK "<b>1. Select network</b><br>"/*1. Select network*/\
20 "User can select network operator which are supported in "\
21 "current location. Even if you select specific network "\
22 "operator in list, you may not use it, because your SIM card"\
23 " is not verified with it.<br> -Recommend : Select automatic"
25 #define NETWORK_MODE "<b>2. Network mode</b><br>"/*2. Network mode*/\
26 "Network mode list means possible network bands to be "\
27 "attached. According to the condition of current network, "\
28 "phone may be attached or not with user selection."\
29 "<br> -Recommend : Select automatic"
31 #ifdef ENABLED_PREFERRED_NETWORKS
32 #define PERFER_NETWORKS "<b>3. Preferred networks</b><br>"/*3. Preferred networks*/\
33 "User defined network list which is stored in SIM card. "\
34 "If the phone couldn`t be registered with high priority "\
35 "procedure, phone will try to register to network by using "\
36 "user defined network list. The first record indicates the "\
37 "highest priority and the last record indicates the lowest."
39 #define DATA_ROAMING "<b>4. Data roaming setting</b><br>"/*4. Data roaming setting*/\
40 "User can select data roaming availability. If user sets to "\
41 "'OFF', user can not use data service when phone is registered "\
42 "to roaming network (not home network) currently."
44 #define PERFER_NETWORKS ""
45 #define DATA_ROAMING "<b>3. Data roaming setting</b><br>"/*3. Data roaming setting*/\
46 "User can select data roaming availability. If user sets to "\
47 "'OFF', user can not use data service when phone is registered "\
48 "to roaming network (not home network) currently."
51 static int setting_network_main_help_create(void *cb);
52 static int setting_network_main_help_destroy(void *cb);
53 static int setting_network_main_help_update(void *cb);
54 static int setting_network_main_help_cleanup(void *cb);
56 setting_view setting_view_network_main_help = {
57 .create = setting_network_main_help_create,
58 .destroy = setting_network_main_help_destroy,
59 .update = setting_network_main_help_update,
60 .cleanup = setting_network_main_help_cleanup,
63 /* ***************************************************
67 ***************************************************/
69 static int setting_network_main_help_create(void *cb)
71 retv_if(cb == NULL, SETTING_GENERAL_ERR_NULL_DATA_PARAMETER);
73 SettingNetworkUG *ad = (SettingNetworkUG *) cb;
76 setting_push_layout_navi_bar_genlist(ad->win_main_layout,
78 _("IDS_COM_BODY_HELP"),
79 _("IDS_COM_BODY_BACK"),
81 setting_network_main_help_click_back_cb,
86 setting_create_Gendial_field_def(genlist, &itc_multiline_text,
88 ad, SWALLOW_Type_LAYOUT_SPECIALIZTION_X, NULL, NULL,
89 0, SELECT_NETWORK, NULL,
94 setting_create_Gendial_field_def(genlist, &itc_multiline_text,
96 ad, SWALLOW_Type_LAYOUT_SPECIALIZTION_X, NULL, NULL,
97 0, NETWORK_MODE, NULL,
102 #ifdef ENABLED_PREFERRED_NETWORKS
103 setting_create_Gendial_field_def(genlist, &itc_multiline_text,
105 ad, SWALLOW_Type_LAYOUT_SPECIALIZTION_X, NULL, NULL,
106 0, PERFER_NETWORKS, NULL,
111 setting_create_Gendial_field_def(genlist, &itc_multiline_text,
113 ad, SWALLOW_Type_LAYOUT_SPECIALIZTION_X, NULL, NULL,
114 0, DATA_ROAMING, NULL,
117 setting_view_network_main_help.is_create = 1;
120 return SETTING_RETURN_SUCCESS;
123 static int setting_network_main_help_destroy(void *cb)
127 retv_if(cb == NULL, SETTING_GENERAL_ERR_NULL_DATA_PARAMETER);
129 SettingNetworkUG *ad = (SettingNetworkUG *) cb;
130 elm_naviframe_item_pop(ad->navi_bar);
131 setting_view_network_main_help.is_create = 0;
132 return SETTING_RETURN_SUCCESS;
135 static int setting_network_main_help_update(void *cb)
139 retv_if(cb == NULL, SETTING_GENERAL_ERR_NULL_DATA_PARAMETER);
140 return SETTING_RETURN_SUCCESS;
143 static int setting_network_main_help_cleanup(void *cb)
146 return setting_network_main_help_destroy(cb);
149 /* ***************************************************
153 ***************************************************/
155 /* ***************************************************
159 ***************************************************/
162 setting_network_main_help_click_back_cb(void *data, Evas_Object *obj,
167 retm_if(data == NULL, "Data parameter is NULL");
169 SettingNetworkUG *ad = (SettingNetworkUG *) data;
170 setting_view_change(&setting_view_network_main_help,
171 &setting_view_network_main, ad);