Change-Id: Ieb37c1f0c2d50f1fbddb775f1a02c54c81b52889
Signed-off-by: Michal Skorupinski <m.skorupinsk@samsung.com>
void controller_reset_init(t_view_update_cb view_update_cb);
void controller_reset_destroy(void);
void controller_reset_back(void);
void controller_reset_init(t_view_update_cb view_update_cb);
void controller_reset_destroy(void);
void controller_reset_back(void);
-void controller_reset_next();
void controller_reset_discard();
void controller_reset_reset();
void controller_reset_discard();
void controller_reset_reset();
void controller_reset_destroy(void)
{
void controller_reset_destroy(void)
{
-// model_car_connection_end_connection();
+ model_car_connection_end_connection();
s_info.view_update_cb = NULL;
}
s_info.view_update_cb = NULL;
}
controller_reset_destroy();
}
controller_reset_destroy();
}
-void controller_reset_next()
-{
- view_manager_set_view(VIEW_NAME_INPUT);
-}
-
void controller_reset_reset()
{
if(!model_car_connection_is_connected()) {
view_manager_set_view(VIEW_NETWORK_FAILURE);
return;
}
void controller_reset_reset()
{
if(!model_car_connection_is_connected()) {
view_manager_set_view(VIEW_NETWORK_FAILURE);
return;
}
- view_manager_set_view(VIEW_NAME_INPUT);
+
+ view_manager_set_view(VIEW_CAR_SELECTION);
}
void controller_reset_discard()
}
void controller_reset_discard()
elm_genlist_item_select_mode_set(s_info.last, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
}
elm_genlist_item_select_mode_set(s_info.last, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
}
-static void _refresh_button_clicked(void *data, Evas_Object *obj, void *event_info)
+static void _fill_genlist(void)
{
elm_genlist_clear(s_info.genlist);
_create_default_genlist_items();
controller_car_selection_start_get_car_names();
}
{
elm_genlist_clear(s_info.genlist);
_create_default_genlist_items();
controller_car_selection_start_get_car_names();
}
+static void _refresh_button_clicked(void *data, Evas_Object *obj, void *event_info)
+{
+ _fill_genlist();
+}
+
static Evas_Object *_full_content_get_cb(void *data, Evas_Object *obj, const char *part)
{
Evas_Object *button = view_base_create_button(obj, NULL, "Refresh", NULL, "racing_middle", _refresh_button_clicked, NULL);
static Evas_Object *_full_content_get_cb(void *data, Evas_Object *obj, const char *part)
{
Evas_Object *button = view_base_create_button(obj, NULL, "Refresh", NULL, "racing_middle", _refresh_button_clicked, NULL);
static void _show_cb(void)
{
controller_car_selection_init(_controller_car_selection_cb);
static void _show_cb(void)
{
controller_car_selection_init(_controller_car_selection_cb);
- controller_car_selection_start_get_car_names();
}
static void _hide_cb(void)
}
static void _hide_cb(void)