Using two types of class convention makes us confuse...
Change-Id: Ifa46d829b38755b9dd35265a76f6a090a030dfd7
namespace efl_viewmanager
{
-class ui_common_view_capi
+class UiCommonViewCapi
{
public:
//TODO: Optimize memory? We don't need all slots.
const char *type = nullptr;
- ui_common_view_capi(const char *type) : type(type)
+ UiCommonViewCapi(const char *type) : type(type)
{
}
- ~ui_common_view_capi()
+ ~UiCommonViewCapi()
{
}
};
static const char *_this_type = "ui_standard_view";
-class ui_standard_view_capi: public ui_standard_view, public ui_common_view_capi
+class UiStandardViewCapi: public UiStandardView, public UiCommonViewCapi
{
public:
void onLoad() override
if (!this->event_cb[UI_VIEW_EVENT_LOAD](this, this->event_data[UI_VIEW_EVENT_LOAD])) return;
}
- ui_standard_view::onLoad();
+ UiStandardView::onLoad();
if (this->event_cb[UI_VIEW_EVENT_LOAD_POST])
{
if (!this->event_cb[UI_VIEW_EVENT_UNLOAD](this, this->event_data[UI_VIEW_EVENT_UNLOAD])) return;
}
- ui_standard_view::onUnload();
+ UiStandardView::onUnload();
if (this->event_cb[UI_VIEW_EVENT_UNLOAD_POST])
{
if (!this->event_cb[UI_VIEW_EVENT_PAUSE](this, this->event_data[UI_VIEW_EVENT_PAUSE])) return;
}
- ui_standard_view::onPause();
+ UiStandardView::onPause();
if (this->event_cb[UI_VIEW_EVENT_PAUSE_POST])
{
if (!this->event_cb[UI_VIEW_EVENT_RESUME](this, this->event_data[UI_VIEW_EVENT_RESUME])) return;
}
- ui_standard_view::onResume();
+ UiStandardView::onResume();
if (this->event_cb[UI_VIEW_EVENT_RESUME_POST])
{
if (!this->event_cb[UI_VIEW_EVENT_ACTIVATE](this, this->event_data[UI_VIEW_EVENT_ACTIVATE])) return;
}
- ui_standard_view::onActivate();
+ UiStandardView::onActivate();
if (this->event_cb[UI_VIEW_EVENT_ACTIVATE_POST])
{
if (!this->event_cb[UI_VIEW_EVENT_DEACTIVATE](this, this->event_data[UI_VIEW_EVENT_DEACTIVATE])) return;
}
- ui_standard_view::onDeactivate();
+ UiStandardView::onDeactivate();
if (this->event_cb[UI_VIEW_EVENT_DEACTIVATE_POST])
{
if (!this->event_cb[UI_VIEW_EVENT_DESTROY](this, this->event_data[UI_VIEW_EVENT_DESTROY])) return;
}
- ui_standard_view::onDestroy();
+ UiStandardView::onDestroy();
if (this->event_cb[UI_VIEW_EVENT_DESTROY_POST])
{
if (!(*this->event_cb[UI_VIEW_EVENT_PORTRAIT])(this, this->event_data[UI_VIEW_EVENT_PORTRAIT])) return;
}
- ui_standard_view::onPortrait();
+ UiStandardView::onPortrait();
if (this->event_cb[UI_VIEW_EVENT_PORTRAIT_POST])
{
if (!(*this->event_cb[UI_VIEW_EVENT_LANDSCAPE])(this, this->event_data[UI_VIEW_EVENT_LANDSCAPE])) return;
}
- ui_standard_view::onLandscape();
+ UiStandardView::onLandscape();
if (this->event_cb[UI_VIEW_EVENT_LANDSCAPE_POST])
{
if (!(*this->event_cb[UI_VIEW_EVENT_ROTATE])(this, this->event_data[UI_VIEW_EVENT_ROTATE])) return;
}
- ui_standard_view::onRotate(degree);
+ UiStandardView::onRotate(degree);
if (this->event_cb[UI_VIEW_EVENT_ROTATE_POST])
{
if (!(*this->event_cb[UI_VIEW_EVENT_BACK])(this, this->event_data[UI_VIEW_EVENT_BACK])) return;
}
- ui_standard_view::onBack();
+ UiStandardView::onBack();
if (this->event_cb[UI_VIEW_EVENT_BACK_POST])
{
if (!(*this->event_cb[UI_VIEW_EVENT_MENU])(this, this->event_data[UI_VIEW_EVENT_MENU])) return;
}
- ui_standard_view::onMenu(menu);
+ UiStandardView::onMenu(menu);
if (this->event_cb[UI_VIEW_EVENT_MENU_POST])
{
}
}
- ui_standard_view_capi(const char *name)
- : ui_standard_view(name), ui_common_view_capi(_this_type)
+ UiStandardViewCapi(const char *name)
+ : UiStandardView(name), UiCommonViewCapi(_this_type)
{
}
- ~ui_standard_view_capi()
+ ~UiStandardViewCapi()
{
}
};
struct ui_standard_view_s
{
- ui_standard_view_capi *p;
+ UiStandardViewCapi *p;
};
-static ui_standard_view_capi *validate_view(const ui_standard_view *view)
+static UiStandardViewCapi *validate_view(const ui_standard_view *view)
{
if (!view)
{
return nullptr;
}
- auto capi_view = dynamic_cast<ui_standard_view_capi *>(const_cast<ui_standard_view*>(view));
+ auto capi_view = dynamic_cast<UiStandardViewCapi *>(const_cast<ui_standard_view*>(view));
if (!capi_view)
{
LOGE("Invalid ui_standard_view = %p. Probably, you passed other type of view, not ui_tab_view.", view);
EAPI ui_standard_view* ui_standard_view_create(const char *name)
{
- ui_standard_view *view = new ui_standard_view_capi(name);
+ ui_standard_view *view = new UiStandardViewCapi(name);
if (!view)
{
}
set_last_result(UI_VIEWMGR_ERROR_NONE);
- return new ui_standard_view_capi(name);
+ return new UiStandardViewCapi(name);
}
EAPI int ui_standard_view_set_title(ui_standard_view *view, const char *text)
{
- ui_standard_view_capi *capi_view = validate_view(view);
+ UiStandardViewCapi *capi_view = validate_view(view);
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);
+ UiStandardViewCapi *capi_view = validate_view(view);
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);
+ UiStandardViewCapi *capi_view = validate_view(view);
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);
+ UiStandardViewCapi *capi_view = validate_view(view);
if (!capi_view) return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
return capi_view->setTitleRightBtn(title_right_btn);
EAPI Elm_Button *ui_standard_view_get_title_right_btn(const ui_standard_view *view)
{
- ui_standard_view_capi *capi_view = validate_view(view);
+ UiStandardViewCapi *capi_view = validate_view(view);
if (!capi_view)
{
set_last_result(UI_VIEWMGR_ERROR_INVALID_PARAMETER);
EAPI Elm_Button *ui_standard_view_unset_title_right_btn(ui_standard_view *view)
{
- ui_standard_view_capi *capi_view = validate_view(view);
+ UiStandardViewCapi *capi_view = validate_view(view);
if (!capi_view) return nullptr;
return capi_view->unsetTitleRightBtn();
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);
+ UiStandardViewCapi *capi_view = validate_view(view);
if (!capi_view) return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
return capi_view->setTitleLeftBtn(title_left_btn);
EAPI Elm_Button *ui_standard_view_get_title_left_btn(const ui_standard_view *view)
{
- ui_standard_view_capi *capi_view = validate_view(view);
+ UiStandardViewCapi *capi_view = validate_view(view);
if (!capi_view) return nullptr;
set_last_result(UI_VIEWMGR_ERROR_NONE);
EAPI Elm_Button *ui_standard_view_unset_title_left_btn(ui_standard_view *view)
{
- ui_standard_view_capi *capi_view = validate_view(view);
+ UiStandardViewCapi *capi_view = validate_view(view);
if (!capi_view) return nullptr;
return capi_view->unsetTitleLeftBtn();
EAPI int ui_standard_view_set_toolbar(ui_standard_view *view, Elm_Toolbar *toolbar)
{
- ui_standard_view_capi *capi_view = validate_view(view);
+ UiStandardViewCapi *capi_view = validate_view(view);
if (!capi_view) return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
return capi_view->setToolbar(toolbar);
EAPI Elm_Toolbar *ui_standard_view_get_toolbar(const ui_standard_view *view)
{
- ui_standard_view_capi *capi_view = validate_view(view);
+ UiStandardViewCapi *capi_view = validate_view(view);
if (!capi_view) return nullptr;
set_last_result(UI_VIEWMGR_ERROR_NONE);
EAPI Elm_Toolbar *ui_standard_view_unset_toolbar(ui_standard_view *view)
{
- ui_standard_view_capi *capi_view = validate_view(view);
+ UiStandardViewCapi *capi_view = validate_view(view);
if (!capi_view) return nullptr;
return capi_view->unsetToolbar();
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);
+ UiStandardViewCapi *capi_view = validate_view(view);
if (!capi_view) return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
return capi_view->setTitleVisible(visible, anim);
static const char *_this_type = "ui_tab_view";
-class ui_tab_view_capi: public ui_tab_view, public ui_common_view_capi
+class UiTabViewCapi: public UiTabView, public UiCommonViewCapi
{
public:
ui_tab_view_event_cb tab_event_cb[_NUM_OF_UI_TAB_VIEW_EVENT_TYPE] = {nullptr, };
if (!this->event_cb[UI_VIEW_EVENT_LOAD](this, this->event_data[UI_VIEW_EVENT_LOAD])) return;
}
- ui_tab_view::onLoad();
+ UiTabView::onLoad();
if (this->event_cb[UI_VIEW_EVENT_LOAD_POST])
{
if (!this->event_cb[UI_VIEW_EVENT_UNLOAD](this, this->event_data[UI_VIEW_EVENT_UNLOAD])) return;
}
- ui_tab_view::onUnload();
+ UiTabView::onUnload();
if (this->event_cb[UI_VIEW_EVENT_UNLOAD_POST])
{
if (!this->event_cb[UI_VIEW_EVENT_PAUSE](this, this->event_data[UI_VIEW_EVENT_PAUSE])) return;
}
- ui_tab_view::onPause();
+ UiTabView::onPause();
if (this->event_cb[UI_VIEW_EVENT_PAUSE_POST])
{
if (!this->event_cb[UI_VIEW_EVENT_RESUME](this, this->event_data[UI_VIEW_EVENT_RESUME])) return;
}
- ui_tab_view::onResume();
+ UiTabView::onResume();
if (this->event_cb[UI_VIEW_EVENT_RESUME_POST])
{
if (!this->event_cb[UI_VIEW_EVENT_ACTIVATE](this, this->event_data[UI_VIEW_EVENT_ACTIVATE])) return;
}
- ui_tab_view::onActivate();
+ UiTabView::onActivate();
if (this->event_cb[UI_VIEW_EVENT_ACTIVATE_POST])
{
if (!this->event_cb[UI_VIEW_EVENT_DEACTIVATE](this, this->event_data[UI_VIEW_EVENT_DEACTIVATE])) return;
}
- ui_tab_view::onDeactivate();
+ UiTabView::onDeactivate();
if (this->event_cb[UI_VIEW_EVENT_DEACTIVATE_POST])
{
if (!this->event_cb[UI_VIEW_EVENT_DESTROY](this, this->event_data[UI_VIEW_EVENT_DESTROY])) return;
}
- ui_tab_view::onDestroy();
+ UiTabView::onDestroy();
if (this->event_cb[UI_VIEW_EVENT_DESTROY_POST])
{
if (!(*this->event_cb[UI_VIEW_EVENT_PORTRAIT])(this, this->event_data[UI_VIEW_EVENT_PORTRAIT])) return;
}
- ui_tab_view::onPortrait();
+ UiTabView::onPortrait();
if (this->event_cb[UI_VIEW_EVENT_PORTRAIT_POST])
{
if (!(*this->event_cb[UI_VIEW_EVENT_LANDSCAPE])(this, this->event_data[UI_VIEW_EVENT_LANDSCAPE])) return;
}
- ui_tab_view::onLandscape();
+ UiTabView::onLandscape();
if (this->event_cb[UI_VIEW_EVENT_LANDSCAPE_POST])
{
if (!(*this->event_cb[UI_VIEW_EVENT_ROTATE])(this, this->event_data[UI_VIEW_EVENT_ROTATE])) return;
}
- ui_tab_view::onRotate(degree);
+ UiTabView::onRotate(degree);
if (this->event_cb[UI_VIEW_EVENT_ROTATE_POST])
{
if (!(*this->event_cb[UI_VIEW_EVENT_BACK])(this, this->event_data[UI_VIEW_EVENT_BACK])) return;
}
- ui_tab_view::onBack();
+ UiTabView::onBack();
if (this->event_cb[UI_VIEW_EVENT_BACK_POST])
{
if (!(*this->event_cb[UI_VIEW_EVENT_MENU])(this, this->event_data[UI_VIEW_EVENT_MENU])) return;
}
- ui_tab_view::onMenu(menu);
+ UiTabView::onMenu(menu);
if (this->event_cb[UI_VIEW_EVENT_MENU_POST])
{
}
}
- ui_tab_view_capi(const char *name)
- : ui_tab_view(name), ui_common_view_capi(_this_type)
+ UiTabViewCapi(const char *name)
+ : UiTabView(name), UiCommonViewCapi(_this_type)
{
}
- ~ui_tab_view_capi()
+ ~UiTabViewCapi()
{
}
struct ui_tab_view_s
{
- ui_tab_view_capi *p;
+ UiTabViewCapi *p;
};
-static ui_tab_view_capi *validate_view(const ui_tab_view *view)
+static UiTabViewCapi *validate_view(const ui_tab_view *view)
{
if (!view)
{
return nullptr;
}
- auto capi_view = dynamic_cast<ui_tab_view_capi *>(const_cast<ui_tab_view*>(view));
+ auto capi_view = dynamic_cast<UiTabViewCapi *>(const_cast<ui_tab_view*>(view));
if (!capi_view)
{
LOGE("Invalid ui_tab_view = %p. Probably, you passed other type of view, not ui_tab_view.", view);
EAPI int ui_tab_view_set_event_cb(ui_tab_view *view, ui_tab_view_event_type_e event_type, ui_tab_view_event_cb event_cb, void *user_data)
{
- ui_tab_view_capi *capi_view = validate_view(view);
+ UiTabViewCapi *capi_view = validate_view(view);
if (!capi_view) return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
if (event_type < UI_TAB_ACTIVATED || event_type >= _NUM_OF_UI_TAB_VIEW_EVENT_TYPE)
EAPI ui_tab_view *ui_tab_view_create(const char *name)
{
- ui_tab_view *view = new ui_tab_view_capi(name);
+ ui_tab_view *view = new UiTabViewCapi(name);
if (!view)
{
}
set_last_result(UI_VIEWMGR_ERROR_NONE);
- return new ui_tab_view_capi(name);
+ return new UiTabViewCapi(name);
}
EAPI int ui_tab_view_add_tab(ui_tab_view *view, int id)
{
- ui_tab_view_capi *capi_view = validate_view(view);
+ UiTabViewCapi *capi_view = validate_view(view);
if (!capi_view) return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
return capi_view->addTab(id);
EAPI int ui_tab_view_set_tab_icon(ui_tab_view *view, int id, const char *icon)
{
- ui_tab_view_capi *capi_view = validate_view(view);
+ UiTabViewCapi *capi_view = validate_view(view);
if (!capi_view) return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
return capi_view->setTabIcon(id, icon);
EAPI int ui_tab_view_set_tab_label(ui_tab_view *view, int id, const char *label)
{
- ui_tab_view_capi *capi_view = validate_view(view);
+ UiTabViewCapi *capi_view = validate_view(view);
if (!capi_view) return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
return capi_view->setTabLabel(id, label);
EAPI int ui_tab_view_set_tab_content(ui_tab_view *view, int id, Eo *content)
{
- ui_tab_view_capi *capi_view = validate_view(view);
+ UiTabViewCapi *capi_view = validate_view(view);
if (!capi_view) return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
return capi_view->setTabContent(id, content);
EAPI const char *ui_tab_view_get_tab_icon(ui_tab_view *view, int id)
{
- ui_tab_view_capi *capi_view = validate_view(view);
+ UiTabViewCapi *capi_view = validate_view(view);
if (!capi_view) return NULL;
return capi_view->getTabIcon(id);
EAPI const char *ui_tab_view_get_tab_label(ui_tab_view *view,int id)
{
- ui_tab_view_capi *capi_view = validate_view(view);
+ UiTabViewCapi *capi_view = validate_view(view);
if (!capi_view) return NULL;
return capi_view->getTabLabel(id);
EAPI Eo *ui_tab_view_get_tab_content(ui_tab_view *view, int id)
{
- ui_tab_view_capi *capi_view = validate_view(view);
+ UiTabViewCapi *capi_view = validate_view(view);
if (!capi_view) return NULL;
return capi_view->getTabContent(id);
EAPI const char *ui_tab_view_unset_tab_icon(ui_tab_view *view, int id)
{
- ui_tab_view_capi *capi_view = validate_view(view);
+ UiTabViewCapi *capi_view = validate_view(view);
if (!capi_view) return NULL;
return capi_view->unsetTabIcon(id);
EAPI const char *ui_tab_view_unset_tab_label(ui_tab_view *view, int id)
{
- ui_tab_view_capi *capi_view = validate_view(view);
+ UiTabViewCapi *capi_view = validate_view(view);
if (!capi_view) return NULL;
return capi_view->unsetTabLabel(id);
EAPI Eo *ui_tab_view_unset_tab_content(ui_tab_view *view, int id)
{
- ui_tab_view_capi *capi_view = validate_view(view);
+ UiTabViewCapi *capi_view = validate_view(view);
if (!capi_view) return NULL;
return capi_view->unsetTabContent(id);
EAPI int ui_tab_view_select_tab(ui_tab_view *view, int id)
{
- ui_tab_view_capi *capi_view = validate_view(view);
+ UiTabViewCapi *capi_view = validate_view(view);
if (!capi_view) return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
return capi_view->selectTab(id);
EAPI int ui_tab_view_get_selected_tab(ui_tab_view *view)
{
- ui_tab_view_capi *capi_view = validate_view(view);
+ UiTabViewCapi *capi_view = validate_view(view);
if (!capi_view) return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
return capi_view->getSelectedTab();
EAPI int ui_tab_view_remove_tab(ui_tab_view *view, int id)
{
- ui_tab_view_capi *capi_view = validate_view(view);
+ UiTabViewCapi *capi_view = validate_view(view);
if (!capi_view) return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
return capi_view->removeTab(id);
static const char *_this_type = "ui_view";
-class ui_view_capi: public ui_view, public ui_common_view_capi
+class UiViewCapi: public UiView, public UiCommonViewCapi
{
public:
void onLoad() override
if (!this->event_cb[UI_VIEW_EVENT_LOAD](this, this->event_data[UI_VIEW_EVENT_LOAD])) return;
}
- ui_view::onLoad();
+ UiView::onLoad();
if (this->event_cb[UI_VIEW_EVENT_LOAD_POST])
{
if (!this->event_cb[UI_VIEW_EVENT_UNLOAD](this, this->event_data[UI_VIEW_EVENT_UNLOAD])) return;
}
- ui_view::onUnload();
+ UiView::onUnload();
if (this->event_cb[UI_VIEW_EVENT_UNLOAD_POST])
{
if (!this->event_cb[UI_VIEW_EVENT_PAUSE](this, this->event_data[UI_VIEW_EVENT_PAUSE])) return;
}
- ui_view::onPause();
+ UiView::onPause();
if (this->event_cb[UI_VIEW_EVENT_PAUSE_POST])
{
if (!this->event_cb[UI_VIEW_EVENT_RESUME](this, this->event_data[UI_VIEW_EVENT_RESUME])) return;
}
- ui_view::onResume();
+ UiView::onResume();
if (this->event_cb[UI_VIEW_EVENT_RESUME_POST])
{
if (!this->event_cb[UI_VIEW_EVENT_ACTIVATE](this, this->event_data[UI_VIEW_EVENT_ACTIVATE])) return;
}
- ui_view::onActivate();
+ UiView::onActivate();
if (this->event_cb[UI_VIEW_EVENT_ACTIVATE_POST])
{
if (!this->event_cb[UI_VIEW_EVENT_DEACTIVATE](this, this->event_data[UI_VIEW_EVENT_DEACTIVATE])) return;
}
- ui_view::onDeactivate();
+ UiView::onDeactivate();
if (this->event_cb[UI_VIEW_EVENT_DEACTIVATE_POST])
{
if (!this->event_cb[UI_VIEW_EVENT_DESTROY](this, this->event_data[UI_VIEW_EVENT_DESTROY])) return;
}
- ui_view::onDestroy();
+ UiView::onDestroy();
if (this->event_cb[UI_VIEW_EVENT_DESTROY_POST])
{
if (!(*this->event_cb[UI_VIEW_EVENT_PORTRAIT])(this, this->event_data[UI_VIEW_EVENT_PORTRAIT])) return;
}
- ui_view::onPortrait();
+ UiView::onPortrait();
if (this->event_cb[UI_VIEW_EVENT_PORTRAIT_POST])
{
if (!(*this->event_cb[UI_VIEW_EVENT_LANDSCAPE])(this, this->event_data[UI_VIEW_EVENT_LANDSCAPE])) return;
}
- ui_view::onLandscape();
+ UiView::onLandscape();
if (this->event_cb[UI_VIEW_EVENT_LANDSCAPE_POST])
{
if (!(*this->event_cb[UI_VIEW_EVENT_ROTATE])(this, this->event_data[UI_VIEW_EVENT_ROTATE])) return;
}
- ui_view::onRotate(degree);
+ UiView::onRotate(degree);
if (this->event_cb[UI_VIEW_EVENT_ROTATE_POST])
{
if (!(*this->event_cb[UI_VIEW_EVENT_BACK])(this, this->event_data[UI_VIEW_EVENT_BACK])) return;
}
- ui_view::onBack();
+ UiView::onBack();
if (this->event_cb[UI_VIEW_EVENT_BACK_POST])
{
if (!(*this->event_cb[UI_VIEW_EVENT_MENU])(this, this->event_data[UI_VIEW_EVENT_MENU])) return;
}
- ui_view::onMenu(menu);
+ UiView::onMenu(menu);
if (this->event_cb[UI_VIEW_EVENT_MENU_POST])
{
}
}
- ui_view_capi(const char *name)
- : ui_view(name), ui_common_view_capi(_this_type)
+ UiViewCapi(const char *name)
+ : UiView(name), UiCommonViewCapi(_this_type)
{
}
- ~ui_view_capi()
+ ~UiViewCapi()
{
}
};
struct ui_view_s
{
- ui_view_capi *p;
+ UiViewCapi *p;
};
static int validate_view(const ui_view *view)
EAPI ui_view* ui_view_create(const char *name)
{
- ui_view *view = new ui_view_capi(name);
+ ui_view *view = new UiViewCapi(name);
if (!view)
{
return UI_VIEWMGR_ERROR_INVALID_PARAMETER;
}
- auto event_attr = dynamic_cast<ui_common_view_capi *>(view);
+ auto event_attr = dynamic_cast<UiCommonViewCapi *>(view);
if (!event_attr)
{
LOGE("This view(%p) doesn't allow event callback?!");
if (UI_VIEWMGR_ERROR_NONE != validate_view(view)) return false;
set_last_result(UI_VIEWMGR_ERROR_NONE);
- return dynamic_cast<ui_common_view_capi *>(view)->type;
+ return dynamic_cast<UiCommonViewCapi *>(view)->type;
}