//Initialize ui_app. ui_app initializes basic resources including ui_viewmgr internally.
ret = ui_application_init(PACKAGE, LOCALE_DIR);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_app_init() is failed, ret = %d", ret);
return 0;
//Run ui_app. Now it requests to run an application mainloop.
ret = ui_application_run(argc, argv, events, 2, NULL);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_app_run() is failed, ret = %d", ret);
return 0;
//Terminate ui_app. Remove all ui_app resources.
ret = ui_application_term();
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_app_term() is failed ret = %d", ret);
return 0;
{
//FIXME: deactivate??? or ui_app deactivate??? or ui_viewmgr pop???
int ret = ui_viewmgr_pop_view();
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_pop_view() is failed. err = %d", ret);
}
//Set Main Content
ret = ui_view_set_content(view, content);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_content() is failed. err = %d", ret);
ui_view_destroy(view);
//Set View Load callback.
ret = ui_view_set_event_cb(view, UI_VIEW_EVENT_LOAD, view1_load_cb, NULL);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_event_cb() is failed. err = %d", ret);
ui_view_destroy(view);
//Push view.
ret = ui_viewmgr_push_view(view);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_push_view() is failed. err = %d", ret);
ui_view_destroy(view);
prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
int ret = ui_viewmgr_pop_view();
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_pop_view() is failed. err = %d", ret);
}
ret = ui_view_set_indicator(view, UI_VIEW_INDICATOR_OPTIMAL);
}
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_indicator() is failed. err = %d", ret);
}
//Set Main Content
ret = ui_view_set_content(view, content);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_content() is failed. err = %d", ret);
ui_view_destroy(view);
//Set View Load callback.
ret = ui_view_set_event_cb(view, UI_VIEW_EVENT_LOAD, view10_load_cb, NULL);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_event_cb() is failed. err = %d", ret);
ui_view_destroy(view);
//Set Rotation callback.
ret = ui_view_set_event_cb(view, UI_VIEW_EVENT_ROTATE, view10_rotate_cb, NULL);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_event_cb() is failed. err = %d", ret);
}
//Push view.
ret = ui_viewmgr_push_view(view);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_push_view() is failed. err = %d", ret);
ui_view_destroy(view);
prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
int ret = ui_viewmgr_pop_view();
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_pop_view() is failed. err = %d", ret);
}
//Set Main Content
ret = ui_view_set_content(view, content);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_content() is failed. err = %d", ret);
ui_view_destroy(view);
elm_ctxpopup_item_append(ctxpopup, "Dialer", NULL, ctxpopup_item_select_cb, NULL);
ret = ui_menu_set_content(menu, ctxpopup);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_menu_set_content() is failed. err = %d", ret);
return false;
//Set View Load callback.
ret = ui_view_set_event_cb(view, UI_VIEW_EVENT_LOAD, view11_load_cb, NULL);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_event_cb() is failed. err = %d", ret);
ui_view_destroy(view);
//Set Menu callback.
ret = ui_view_set_event_cb(view, UI_VIEW_EVENT_MENU, view11_menu_cb, NULL);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_event_cb() is failed. err = %d", ret);
}
//Push view.
ret = ui_viewmgr_push_view(view);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_push_view() is failed. err = %d", ret);
ui_view_destroy(view);
prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
int ret = ui_viewmgr_pop_view();
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_pop_view() is failed. err = %d", ret);
}
ui_popup *popup = (ui_popup *) data;
ret = ui_popup_destroy(popup);
- if (!ret != TIZEN_ERROR_NONE)
+ if (!ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_popup_destroy() is failed. err = %d", ret);
}
//Set elm popup as a ui_popup content.
ret = ui_popup_set_content(popup, content);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_popup_set_content() is failed. err = %d", ret);
ui_popup_destroy(popup);
}
ret = ui_popup_activate(popup);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_popup_activate() is failed. err = %d", ret);
ui_popup_destroy(popup);
//Set Main Content
ret = ui_view_set_content(view, content);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_content() is failed. err = %d", ret);
ui_view_destroy(view);
//Set View Load callback.
ret = ui_view_set_event_cb(view, UI_VIEW_EVENT_LOAD, view12_load_cb, NULL);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_event_cb() is failed. err = %d", ret);
ui_view_destroy(view);
//Push view.
ret = ui_viewmgr_push_view(view);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_push_view() is failed. err = %d", ret);
ui_view_destroy(view);
prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
int ret = ui_viewmgr_pop_view();
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_pop_view() is failed. err = %d", ret);
}
//Set Main Content
ret = ui_view_set_content(view, content);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_content() is failed. err = %d", ret);
ui_view_destroy(view);
//Set Fade Transition Effect.
ret = ui_view_set_transition_style(view, "fade");
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_transition_style() is failed. err = %d", ret);
}
//Set View Load callback.
ret = ui_view_set_event_cb(view, UI_VIEW_EVENT_LOAD, view13_load_cb, NULL);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_event_cb() is failed. err = %d", ret);
ui_view_destroy(view);
//Push view.
ret = ui_viewmgr_push_view(view);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_push_view() is failed. err = %d", ret);
ui_view_destroy(view);
prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
int ret = ui_viewmgr_pop_view();
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_pop_view() is failed. err = %d", ret);
}
//Set Main Content
ret = ui_view_set_content(view, content);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_content() is failed. err = %d", ret);
ui_view_destroy(view);
//Turn off Transition Effect.
ret = ui_view_set_transition_style(view, "none");
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_transition_style() is failed. err = %d", ret);
}
//Set View Load callback.
ret = ui_view_set_event_cb(view, UI_VIEW_EVENT_LOAD, view14_load_cb, NULL);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_event_cb() is failed. err = %d", ret);
ui_view_destroy(view);
//Push view.
ret = ui_viewmgr_push_view(view);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_push_view() is failed. err = %d", ret);
ui_view_destroy(view);
//Set Main Content
ret = ui_view_set_content(view, content);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_content() is failed. err = %d", ret);
ui_view_destroy(view);
//Set View Load callback.
ret = ui_view_set_event_cb(view, UI_VIEW_EVENT_LOAD, view15_load_cb, NULL);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_event_cb() is failed. err = %d", ret);
ui_view_destroy(view);
//Push view.
ret = ui_viewmgr_push_view(view);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_push_view() is failed. err = %d", ret);
ui_view_destroy(view);
prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
int ret = ui_viewmgr_pop_view();
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_pop_view() is failed. err = %d", ret);
}
next_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
int ret = ui_viewmgr_deactivate();
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_deactivate() is failed. err = %d", ret);
}
//Set Main Content
ret = ui_view_set_content(view, content);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_content() is failed. err = %d", ret);
ui_view_destroy(view);
//Set View Load callback.
ret = ui_view_set_event_cb(view, UI_VIEW_EVENT_LOAD, view16_load_cb, NULL);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_event_cb() is failed. err = %d", ret);
ui_view_destroy(view);
//Push view.
ret = ui_viewmgr_push_view(view);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_push_view() is failed. err = %d", ret);
ui_view_destroy(view);
prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
int ret = ui_viewmgr_pop_view();
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_pop_view() is failed. err = %d", ret);
}
//Set available rotation only "0, 90" of this view
const int rots[2] = { 0, 90 };
ret = ui_view_set_available_rotations(view, rots, 2);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_available_rotations() is failed. err = %d", ret);
}
//Set Main Content
ret = ui_view_set_content(view, content);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_content() is failed. err = %d", ret);
ui_view_destroy(view);
//Set View Load callback.
ret = ui_view_set_event_cb(view, UI_VIEW_EVENT_LOAD, view2_load_cb, NULL);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_event_cb() is failed. err = %d", ret);
ui_view_destroy(view);
//Push view.
ret = ui_viewmgr_push_view(view);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_push_view() is failed. err = %d", ret);
ui_view_destroy(view);
prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
int ret = ui_viewmgr_pop_view();
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_pop_view() is failed. err = %d", ret);
}
//Set Main Content
ret = ui_view_set_content(view, content);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_content() is failed. err = %d", ret);
ui_view_destroy(view);
//Set View Load callback.
ret = ui_view_set_event_cb(view, UI_VIEW_EVENT_LOAD, view3_load_cb, NULL);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_event_cb() is failed. err = %d", ret);
ui_view_destroy(view);
//Push view.
ret = ui_viewmgr_push_view(view);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_push_view() is failed. err = %d", ret);
ui_view_destroy(view);
prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
int ret = ui_viewmgr_pop_view();
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_pop_view() is failed. err = %d", ret);
}
//Set Main Content
ret = ui_view_set_content(view, content);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_content() is failed. err = %d", ret);
ui_view_destroy(view);
//Set View Load callback.
ret = ui_view_set_event_cb(view, UI_VIEW_EVENT_LOAD, view4_load_cb, NULL);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_event_cb() is failed. err = %d", ret);
ui_view_destroy(view);
//Push view.
ret = ui_viewmgr_push_view(view);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_push_view() is failed. err = %d", ret);
ui_view_destroy(view);
prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
int ret = ui_viewmgr_pop_view();
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_pop_view() is failed. err = %d", ret);
}
//Set Main Content
ret = ui_view_set_content(view, content);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_content() is failed. err = %d", ret);
ui_view_destroy(view);
//Hide Indicator
ret = ui_view_set_indicator(view, UI_VIEW_INDICATOR_HIDE);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_indicator() is failed. err = %d", ret);
}
//Set View Load callback.
ret = ui_view_set_event_cb(view, UI_VIEW_EVENT_LOAD, view5_load_cb, NULL);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_event_cb() is failed. err = %d", ret);
ui_view_destroy(view);
//Push view.
ret = ui_viewmgr_push_view(view);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_push_view() is failed. err = %d", ret);
ui_view_destroy(view);
prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
int ret = ui_viewmgr_pop_view();
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_pop_view() is failed. err = %d", ret);
}
//Set Main Content
ret = ui_view_set_content(view, content);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_content() is failed. err = %d", ret);
ui_view_destroy(view);
//Set View Load callback.
ret = ui_view_set_event_cb(view, UI_VIEW_EVENT_LOAD, view6_load_cb, NULL);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_event_cb() is failed. err = %d", ret);
ui_view_destroy(view);
//Push view.
ret = ui_viewmgr_push_view(view);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_push_view() is failed. err = %d", ret);
ui_view_destroy(view);
prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
int ret = ui_viewmgr_pop_view();
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_pop_view() is failed. err = %d", ret);
}
//Set Main Content
ret = ui_view_set_content(view, content);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_content() is failed. err = %d", ret);
ui_view_destroy(view);
//Set View Load callback.
ret = ui_view_set_event_cb(view, UI_VIEW_EVENT_LOAD, view7_load_cb, NULL);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_event_cb() is failed. err = %d", ret);
ui_view_destroy(view);
//Push view.
ret = ui_viewmgr_push_view(view);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_push_view() is failed. err = %d", ret);
ui_view_destroy(view);
prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
int ret = ui_viewmgr_pop_view();
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_pop_view() is failed. err = %d", ret);
}
//Set Main Content
ret = ui_view_set_content(view, content);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_content() is failed. err = %d", ret);
ui_view_destroy(view);
//Don't delete view's content when this view popped.
//This is a show case for saving this content for reuse later.
ret = ui_view_set_removable_content(view, false);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_removable_content() is failed. err = %d", ret);
ui_view_destroy(view);
//Push view.
ret = ui_viewmgr_push_view(view);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_push_view() is failed. err = %d", ret);
ui_view_destroy(view);
prev_btn_clicked_cb(void *data, Eo *obj, void *event_info)
{
int ret = ui_viewmgr_pop_view();
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_pop_view() is failed. err = %d", ret);
}
//Set Main Content
ret = ui_view_set_content(view, content);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_content() is failed. err = %d", ret);
ui_view_destroy(view);
//Set indicator
ret = ui_view_set_indicator(view, UI_VIEW_INDICATOR_DEFAULT);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_indicator() is failed. err = %d", ret);
}
//Set indicator
ret = ui_view_set_indicator(view, UI_VIEW_INDICATOR_OPTIMAL);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_indicator() is failed. err = %d", ret);
}
//Set View Load callback.
ret = ui_view_set_event_cb(view, UI_VIEW_EVENT_LOAD, view9_load_cb, NULL);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_event_cb() is failed. err = %d", ret);
ui_view_destroy(view);
//Set Portrait callback.
ret = ui_view_set_event_cb(view, UI_VIEW_EVENT_PORTRAIT, view9_portrait_cb, NULL);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_event_cb() is failed. err = %d", ret);
}
//Set Landscape callback.
ret = ui_view_set_event_cb(view, UI_VIEW_EVENT_LANDSCAPE, view9_landscape_cb, NULL);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_view_set_event_cb() is failed. err = %d", ret);
}
//Push view.
ret = ui_viewmgr_push_view(view);
- if (ret != TIZEN_ERROR_NONE)
+ if (ret != UI_VIEWMGR_ERROR_NONE)
{
dlog_print(DLOG_ERROR, LOG_TAG, "ui_viewmgr_push_view() is failed. err = %d", ret);
ui_view_destroy(view);
* @note It makes evas_object_rectangle and add key up callback to grab key event.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_NOT_PERMITTED Current view manager system is not set up.
- * @retval #TIZEN_ERROR_UNKNOWN Fails to manipulates Eo resources. Please check Log messages.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED Current view manager system is not set up.
+ * @retval #UI_VIEWMGR_ERROR_UNKNOWN Fails to manipulates Eo resources. Please check Log messages.
*
* @see term()
*/
* @note Delete key grabber(evas_object_rectangle).
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
*
* @see init()
*/
* @param[in] content a new content. It allows @c nullptr for canceling the previous content.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
*/
virtual int setContent(Eo *content) override;
*
* @return @c 0 on success, otherwise a negative error value.
*
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER @a indicator is not valid.
- * @retval #TIZEN_ERROR_NOT_PERMITTED Current view manager system is not set up.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER @a indicator is not valid.
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED Current view manager system is not set up.
*/
virtual int setIndicator(UiViewIndicator indicator) override;
* @param[in] count The number of arrays of rotations.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER If @a count is less than 1 or @a rotations is invalid pointer.
- * @retval #TIZEN_ERROR_OUT_OF_MEMORY Out of Memory
- * @retval #TIZEN_ERROR_NOT_PERMITTED Current view manager system is not set up.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER If @a count is less than 1 or @a rotations is invalid pointer.
+ * @retval #UI_VIEWMGR_ERROR_OUT_OF_MEMORY Out of Memory
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED Current view manager system is not set up.
*/
virtual int setAvailableRotations(const int *rotations, unsigned int count) override;
* @param[in] block @c true, when blocking is enabled, otherwise @c false.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_NOT_SUPPORTED The system doesn't support event blocking feature.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED The system doesn't support event blocking feature.
*/
virtual int setEventBlock(bool block) override;
* on initialization time.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_ALREADY_IN_PROGRESS Already activated
- * @retval #TIZEN_ERROR_NOT_PERMITTED Can't be activated. (ie, view manager has zero views.)
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS Already activated
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED Can't be activated. (ie, view manager has zero views.)
*
* @see deactivate()
*/
* current window in order that application go background.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_ALREADY_IN_PROGRESS Already deactivated
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS Already deactivated
*
* @see activate()
*/
* @param[in] view A view to insert in the viewmgr view list.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_INVALID_PARAMETER @a view is not valid.
- * @retval #TIZEN_ERROR_NOT_PERMITTED @a view was already inserted.
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER @a view is not valid.
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED @a view was already inserted.
*
* @see activated()
* @see insertViewBefore()
* the application will be terminated. It's up to system configuration.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_NOT_PERMITTED No more views to pop.
- * @retval #TIZEN_ERROR_ALREADY_IN_PROGRESS On a certain profile, it may not allow to pop multiple views at the same time.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED No more views to pop.
+ * @retval #UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS On a certain profile, it may not allow to pop multiple views at the same time.
*
* @see deactivate()
* @see pushView()
* @param[in] before A view that will be just inserted after @a view. If you pass @c nullptr, @a view will be inserted at the front of the view list.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_NOT_PERMITTED @a view was already inserted.
- * @retval #TIZEN_ERROR_INVALID_PARAMETER @a view is not valid.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED @a view was already inserted.
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER @a view is not valid.
*/
virtual int insertViewBefore(UiBaseView *view, UiBaseView *before);
* @param[in] after A view that will be just inserted before the @a view. If you pass @c nullptr, @a view will be inserted at the end of the view list.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_NOT_PERMITTED @a view was already inserted.
- * @retval #TIZEN_ERROR_INVALID_PARAMETER @a view is not valid.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED @a view was already inserted.
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER @a view is not valid.
*/
virtual int insertViewAfter(UiBaseView *view, UiBaseView *after);
* @note Add menu key to target of key grabber.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_NOT_PERMITTED Current view manager system is not set up.
- * @retval #TIZEN_ERROR_UNKNOWN Fails to manipulates Eo resources. Please check Log messages.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED Current view manager system is not set up.
+ * @retval #UI_VIEWMGR_ERROR_UNKNOWN Fails to manipulates Eo resources. Please check Log messages.
*/
virtual int init() override;
* @note It makes menu state as show.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_NOT_PERMITTED UiMenu instance is not set up yet.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED UiMenu instance is not set up yet.
*
* @see deactivate()
*/
* @note It makes menu state as hide.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_NOT_PERMITTED UiMenu instance is not set up yet.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED UiMenu instance is not set up yet.
*
* @see activate()
*/
* @param[in] ctxpopup ctxpopup object. It allows @c nullptr for canceling the previous content.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER @a ctxpopup is not a type of Elm_Ctxpopup.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER @a ctxpopup is not a type of Elm_Ctxpopup.
*/
virtual int setContent(Elm_Ctxpopup* ctxpopup) override;
* @note It makes popup state as show.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_NOT_PERMITTED UiPopup instance is not set up yet.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED UiPopup instance is not set up yet.
*
* @see deactivate()
*/
* @note It makes popup state as hide.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_NOT_PERMITTED UiPopup instance is not set up yet.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED UiPopup instance is not set up yet.
*
* @see activate()
*/
* @param[in] popup popup object. It allows @c nullptr for canceling the previous content.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER @a popup is not a type of Elm_Popup.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER @a popup is not a type of Elm_Popup.
*/
virtual int setContent(Elm_Popup* popup) override;
* @param[in] title title_label The label in the title area. The name of the title label part is "elm.text.title"
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
*/
int setContent(Eo *content);
* @param[in] text The label in the title badge area.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
*/
int setTitleBadge(const char *text);
* @param[in] text The label in the subtitle area.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
*/
int setSubtitle(const char *text);
* @param[in] title_left_btn The button in the left part of title area.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_ALREADY_IN_PROGRESS if @a titleLeftBtn is same with the existing one.
- * @retval #TIZEN_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS if @a titleLeftBtn is same with the existing one.
+ * @retval #UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
*/
int setTitleLeftBtn(Elm_Button *titleLeftBtn);
* @param[in] title_right_btn The button in the right part of title area.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_ALREADY_IN_PROGRESS if @a titleRightBtn is same with the existing one.
- * @retval #TIZEN_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS if @a titleRightBtn is same with the existing one.
+ * @retval #UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
*/
int setTitleRightBtn(Elm_Button *titleRightBtn);
* @param[in] text The label in the title area.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
*/
int setTitle(const char *text);
* @param[in] toolbar Toolbar object.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_ALREADY_IN_PROGRESS if @a toolbar is already existing.
- * @retval #TIZEN_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS if @a toolbar is already existing.
+ * @retval #UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
*/
int setToolbar(Elm_Toolbar *toolbar);
* @param[in] anim title area will be shown with animation if the given param is @c true, otherwise title area will be shown without animation.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
*/
int setTitleVisible(bool visible, bool anim);
*
* @return @c 0 on success, otherwise a negative error value.
*
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_NOT_SUPPORTED The system doesn't support event blocking feature.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED The system doesn't support event blocking feature.
*/
virtual int setEventBlock(bool block) override;
* @param[in] locale_dir The path of locale directory
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_ALREADY_IN_PROGRESS Initialization was already done.
- * @retval #TIZEN_ERROR_OUT_OF_MEMORY Fails to allocate memory.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS Initialization was already done.
+ * @retval #UI_VIEWMGR_ERROR_OUT_OF_MEMORY Fails to allocate memory.
*
* @see ui_application_term()
* @see ui_application_run()
* @param[in] user_data User data for event callbacks
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER Invalid parameters
- * @retval #TIZEN_ERROR_APPLICATION The application is illegally launched, not launched by the launch system.
- * @retval #TIZEN_ERROR_ALREADY_IN_PROGRESS The main loop already starts.
- * @retval #TIZEN_ERROR_NOT_PERMITTED If Initialization was not performed yet.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER Invalid parameters
+ * @retval #UI_VIEWMGR_ERROR_APPLICATION The application is illegally launched, not launched by the launch system.
+ * @retval #UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS The main loop already starts.
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED If Initialization was not performed yet.
*
* @pre Call ui_application_init() before calling this function.
*
* @since_tizen 3.0
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
*
* @pre Call ui_application_init() before calling this function.
*
* @param[in] ctxpopup ctxpopup object. It allows @c NULL for canceling the previous content
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER @a menu is invalid or @a content is not a type of Elm_Ctxpopup.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER @a menu is invalid or @a content is not a type of Elm_Ctxpopup.
*
* @see ui_menu_get_content()
* @see ui_menu_unset_content()
* @param[in] menu An ui_menu instance
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_NOT_PERMITTED menu instance is not set up yet.
- * @retval #TIZEN_ERROR_INVALID_PARAMETER @a menu is invalid.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED menu instance is not set up yet.
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER @a menu is invalid.
*
* @see ui_menu_deactivate()
*/
* @param[in] menu An ui_menu instance
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_NOT_PERMITTED menu instance is not set up yet.
- * @retval #TIZEN_ERROR_INVALID_PARAMETER @a menu is invalid.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED menu instance is not set up yet.
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER @a menu is invalid.
*
* @see ui_menu_activate()
*/
* @param[in] popup An ui_popup instance
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER @a popup is invalid.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER @a popup is invalid.
*
* @see ui_popup_create()
*/
* @param[in] content popup object. It allows @c NULL for canceling the previous content
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER @a popup is invalid or @a content is not a type of Elm_Popup.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER @a popup is invalid or @a content is not a type of Elm_Popup.
*
* @see ui_popup_get_content()
* @see ui_popup_unset_content()
* @param[in] popup An ui_popup instance
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_NOT_PERMITTED popup instance is not set up yet.
- * @retval #TIZEN_ERROR_INVALID_PARAMETER @a popup is invalid.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED popup instance is not set up yet.
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER @a popup is invalid.
*
* @see ui_popup_deactivate()
* @see ui_popup_get_activated()
* @param[in] popup An ui_popup instance
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_NOT_PERMITTED popup instance is not set up yet.
- * @retval #TIZEN_ERROR_INVALID_PARAMETER @a popup is invalid.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED popup instance is not set up yet.
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER @a popup is invalid.
*
* @see ui_popup_activate()
* @see ui_popup_get_activated()
* @param[in] text The label in the title area
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER if @a view is invalid.
- * @retval #TIZEN_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER if @a view is invalid.
+ * @retval #UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
*
* @see ui_standard_view_get_title()
*/
* @param[in] text The label in the subtitle area
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER if @a view is invalid.
- * @retval #TIZEN_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER if @a view is invalid.
+ * @retval #UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
*
* @see ui_standard_view_get_sub_title()
*/
* @param[in] text The label in the title badge area
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER if @a view is invalid.
- * @retval #TIZEN_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER if @a view is invalid.
+ * @retval #UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
*
* @see ui_standard_view_get_title_badge()
*/
* @param[in] title_right_btn The button in the right part of title area
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER if @a view is invalid.
- * @retval #TIZEN_ERROR_ALREADY_IN_PROGRESS if @a title_right_btn is same with the existing one.
- * @retval #TIZEN_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER if @a view is invalid.
+ * @retval #UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS if @a title_right_btn is same with the existing one.
+ * @retval #UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
*
* @see ui_standard_view_get_title_right_btn()
* @see ui_standard_view_unset_title_right_btn()
* @param[in] title_left_btn The button in the left part of title area
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER if @a view is invalid.
- * @retval #TIZEN_ERROR_ALREADY_IN_PROGRESS if @a title_left_btn is same with the existing one.
- * @retval #TIZEN_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER if @a view is invalid.
+ * @retval #UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS if @a title_left_btn is same with the existing one.
+ * @retval #UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
*
* @see ui_standard_view_get_title_left_btn()
* @see ui_standard_view_unset_title_left_btn()
* @param[in] toolbar Toolbar object
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER if @a view is invalid.
- * @retval #TIZEN_ERROR_ALREADY_IN_PROGRESS if @a toolbar is already existing.
- * @retval #TIZEN_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER if @a view is invalid.
+ * @retval #UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS if @a toolbar is already existing.
+ * @retval #UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
*
* @see ui_standard_view_get_toolbar()
* @see ui_standard_view_unset_toolbar()
* @param[in] anim title area will be shown with animation if the given param is @c true, otherwise title area will be shown without animation
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER if @a view is invalid.
- * @retval #TIZEN_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER if @a view is invalid.
+ * @retval #UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE Instance is corrupted. Maybe base object is broken.
*/
EAPI int ui_standard_view_set_title_visible(ui_standard_view *view, bool visible, bool anim);
* @param[in] content A new content. It allows @c NULL for canceling the previous content
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER if @a view is invalid.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER if @a view is invalid.
*
* @see ui_view_get_content()
* @see ui_view_unset_content()
* @param[in] user_data The user data to be passed to the given @a event_callback functions
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER if @a view is invalid.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER if @a view is invalid.
*
* @see ui_view_event_type_e
*/
* @param[in] indicator The mode to set, one of #ui_view_indicator
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER Invalid Parameters.
- * @retval #TIZEN_ERROR_NOT_PERMITTED Current view manager system is not set up.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER Invalid Parameters.
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED Current view manager system is not set up.
*
* @see ui_view_indicator
* @see ui_view_get_indicator()
* @param[in] count The number of arrays of rotations
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER If @a view is invalid or @a count is less than 1 or @a rotations is invalid pointer.
- * @retval #TIZEN_ERROR_OUT_OF_MEMORY Out of Memory
- * @retval #TIZEN_ERROR_NOT_PERMITTED Current view manager system is not set up.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER If @a view is invalid or @a count is less than 1 or @a rotations is invalid pointer.
+ * @retval #UI_VIEWMGR_ERROR_OUT_OF_MEMORY Out of Memory
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED Current view manager system is not set up.
*
* @see ui_view_get_available_rotations()
*/
* @warning You should not remove a view content manually on unload status if removable content is set
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER If @a view is invalid or @a count is less than 1 or @a rotations is invalid pointer.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER If @a view is invalid or @a count is less than 1 or @a rotations is invalid pointer.
*
* @see ui_view_get_removable_content()
*/
* @param[in] style a transition style name
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER @a view is invalid or @a style is not supported.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER @a view is invalid or @a style is not supported.
*
* @see ui_view_get_transition_style()
*/
* @param[in] view An ui_view instance
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER @a view is invalid.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER @a view is invalid.
*
* @see ui_view_create()
* @see ui_standard_view_create()
* @param[in] view An ui_view to insert in the ui_viewmgr view list
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_INVALID_PARAMETER @a view is not valid.
- * @retval #TIZEN_ERROR_NOT_PERMITTED @a view was already inserted.
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER @a view is not valid.
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED @a view was already inserted.
*
* @see ui_viewmgr_activate()
* @see ui_viewmgr_insert_view_before()
* @param[in] before An ui_view that will be just inserted after @a view. If you pass @c NULL, @a view will be inserted at the front of the view list
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_NOT_PERMITTED @a view was already inserted.
- * @retval #TIZEN_ERROR_INVALID_PARAMETER @a view is not valid.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED @a view was already inserted.
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER @a view is not valid.
*
* @see ui_viewmgr_insert_view_after()
*/
* @param[in] after An ui_view that will be just inserted before the @a view. If you pass @c NULL, @a view will be inserted at the end of the view list
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_NOT_PERMITTED @a view was already inserted.
- * @retval #TIZEN_ERROR_INVALID_PARAMETER @a view is not valid.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED @a view was already inserted.
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER @a view is not valid.
*
* @see ui_viewmgr_insert_view_before()
*/
* the application will be terminated. It's up to system configuration.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_NOT_PERMITTED No more views to pop.
- * @retval #TIZEN_ERROR_ALREADY_IN_PROGRESS On a certain profile, it may not allow to pop multiple views at the same time.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED No more views to pop.
+ * @retval #UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS On a certain profile, it may not allow to pop multiple views at the same time.
*
* @see ui_viewmgr_deactivate()
* @see ui_viewmgr_push_view()
* Usually this should be called after applications set their all views on initialization time.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_ALREADY_IN_PROGRESS Already activated
- * @retval #TIZEN_ERROR_NOT_PERMITTED Can't be activated. (ie, view manager has zero views.)
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS Already activated
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED Can't be activated. (ie, view manager has zero views.)
*
* @see ui_viewmgr_deactivate()
*/
* current window in order that application go background.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_ALREADY_IN_PROGRESS Already deactivated
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS Already deactivated
*
* @see ui_viewmgr_activate()
*/
* @param[in] argv process argument list
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #TIZEN_ERROR_APPLICATION The application is illegally launched, not launched by the launch system.
- * @retval #TIZEN_ERROR_ALREADY_IN_PROGRESS The main loop already starts.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #UI_VIEWMGR_ERROR_APPLICATION The application is illegally launched, not launched by the launch system.
+ * @retval #UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS The main loop already starts.
*/
virtual int run(int argc, char **argv);
* @param[in] content a new content. It allows @c nullptr for canceling the previous content.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
*/
virtual int setContent(T content);
* @{
*/
+/**
+ * @brief Enumerations of error code for UI VIEWMGR
+ */
+typedef enum
+{
+ UI_VIEWMGR_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
+ UI_VIEWMGR_ERROR_NOT_PERMITTED = TIZEN_ERROR_NOT_PERMITTED, /**< Operation not permitted */
+ UI_VIEWMGR_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */
+ UI_VIEWMGR_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */
+ UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE = TIZEN_ERROR_RESULT_OUT_OF_RANGE, /**< Result not representable */
+ UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS = TIZEN_ERROR_ALREADY_IN_PROGRESS, /**< Operation already in progress */
+ UI_VIEWMGR_ERROR_UNKNOWN = TIZEN_ERROR_UNKNOWN /** Framework internal operation failed */
+} ui_viewmgr_error_e;
+
+
/**
* @brief Possible values for indicator state.
* @since_tizen 3.0
* @param[in] style a transition style name. A default value is "default"
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER @a style is not supported.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER @a style is not supported.
*
* @warning When you override this member function, you should implement the logic to check the given style name is available or not.
* If your framework doesn't support any styles then just allow a @c nullptr argument and return true. Otherwise return false.
* @param[in] indicator The mode to set, one of #UiViewIndicator.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER @a indicator is not valid.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER @a indicator is not valid.
*
* @warning @a indicator is not allowed to #UI_VIEW_INDICATOR_UNKNOWN.
*/
* @param[in] count The number of arrays of rotations.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_INVALID_PARAMETER If @a count is less than 1 or @a rotations is invalid pointer.
- * @retval #TIZEN_ERROR_OUT_OF_MEMORY Out of Memory
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER If @a count is less than 1 or @a rotations is invalid pointer.
+ * @retval #UI_VIEWMGR_ERROR_OUT_OF_MEMORY Out of Memory
*
* @see getAvailableRotations()
*/
* @param[in] content a new content. It allows @c nullptr for canceling the previous content.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
*/
virtual int setContent(T content);
* @param[in] block @c true, when blocking is enabled, otherwise @c false.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
* @retval #TIZEN_ERROR_NOT_SUPPORTED The system doesn't support event blocking feature.
*
* @see getEventBlock()
* on initialization time.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_ALREADY_IN_PROGRESS Already activated
- * @retval #TIZEN_ERROR_NOT_PERMITTED Can't be activated. (ie, view manager has zero views.)
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS Already activated
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED Can't be activated. (ie, view manager has zero views.)
*
* @see deactivate()
*/
* current window in order that application go background.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_ALREADY_IN_PROGRESS Already deactivated
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS Already deactivated
*
* @see activate()
*/
* @param[in] view A view to insert at the end of viewmgr view list.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_INVALID_PARAMETER @a view is not valid.
- * @retval #TIZEN_ERROR_NOT_PERMITTED @a view was already inserted.
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER @a view is not valid.
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED @a view was already inserted.
*
* @see activated()
* @see insertViewBefore()
* the application will be terminated. It's up to system configuration.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_NOT_PERMITTED No more views to pop.
- * @retval #TIZEN_ERROR_ALREADY_IN_PROGRESS On a certain profile, it may not allow to pop multiple views at the same time.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED No more views to pop.
+ * @retval #UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS On a certain profile, it may not allow to pop multiple views at the same time.
*
* @see deactivate()
* @see pushView()
* @param[in] before A view that will be just inserted after @a view. If you pass @c nullptr, @a view will be inserted at the front of the view list.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_NOT_PERMITTED @a view was already inserted.
- * @retval #TIZEN_ERROR_INVALID_PARAMETER @a view is not valid.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED @a view was already inserted.
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER @a view is not valid.
*/
int insertViewBefore(UiIfaceView *view, UiIfaceView *before);
* @param[in] after A view that will be just inserted before the @a view. If you pass @c nullptr, @a view will be inserted at the end of the view list.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_NOT_PERMITTED @a view was already inserted.
- * @retval #TIZEN_ERROR_INVALID_PARAMETER @a view is not valid.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED @a view was already inserted.
+ * @retval #UI_VIEWMGR_ERROR_INVALID_PARAMETER @a view is not valid.
*/
int insertViewAfter(UiIfaceView *view, UiIfaceView *after);
* @param[in] view A view to remove from the viewmgr view list.
*
* @return @c 0 on success, otherwise a negative error value.
- * @retval #TIZEN_ERROR_NONE Successful
- * @retval #TIZEN_ERROR_NOT_PERMITTED @a view may not belongs to the view manager. (already removed.)
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_NOT_PERMITTED @a view may not belongs to the view manager. (already removed.)
*
* @see insertViewBefore()
* @see insertViewAfter()
{
evas_object_del(this->keyGrabber);
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
int UiBaseKeyListenerImpl::init()
{
if (!this->viewmgr) {
LOGE("No view manager??");
- return TIZEN_ERROR_NOT_PERMITTED;
+ return UI_VIEWMGR_ERROR_NOT_PERMITTED;
}
Evas *e = evas_object_evas_get(this->viewmgr->getWindow());
if (!e) {
LOGE("Failed to get Evas from window");
- return TIZEN_ERROR_NOT_PERMITTED;
+ return UI_VIEWMGR_ERROR_NOT_PERMITTED;
}
Eo *keyGrabRect = evas_object_rectangle_add(e);
if (!keyGrabRect) {
LOGE("Failed to create a key grabber rectangle");
- return TIZEN_ERROR_UNKNOWN;
+ return UI_VIEWMGR_ERROR_UNKNOWN;
}
evas_object_event_callback_add(keyGrabRect, EVAS_CALLBACK_KEY_UP, [](void *data, Evas *e, Eo *obj, void *event_info)
if (!evas_object_key_grab(keyGrabRect, KEY_BACK, 0, 0, EINA_FALSE)) {
LOGE("Failed to grab BACK KEY(%s)\n", KEY_BACK);
evas_object_del(keyGrabRect);
- return TIZEN_ERROR_UNKNOWN;
+ return UI_VIEWMGR_ERROR_UNKNOWN;
}
if (!evas_object_key_grab(keyGrabRect, KEY_BACK2, 0, 0, EINA_FALSE)) {
LOGE("Failed to grab BACK KEY(%s)\n", KEY_BACK2);
evas_object_del(keyGrabRect);
- return TIZEN_ERROR_UNKNOWN;
+ return UI_VIEWMGR_ERROR_UNKNOWN;
}
this->keyGrabber = keyGrabRect;
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
return UiIfaceView::setContent(content);
}
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
Eo *UiBaseView::unsetContent()
int UiBaseView::setIndicator(UiViewIndicator indicator)
{
- if (this->getIndicator() == indicator) return TIZEN_ERROR_NONE;
+ if (this->getIndicator() == indicator) return UI_VIEWMGR_ERROR_NONE;
int ret = UiIfaceView::setIndicator(indicator);
- if (ret != TIZEN_ERROR_NONE) return ret;
+ if (ret != UI_VIEWMGR_ERROR_NONE) return ret;
auto viewmgr = UI_BASE_VIEWMGR;
if (!viewmgr) {
LOGE("Failed to get a viewmgr");
- return TIZEN_ERROR_NOT_PERMITTED;
+ return UI_VIEWMGR_ERROR_NOT_PERMITTED;
}
- if (!viewmgr->isActivated()) return TIZEN_ERROR_NONE;
+ if (!viewmgr->isActivated()) return UI_VIEWMGR_ERROR_NONE;
- if (viewmgr->getLastView() != this) return TIZEN_ERROR_NONE;
+ if (viewmgr->getLastView() != this) return UI_VIEWMGR_ERROR_NONE;
viewmgr->setIndicator(indicator);
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
int UiBaseView::setAvailableRotations(const int *rotations, unsigned int count)
{
int ret = UiIfaceView::setAvailableRotations(rotations, count);
- if (ret != TIZEN_ERROR_NONE) {
+ if (ret != UI_VIEWMGR_ERROR_NONE) {
return ret;
}
if (!viewmgr) {
LOGE("Failed to get a viewmgr");
- return TIZEN_ERROR_NOT_PERMITTED;
+ return UI_VIEWMGR_ERROR_NOT_PERMITTED;
}
if (this == viewmgr->getLastView())
elm_win_wm_rotation_available_rotations_set(viewmgr->getWindow(), rotations, count);
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
void UiBaseView::onRotate(int degree)
int UiBaseView::setEventBlock(bool block)
{
int ret = UiIfaceView::setEventBlock(block);
- if (ret != TIZEN_ERROR_NONE) return ret;
+ if (ret != UI_VIEWMGR_ERROR_NONE) return ret;
evas_object_freeze_events_set(this->getContent(), block);
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
int UiBaseView::getDegree()
int UiBaseViewmgr::activate()
{
int ret = UiIfaceViewmgr::activate();
- if (ret != TIZEN_ERROR_NONE) return ret;
+ if (ret != UI_VIEWMGR_ERROR_NONE) return ret;
this->_impl->activate();
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
int UiBaseViewmgr::deactivate()
{
int ret = UiIfaceViewmgr::deactivate();
- if (ret != TIZEN_ERROR_NONE) return ret;
+ if (ret != UI_VIEWMGR_ERROR_NONE) return ret;
this->_impl->deactivate();
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
int UiBaseViewmgr::popView()
{
if (this->getViewCount() == 1) {
this->deactivate();
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
int ret = UiIfaceViewmgr::popView();
- if(ret != TIZEN_ERROR_NONE) {
+ if(ret != UI_VIEWMGR_ERROR_NONE) {
return ret;
}
this->_impl->popView();
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
int UiBaseViewmgr::pushView(UiBaseView *view)
{
int ret = UiIfaceViewmgr::pushView(view);
- if (ret != TIZEN_ERROR_NONE) return ret;
+ if (ret != UI_VIEWMGR_ERROR_NONE) return ret;
this->_impl->pushView(view);
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
int UiBaseViewmgr::insertViewBefore(UiBaseView *view, UiBaseView *before)
int UiKeyListener::init()
{
int ret = UiBaseKeyListener::init();
- if (ret != TIZEN_ERROR_NONE) return ret;
+ if (ret != UI_VIEWMGR_ERROR_NONE) return ret;
if (!evas_object_key_grab(this->getKeygrabObj(), KEY_MENU, 0, 0, EINA_FALSE))
{
LOGE("Failed to grab MENU KEY(%s)\n", KEY_MENU);
- return TIZEN_ERROR_UNKNOWN;
+ return UI_VIEWMGR_ERROR_UNKNOWN;
}
if (!evas_object_key_grab(this->getKeygrabObj(), KEY_MENU2, 0, 0, EINA_FALSE))
{
LOGE("Failed to grab MENU KEY(%s)\n", KEY_MENU2);
- return TIZEN_ERROR_UNKNOWN;
+ return UI_VIEWMGR_ERROR_UNKNOWN;
}
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
static bool _updateMenu(UiMenu *menu)
{
Elm_Win *win = menu->getBase();
- if (!win) return TIZEN_ERROR_NOT_PERMITTED;
+ if (!win) return UI_VIEWMGR_ERROR_NOT_PERMITTED;
Elm_Ctxpopup *ctxpopup = menu->getContent();
- if (!ctxpopup) return TIZEN_ERROR_NOT_PERMITTED;
+ if (!ctxpopup) return UI_VIEWMGR_ERROR_NOT_PERMITTED;
/* We convince the top widget is a window */
Evas_Coord w, h;
evas_object_show(ctxpopup);
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
static void _winResizeCb(void *data, Evas *e, Eo *obj, void *event_info)
if (!ctxpopup)
{
LOGE("Content is not set! = UiMenu(%p)", this);
- return TIZEN_ERROR_NOT_PERMITTED;
+ return UI_VIEWMGR_ERROR_NOT_PERMITTED;
}
elm_ctxpopup_dismiss(ctxpopup);
dynamic_cast<UiView *>(this->getView())->onResume();
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
int UiMenu::activate()
{
bool ret = _updateMenu(this);
- if (ret != TIZEN_ERROR_NONE) dynamic_cast<UiView *>(this->getView())->onPause();
+ if (ret != UI_VIEWMGR_ERROR_NONE) dynamic_cast<UiView *>(this->getView())->onPause();
return ret;
}
Elm_Ctxpopup *prev = this->unsetContent();
evas_object_del(prev);
- if (!ctxpopup) return TIZEN_ERROR_NONE;
+ if (!ctxpopup) return UI_VIEWMGR_ERROR_NONE;
if (strcmp(evas_object_type_get(ctxpopup), "elm_ctxpopup")) {
LOGE("Menu widget is not a ctxpopup!");
- return TIZEN_ERROR_NOT_PERMITTED;
+ return UI_VIEWMGR_ERROR_NOT_PERMITTED;
}
elm_object_style_set(ctxpopup, "more/default");
static int _updatePopup(UiPopup *popup)
{
if (popup->getView()->getState() != UI_VIEW_STATE_ACTIVATE)
- return TIZEN_ERROR_NOT_PERMITTED;
+ return UI_VIEWMGR_ERROR_NOT_PERMITTED;
Elm_Win *win = popup->getBase();
- if (!win) return TIZEN_ERROR_NOT_PERMITTED;
+ if (!win) return UI_VIEWMGR_ERROR_NOT_PERMITTED;
Elm_Popup *_popup = popup->getContent();
- if (!_popup) return TIZEN_ERROR_NOT_PERMITTED;
+ if (!_popup) return UI_VIEWMGR_ERROR_NOT_PERMITTED;
evas_object_show(_popup);
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
static void _popupDismissedCb(void *data, Eo *obj, void *event_info)
int UiPopup::deactivate()
{
if (this->isActivated() == false)
- return TIZEN_ERROR_NOT_PERMITTED;
+ return UI_VIEWMGR_ERROR_NOT_PERMITTED;
Elm_Popup *popup = this->getContent();
if (!popup) {
LOGE("Content is not set! = UiPopup(%p)", this);
- return TIZEN_ERROR_NOT_PERMITTED;
+ return UI_VIEWMGR_ERROR_NOT_PERMITTED;
}
elm_popup_dismiss(popup);
dynamic_cast<UiView*>(this->getView())->onResume();
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
int UiPopup::activate()
{
int ret = _updatePopup(this);
- if (ret != TIZEN_ERROR_NONE) dynamic_cast<UiView*>(this->getView())->onPause();
+ if (ret != UI_VIEWMGR_ERROR_NONE) dynamic_cast<UiView*>(this->getView())->onPause();
return ret;
}
Elm_Popup *prev = this->unsetContent();
evas_object_del(prev);
- if (!popup) return TIZEN_ERROR_NONE;
+ if (!popup) return UI_VIEWMGR_ERROR_NONE;
if (strcmp(evas_object_type_get(popup), "elm_popup")) {
LOGE("Menu widget is not a popup!");
- return TIZEN_ERROR_INVALID_PARAMETER;
+ return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
}
elm_popup_align_set(popup, ELM_NOTIFY_ALIGN_FILL, 1.0);
#define LAYOUT_VALIDATE() if (!layout) { \
LOGE("Layout is invalid! UiStandardView(%p)", this); \
- return TIZEN_ERROR_RESULT_OUT_OF_RANGE; \
+ return UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE; \
}
static void _titleLeftBtnDelCb(void *data, Evas *e, Eo *obj, void *event_info)
elm_object_signal_emit(layout, "elm.state,elm.swallow.content,hide", "viewmgr");
}
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
int UiStandardViewImpl::setSubtitle(const char *text)
if (text) elm_object_signal_emit(layout, "elm,state,subtitle,show", "viewmgr");
else elm_object_signal_emit(layout, "elm,state,subtitle,hide", "viewmgr");
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
int UiStandardViewImpl::setTitleLeftBtn(Elm_Button *titleLeftBtn)
LAYOUT_VALIDATE();
if (this->getTitleLeftBtn() == titleLeftBtn)
- return TIZEN_ERROR_ALREADY_IN_PROGRESS;
+ return UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS;
Elm_Button *pbtn;
{
pbtn = this->unsetTitleLeftBtn();
evas_object_del(pbtn);
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
pbtn = this->getTitleLeftBtn();
elm_object_signal_emit(layout, "elm,state,title_left_btn,show", "viewmgr");
evas_object_event_callback_add(titleLeftBtn, EVAS_CALLBACK_DEL, _titleLeftBtnDelCb, this->_view);
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
int UiStandardViewImpl::setTitleRightBtn(Elm_Button *titleRightBtn)
Elm_Button *pbtn;
if (this->getTitleRightBtn() == titleRightBtn)
- return TIZEN_ERROR_ALREADY_IN_PROGRESS;
+ return UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS;
if (!titleRightBtn)
{
pbtn = this->unsetTitleRightBtn();
evas_object_del(pbtn);
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
pbtn = this->getTitleRightBtn();
elm_object_signal_emit(layout, "elm,state,title_right_btn,show", "viewmgr");
evas_object_event_callback_add(titleRightBtn, EVAS_CALLBACK_DEL, _titleRightBtnDelCb, this->_view);
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
int UiStandardViewImpl::setTitleBadge(const char *text)
if (text) elm_object_signal_emit(layout, "elm,state,title_badge,show", "viewmgr");
else elm_object_signal_emit(layout, "elm,state,title_badge,hide", "viewmgr");
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
int UiStandardViewImpl::setTitle(const char *text)
if (text && this->_titleVisible) elm_object_signal_emit(layout, "elm,state,title,show", "viewmgr");
else elm_object_signal_emit(layout, "elm,state,title,hide", "viewmgr");
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
int UiStandardViewImpl::setToolbar(Elm_Toolbar *toolbar)
LAYOUT_VALIDATE();
if (toolbar == this->getToolbar())
- return TIZEN_ERROR_ALREADY_IN_PROGRESS;
+ return UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS;
//FIXME: inside of the unset_toolbar, it will send a toolbar,hide signal.
//But right after it needs to send a show signal again if new toolbar is valid.
evas_object_del(ptoolbar);
this->_toolbar = toolbar;
- if (!toolbar) return TIZEN_ERROR_NONE;
+ if (!toolbar) return UI_VIEWMGR_ERROR_NONE;
//FIXME: eeeek. check style?? :(
if (!strcmp(elm_object_style_get(toolbar), "navigationbar")) {
elm_object_signal_emit(layout, "elm,state,toolbar,show", "viewmgr");
evas_object_event_callback_add(toolbar, EVAS_CALLBACK_DEL, _toolbarDelCb, this->_view);
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
int UiStandardViewImpl::unsetContent()
elm_object_part_content_unset(layout, "elm.swallow.content");
elm_object_signal_emit(layout, "elm.state,elm.swallow.content,hide", "viewmgr");
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
Elm_Button *UiStandardViewImpl::unsetTitleLeftBtn()
else elm_object_signal_emit(layout, "elm,state,title,hide", "viewmgr");
}
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
/***********************************************************************************************/
int UiStandardView::setContent(Eo *content)
{
int ret = UiView::setContent(content);
- if (ret != TIZEN_ERROR_NONE) return ret;
+ if (ret != UI_VIEWMGR_ERROR_NONE) return ret;
return this->_impl->setContent(content);
}
int UiStandardView::setEventBlock(bool block)
{
int ret = UiView::setEventBlock(block);
- if (ret != TIZEN_ERROR_NONE) return ret;
+ if (ret != UI_VIEWMGR_ERROR_NONE) return ret;
evas_object_freeze_events_set(this->getBase(), block);
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
Eo *UiStandardView::unsetContent()
EAPI int ui_application_init(const char *pkg, const char *locale_dir)
{
ui_app_capi *app = g_app;
- if (app) return TIZEN_ERROR_ALREADY_IN_PROGRESS;
+ if (app) return UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS;
app = new ui_app_capi(pkg, locale_dir);
if (!app)
{
LOGE("Failed to create new ui_app_capi()!");
- return TIZEN_ERROR_OUT_OF_MEMORY;
+ return UI_VIEWMGR_ERROR_OUT_OF_MEMORY;
}
g_app = app;
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
EAPI int ui_application_run(int argc, char **argv, ui_application_event_s *events, int count, void *user_data)
if (!app)
{
LOGE("ui_application is not initialized yet.");
- return TIZEN_ERROR_NOT_PERMITTED;
+ return UI_VIEWMGR_ERROR_NOT_PERMITTED;
}
if (count <= 0)
LOGE("Event Count is %d, Application have to implement app event at least 1(app_create).", count);
return TIZEN_ERROR_INVALID_PARAMETER;
}
-
- int ret = TIZEN_ERROR_NONE;
+ int ret = UI_VIEWMGR_ERROR_NONE;
for (int i = 0; i < count; i++)
{
if (events[i].event_type < UI_APPLICATION_EVENT_CREATE)
{
LOGE("events[%d] is invalid(%d)", i, events[i].event_type);
- ret = TIZEN_ERROR_INVALID_PARAMETER;
+ ret = UI_VIEWMGR_ERROR_INVALID_PARAMETER;
}
else
{
}
}
- if (ret != TIZEN_ERROR_NONE) return ret;
+ if (ret != UI_VIEWMGR_ERROR_NONE) return ret;
return app->run(argc, argv);
}
if (app) delete (app);
g_app = nullptr;
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
if (!menu)
{
LOGE("Invalid ui_menu = nullptr");
- return TIZEN_ERROR_INVALID_PARAMETER;
+ return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
}
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
EAPI int ui_menu_set_content(ui_menu *menu, Elm_Ctxpopup *ctxpopup)
{
int ret = validate_menu(menu);
- if (ret != TIZEN_ERROR_NONE) return ret;
+ if (ret != UI_VIEWMGR_ERROR_NONE) return ret;
return menu->setContent(ctxpopup);
}
EAPI Elm_Ctxpopup *ui_menu_get_content(ui_menu *menu)
{
- if (TIZEN_ERROR_NONE != validate_menu(menu)) return nullptr;
+ if (UI_VIEWMGR_ERROR_NONE != validate_menu(menu)) return nullptr;
return menu->getContent();
}
EAPI Elm_Ctxpopup *ui_menu_unset_content(ui_menu *menu)
{
- if (TIZEN_ERROR_NONE != validate_menu(menu)) return nullptr;
+ if (UI_VIEWMGR_ERROR_NONE != validate_menu(menu)) return nullptr;
return menu->unsetContent();
}
EAPI int ui_menu_activate(ui_menu *menu)
{
int ret = validate_menu(menu);
- if (ret != TIZEN_ERROR_NONE) return ret;
+ if (ret != UI_VIEWMGR_ERROR_NONE) return ret;
return menu->activate();
}
EAPI int ui_menu_deactivate(ui_menu *menu)
{
int ret = validate_menu(menu);
- if (ret != TIZEN_ERROR_NONE) return ret;
+ if (ret != UI_VIEWMGR_ERROR_NONE) return ret;
return menu->deactivate();
}
EAPI bool ui_menu_get_activated(ui_menu *menu)
{
- if (TIZEN_ERROR_NONE != validate_menu(menu)) return nullptr;
+ if (UI_VIEWMGR_ERROR_NONE != validate_menu(menu)) return nullptr;
return menu->isActivated();
}
EAPI Eo *ui_menu_get_base(ui_menu *menu)
{
- if (TIZEN_ERROR_NONE != validate_menu(menu)) return nullptr;
+ if (UI_VIEWMGR_ERROR_NONE != validate_menu(menu)) return nullptr;
return menu->getBase();
}
EAPI int ui_menu_get_degree(ui_menu *menu)
{
- if (TIZEN_ERROR_NONE != validate_menu(menu)) return -1;
+ if (UI_VIEWMGR_ERROR_NONE != validate_menu(menu)) return -1;
return menu->getDegree();
}
EAPI ui_view *ui_menu_get_view(ui_menu *menu)
{
- if (TIZEN_ERROR_NONE != validate_menu(menu)) return nullptr;
+ if (UI_VIEWMGR_ERROR_NONE != validate_menu(menu)) return nullptr;
return dynamic_cast<ui_view *>(menu->getView());
}
if (!popup)
{
LOGE("Invalid ui_popup = nullptr");
- return TIZEN_ERROR_INVALID_PARAMETER;
+ return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
}
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
EAPI ui_popup *ui_popup_create(ui_view *view)
EAPI int ui_popup_destroy(ui_popup *popup)
{
int ret = validate_popup(popup);
- if (ret != TIZEN_ERROR_NONE) return ret;
+ if (ret != UI_VIEWMGR_ERROR_NONE) return ret;
delete(popup);
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
EAPI int ui_popup_set_content(ui_popup *popup, Elm_Popup *content)
{
int ret = validate_popup(popup);
- if (ret != TIZEN_ERROR_NONE) return ret;
+ if (ret != UI_VIEWMGR_ERROR_NONE) return ret;
return popup->setContent(content);
}
EAPI Elm_Popup *ui_popup_get_content(ui_popup *popup)
{
- if (TIZEN_ERROR_NONE != validate_popup(popup)) return nullptr;
+ if (UI_VIEWMGR_ERROR_NONE != validate_popup(popup)) return nullptr;
return popup->getContent();
}
EAPI Elm_Popup *ui_popup_unset_content(ui_popup *popup)
{
- if (TIZEN_ERROR_NONE != validate_popup(popup)) return nullptr;
+ if (UI_VIEWMGR_ERROR_NONE != validate_popup(popup)) return nullptr;
return popup->unsetContent();
}
EAPI int ui_popup_activate(ui_popup *popup)
{
int ret = validate_popup(popup);
- if (ret != TIZEN_ERROR_NONE) return ret;
+ if (ret != UI_VIEWMGR_ERROR_NONE) return ret;
return popup->activate();
}
EAPI int ui_popup_deactivate(ui_popup *popup)
{
int ret = validate_popup(popup);
- if (ret != TIZEN_ERROR_NONE) return ret;
+ if (ret != UI_VIEWMGR_ERROR_NONE) return ret;
return popup->deactivate();
}
EAPI bool ui_popup_get_activated(ui_popup *popup)
{
- if (TIZEN_ERROR_NONE != validate_popup(popup)) return false;
+ if (UI_VIEWMGR_ERROR_NONE != validate_popup(popup)) return false;
return popup->isActivated();
}
EAPI Eo *ui_popup_get_base(ui_popup *popup)
{
- if (TIZEN_ERROR_NONE != validate_popup(popup)) return nullptr;
+ if (UI_VIEWMGR_ERROR_NONE != validate_popup(popup)) return nullptr;
return popup->getBase();
}
EAPI int ui_popup_get_degree(ui_popup *popup)
{
- if (TIZEN_ERROR_NONE != validate_popup(popup)) return -1;
+ if (UI_VIEWMGR_ERROR_NONE != validate_popup(popup)) return -1;
return popup->getDegree();
}
EAPI ui_view *ui_popup_get_view(ui_popup *popup)
{
- if (TIZEN_ERROR_NONE != validate_popup(popup)) return nullptr;
+ if (UI_VIEWMGR_ERROR_NONE != validate_popup(popup)) return nullptr;
return dynamic_cast<ui_view *>(popup->getView());
}
EAPI int ui_standard_view_set_title(ui_standard_view *view, const char *text)
{
ui_standard_view_capi *capi_view = validate_view(view);
- if (!capi_view) return TIZEN_ERROR_INVALID_PARAMETER;
+ if (!capi_view) return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
return capi_view->setTitle(text);
}
EAPI int ui_standard_view_set_sub_title(ui_standard_view *view, const char *text)
{
ui_standard_view_capi *capi_view = validate_view(view);
- if (!capi_view) return TIZEN_ERROR_INVALID_PARAMETER;
+ if (!capi_view) return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
return capi_view->setSubtitle(text);
}
EAPI int ui_standard_view_set_title_badge(ui_standard_view *view, const char *badge_text)
{
ui_standard_view_capi *capi_view = validate_view(view);
- if (!capi_view) return TIZEN_ERROR_INVALID_PARAMETER;
+ if (!capi_view) return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
return capi_view->setTitleBadge(badge_text);
}
EAPI int ui_standard_view_set_title_right_btn(ui_standard_view *view, Eo *title_right_btn)
{
ui_standard_view_capi *capi_view = validate_view(view);
- if (!capi_view) return TIZEN_ERROR_INVALID_PARAMETER;
+ if (!capi_view) return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
return capi_view->setTitleRightBtn(title_right_btn);
}
EAPI int ui_standard_view_set_title_left_btn(ui_standard_view *view, Eo *title_left_btn)
{
ui_standard_view_capi *capi_view = validate_view(view);
- if (!capi_view) return TIZEN_ERROR_INVALID_PARAMETER;
+ if (!capi_view) return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
return capi_view->setTitleLeftBtn(title_left_btn);
}
EAPI int ui_standard_view_set_toolbar(ui_standard_view *view, Elm_Toolbar *toolbar)
{
ui_standard_view_capi *capi_view = validate_view(view);
- if (!capi_view) return TIZEN_ERROR_INVALID_PARAMETER;
+ if (!capi_view) return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
return capi_view->setToolbar(toolbar);
}
EAPI int ui_standard_view_set_title_visible(ui_standard_view *view, bool visible, bool anim)
{
ui_standard_view_capi *capi_view = validate_view(view);
- if (!capi_view) return TIZEN_ERROR_INVALID_PARAMETER;
+ if (!capi_view) return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
return capi_view->setTitleVisible(visible, anim);
}
if (!view)
{
LOGE("Invalid ui_view = nullptr");
- return TIZEN_ERROR_INVALID_PARAMETER;
+ return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
}
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
EAPI ui_view* ui_view_create(const char *name)
EAPI int ui_view_set_event_cb(ui_view *view, ui_view_event_type_e event_type, ui_view_event_cb event_cb, void *user_data)
{
int ret = validate_view(view);
- if (ret != TIZEN_ERROR_NONE) return ret;
+ if (ret != UI_VIEWMGR_ERROR_NONE) return ret;
if (event_type < UI_VIEW_EVENT_LOAD || event_type >= _NUM_OF_UI_VIEW_EVENT_TYPE)
{
LOGE("This view(%p) event_type is invalid(%d)", view, event_type);
- return TIZEN_ERROR_INVALID_PARAMETER;
+ return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
}
auto event_attr = dynamic_cast<ui_common_view_capi *>(view);
if (!event_attr)
{
LOGE("This view(%p) doesn't allow event callback?!");
- return TIZEN_ERROR_INVALID_PARAMETER;
+ return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
}
event_attr->event_cb[event_type] = event_cb;
event_attr->event_data[event_type] = user_data;
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
EAPI Eo* ui_view_get_base(ui_view *view)
{
- if (TIZEN_ERROR_NONE != validate_view(view)) return nullptr;
+ if (UI_VIEWMGR_ERROR_NONE != validate_view(view)) return nullptr;
return view->getBase();
}
EAPI Eo *ui_view_unset_content(ui_view *view)
{
- if (TIZEN_ERROR_NONE != validate_view(view)) return nullptr;
+ if (UI_VIEWMGR_ERROR_NONE != validate_view(view)) return nullptr;
return view->unsetContent();
}
EAPI int ui_view_set_indicator(ui_view *view, ui_view_indicator indicator)
{
int ret = validate_view(view);
- if (ret != TIZEN_ERROR_NONE) return ret;
+ if (ret != UI_VIEWMGR_ERROR_NONE) return ret;
return view->setIndicator(indicator);
}
EAPI ui_view_indicator ui_view_get_indicator(ui_view *view)
{
- if (TIZEN_ERROR_NONE != validate_view(view)) return UI_VIEW_INDICATOR_UNKNOWN;
+ if (UI_VIEWMGR_ERROR_NONE != validate_view(view)) return UI_VIEW_INDICATOR_UNKNOWN;
return view->getIndicator();
}
EAPI int ui_view_set_removable_content(ui_view *view, bool remove)
{
int ret = validate_view(view);
- if (ret != TIZEN_ERROR_NONE) return ret;
+ if (ret != UI_VIEWMGR_ERROR_NONE) return ret;
view->setRemovableContent(remove);
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
EAPI bool ui_view_get_removable_content(ui_view *view)
{
- if (TIZEN_ERROR_NONE != validate_view(view)) return false;
+ if (UI_VIEWMGR_ERROR_NONE != validate_view(view)) return false;
return view->getRemovableContent();
}
EAPI int ui_view_get_degree(ui_view *view)
{
- if (TIZEN_ERROR_NONE != validate_view(view)) return -1;
+ if (UI_VIEWMGR_ERROR_NONE != validate_view(view)) return -1;
return view->getDegree();
}
EAPI ui_view_orientation_mode ui_view_get_orientation_mode(ui_view *view)
{
- if (TIZEN_ERROR_NONE != validate_view(view)) return UI_VIEW_ORIENTATION_MODE_UNKNOWN;
+ if (UI_VIEWMGR_ERROR_NONE != validate_view(view)) return UI_VIEW_ORIENTATION_MODE_UNKNOWN;
return view->getOrientationMode();
}
EAPI int ui_view_set_available_rotations(ui_view *view, const int *rotations, unsigned int count)
{
int ret = validate_view(view);
- if (ret != TIZEN_ERROR_NONE) return ret;
+ if (ret != UI_VIEWMGR_ERROR_NONE) return ret;
return view->setAvailableRotations(rotations, count);
}
EAPI const int *ui_view_get_available_rotations(ui_view *view, unsigned int *count)
{
- if (TIZEN_ERROR_NONE != validate_view(view)) return false;
+ if (UI_VIEWMGR_ERROR_NONE != validate_view(view)) return false;
return view->getAvailableRotations(count);
}
EAPI int ui_view_set_transition_style(ui_view *view, const char *style)
{
int ret = validate_view(view);
- if (ret != TIZEN_ERROR_NONE) return ret;
+ if (ret != UI_VIEWMGR_ERROR_NONE) return ret;
return view->setTransitionStyle(style);
}
EAPI const char *ui_view_get_transition_style(ui_view *view)
{
- if (TIZEN_ERROR_NONE != validate_view(view)) return nullptr;
+ if (UI_VIEWMGR_ERROR_NONE != validate_view(view)) return nullptr;
return view->getTransitionStyle();
}
EAPI ui_menu *ui_view_get_menu(ui_view *view)
{
- if (TIZEN_ERROR_NONE != validate_view(view)) return nullptr;
+ if (UI_VIEWMGR_ERROR_NONE != validate_view(view)) return nullptr;
return const_cast<ui_menu*>(view->getMenu());
}
EAPI const char *ui_view_get_name(ui_view *view)
{
- if (TIZEN_ERROR_NONE != validate_view(view)) return nullptr;
+ if (UI_VIEWMGR_ERROR_NONE != validate_view(view)) return nullptr;
return view->getName();
}
EAPI ui_view_state ui_view_get_state(ui_view *view)
{
- if (TIZEN_ERROR_NONE != validate_view(view)) return UI_VIEW_STATE_UNKNOWN;
+ if (UI_VIEWMGR_ERROR_NONE != validate_view(view)) return UI_VIEW_STATE_UNKNOWN;
return view->getState();
}
EAPI Eo *ui_view_get_content(ui_view *view)
{
- if (TIZEN_ERROR_NONE != validate_view(view)) return nullptr;
+ if (UI_VIEWMGR_ERROR_NONE != validate_view(view)) return nullptr;
return view->getContent();
}
EAPI int ui_view_destroy(ui_view *view)
{
int ret = validate_view(view);
- if (ret != TIZEN_ERROR_NONE) return ret;
+ if (ret != UI_VIEWMGR_ERROR_NONE) return ret;
delete (view);
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
EAPI int ui_view_set_content(ui_view *view, Eo *content)
{
int ret = validate_view(view);
- if (ret != TIZEN_ERROR_NONE) return ret;
+ if (ret != UI_VIEWMGR_ERROR_NONE) return ret;
return view->setContent(content);
}
EAPI const char *ui_view_get_type(ui_view *view)
{
- if (TIZEN_ERROR_NONE != validate_view(view)) return false;
+ if (UI_VIEWMGR_ERROR_NONE != validate_view(view)) return false;
return dynamic_cast<ui_common_view_capi *>(view)->type;
}
if (!view)
{
LOGE("Invalid Parameter view = %p", view);
- return TIZEN_ERROR_INVALID_PARAMETER;
+ return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
}
return UI_VIEWMGR->pushView(view);
if (!view)
{
LOGE("Invalid Parameter view = %p", view);
- return TIZEN_ERROR_INVALID_PARAMETER;
+ return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
}
return UI_VIEWMGR->insertViewBefore(view, before);
if (!view)
{
LOGE("Invalid Parameter view = %p", view);
- return TIZEN_ERROR_INVALID_PARAMETER;
+ return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
}
return UI_VIEWMGR->insertViewAfter(view, after);
int UiIfaceOverlayImpl::setContent(T content)
{
this->_content = content;
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
T UiIfaceOverlayImpl::unsetContent()
{
this->_eventBlock = block;
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
void UiIfaceViewImpl::onLoad()
int UiIfaceViewImpl::setContent(T content)
{
this->_content = content;
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
T UiIfaceViewImpl::unsetContent()
//FIXME: Check style is valid or not?
this->_transitionStyle.assign(style);
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
void UiIfaceViewImpl::setRemovableContent(bool removable)
int UiIfaceViewImpl::setIndicator(UiViewIndicator indicator)
{
if (indicator <= UI_VIEW_INDICATOR_UNKNOWN || indicator >= _NUM_OF_UI_VIEW_INDICATOR)
- return TIZEN_ERROR_INVALID_PARAMETER;
+ return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
this->_indicator = indicator;
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
int UiIfaceViewImpl::setAvailableRotations(const int *rotations, unsigned int count)
if (!rotations)
{
LOGE("rotations is invalid (NULL)");
- return TIZEN_ERROR_INVALID_PARAMETER;
+ return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
}
if (count <= 0) {
LOGE("Invalid count value %d count must bigger than 0", count);
- return TIZEN_ERROR_INVALID_PARAMETER;
+ return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
}
this->_rotations = new int[count];
if (!this->_rotations) {
LOGE("Memory Allocation failed");
- return TIZEN_ERROR_OUT_OF_MEMORY;
+ return UI_VIEWMGR_ERROR_OUT_OF_MEMORY;
}
for (unsigned int i = 0; i < count; i++) {
this->_rotationCount = count;
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
const int *UiIfaceViewImpl::getAvailableRotations(unsigned int *count)
{
if (!view) {
LOGE("invalid view argument. view(nullptr)");
- return TIZEN_ERROR_INVALID_PARAMETER;
+ return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
}
if (view == after) {
LOGE("invalid view argument. view == after?");
- return TIZEN_ERROR_INVALID_PARAMETER;
+ return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
}
int ret = this->connectView(view);
- if (ret != TIZEN_ERROR_NONE) {
+ if (ret != UI_VIEWMGR_ERROR_NONE) {
LOGE("connect view failed");
return ret;
}
else
this->_viewList.insert(++it, view);
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
}
}
//Got you!
if ((viewNameLen == nameLen) && !strcmp(name, viewName)) {
LOGE("the same name of UiIfaceView(%p) is already in this UiIfaceViewmgr(%p)", v, this);
- return TIZEN_ERROR_NOT_PERMITTED;
+ return UI_VIEWMGR_ERROR_NOT_PERMITTED;
}
}
view->_setViewmgr(this->getInstance());
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
int UiIfaceViewmgrImpl::disconnectView(UiIfaceView *view)
{
- if (!view->_getViewmgr()) return TIZEN_ERROR_NOT_PERMITTED;
+ if (!view->_getViewmgr()) return UI_VIEWMGR_ERROR_NOT_PERMITTED;
view->_setViewmgr(nullptr);
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
void UiIfaceViewmgrImpl::setEventBlock(UiIfaceView *view, bool block)
{
if (!view) {
LOGE("invalid view argument. view(nullptr)");
- return TIZEN_ERROR_INVALID_PARAMETER;
+ return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
}
int ret = this->connectView(view);
- if (ret != TIZEN_ERROR_NONE) {
+ if (ret != UI_VIEWMGR_ERROR_NONE) {
LOGE("connect view failed");
return ret;
}
this->_viewList.push_back(view);
//If view manager is not activated yet, don't load view.
- if (!this->isActivated()) return TIZEN_ERROR_NONE;
+ if (!this->isActivated()) return UI_VIEWMGR_ERROR_NONE;
view->onLoad();
view->onDeactivate();
this->setEventBlock(view, true);
}
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
int UiIfaceViewmgrImpl::popView()
auto view = this->_viewList.back();
if (view->getEventBlock()) {
- return TIZEN_ERROR_ALREADY_IN_PROGRESS;
+ return UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS;
}
if (this->getViewCount() == 0) {
LOGE("No Views. Can't pop anymore!");
- return TIZEN_ERROR_NOT_PERMITTED;
+ return UI_VIEWMGR_ERROR_NOT_PERMITTED;
}
//This is the last page.
view->onDestroy();
delete(view);
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
view->setPopping(true);
pview->onDeactivate();
this->setEventBlock(pview, true);
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
int UiIfaceViewmgrImpl::insertViewBefore(UiIfaceView *view, UiIfaceView *before)
{
if (!view) {
LOGE("invalid view argument. view(nullptr)");
- return TIZEN_ERROR_INVALID_PARAMETER;
+ return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
}
if (view == before) {
LOGE("invalid view argument. view == before?");
- return TIZEN_ERROR_INVALID_PARAMETER;
+ return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
}
int ret = this->connectView(view);
- if (ret != TIZEN_ERROR_NONE) {
+ if (ret != UI_VIEWMGR_ERROR_NONE) {
LOGE("connect view failed");
return ret;
}
for (auto it = this->_viewList.begin(); it != this->_viewList.end(); it++) {
if (before == *it) {
this->_viewList.insert(it, view);
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
}
}
int UiIfaceViewmgrImpl::removeView(UiIfaceView *view)
{
- if (this->_destroying) return TIZEN_ERROR_NONE;
+ if (this->_destroying) return UI_VIEWMGR_ERROR_NONE;
this->_viewList.remove(view);
int UiIfaceViewmgrImpl::activate()
{
- if (this->_activated) return TIZEN_ERROR_ALREADY_IN_PROGRESS;
- if (this->getViewCount() == 0) return TIZEN_ERROR_NOT_PERMITTED;
+ if (this->_activated) return UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS;
+ if (this->getViewCount() == 0) return UI_VIEWMGR_ERROR_NOT_PERMITTED;
this->_activated = true;
auto view = this->getLastView();
view->onDeactivate();
view->onActivate();
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
int UiIfaceViewmgrImpl::deactivate()
{
- if (!this->_activated)return TIZEN_ERROR_ALREADY_IN_PROGRESS;
+ if (!this->_activated)return UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS;
this->_activated = false;
auto view = this->getLastView();
view->onUnload();
}
- return TIZEN_ERROR_NONE;
+ return UI_VIEWMGR_ERROR_NONE;
}
UiIfaceView *UiIfaceViewmgrImpl::getView(const char *name)