static Elm_Genlist_Item_Class itc;
+
+#define __DEV_OPT
+
+#ifndef __DEV_OPT
+
const static struct item items[] = {
//TODO add i18n to display_title fields
#if 0
{ "Factory data reset", setting_reset_factory_reset_clicked, NULL},
};
+#else
+
+#if 0
+const static struct item Item_AllReset;
+const static struct item Item_NetworkReset;
+#endif
+const static struct item Item_ConfigReset = { "Reset initial configuration", setting_reset_initial_config_clicked, NULL};
+const static struct item Item_FactoryReset = { "Factory data reset", setting_reset_factory_reset_clicked, NULL};
+
+#endif
+
static void _dismiss_popup(void *data, Evas_Object *obj, void *event_info)
{
evas_object_del(obj);
setting_create_Gendial_itc(SETTING_GENLIST_ICON_1LINE_STYLE, &itc);
setting_add_back_button(md, _cancel_cb, NULL);
+#ifndef __DEV_OPT
for (int i = 0; i < ARRAY_SIZE(items); ++i) {
const struct item *it = &items[i];
NULL,
NULL);
}
+#else
+ const struct item *it = &Item_ConfigReset;
+ setting_create_Gendial_field_def(
+ md->genlist,
+ &itc,
+ it->select,
+ md,
+ SWALLOW_Type_INVALID,
+ (char*)it->icon,
+ NULL,
+ 0,
+ it->display_title,
+ NULL,
+ NULL);
+
+ int stateDeveloperOption;
+ int err = vconf_get_bool(VCONFKEY_SETAPPL_DEVELOPER_OPTION_STATE, &stateDeveloperOption);
+ if (err != 0) {
+ if(stateDeveloperOption){
+ it = &Item_FactoryReset;
+ setting_create_Gendial_field_def(
+ md->genlist,
+ &itc,
+ it->select,
+ md,
+ SWALLOW_Type_INVALID,
+ (char*)it->icon,
+ NULL,
+ 0,
+ it->display_title,
+ NULL,
+ NULL);
+ }
+ }
+#endif
setting_view_reset.is_create = 1;
evas_object_show(md->window);