*
* @return The base object of view
*/
- virtual Eo *getBase();
+ virtual Eo *getBase() const;
/**
* @brief Set the indicator mode.
*
* @return Current rotation degree, -1 if it fails to get degree information
*/
- virtual int getDegree() override;
+ virtual int getDegree() const override;
protected:
/**
*
* @return The base layout object of viewmgr.
*/
- Eo *getParent();
+ Eo *getParent() const;
/**
* @brief Toggle event block.
*
* @return The base object of this viewmgr.
*/
- Eo *getBase();
+ Eo *getBase() const;
protected:
/**
* @see activate()
* @see deactivate()
*/
- virtual bool isActivated() override;
+ virtual bool isActivated() const override;
/**
* @brief Gets a base object of menu.
*
* @return base object of menu
*/
- virtual Eo *getBase();
+ virtual Eo *getBase() const;
/**
* @brief Get a current menu's degree.
*
* @return Current rotation degree, -1 if it fails to get degree information.
*/
- virtual int getDegree() override;
+ virtual int getDegree() const override;
protected:
/**
*
* @return viewmgr's window object.
*/
- Elm_Win *getWindow();
+ Elm_Win *getWindow() const;
public:
_UI_DISABLE_DEFAULT_CTOR(UiMenu);
* @see activate()
* @see deactivate()
*/
- virtual bool isActivated() override;
+ virtual bool isActivated() const override;
/**
* @brief Gets a base object of popup.
*
* @return base object of popup
*/
- virtual Eo *getBase();
+ virtual Eo *getBase() const;
/**
* @brief Get current popup's degree.
*
* @return Current rotation degree, -1 if it fails to get degree information.
*/
- virtual int getDegree() override;
+ virtual int getDegree() const override;
protected:
/**
*
* @return viewmgr's window object.
*/
- virtual Elm_Win *getWindow();
+ virtual Elm_Win *getWindow() const;
public:
_UI_DISABLE_DEFAULT_CTOR(UiPopup);
* @see setTitleLeftBtn()
* @see unsetTitleLeftBtn()
*/
- Elm_Button *getTitleLeftBtn();
+ Elm_Button *getTitleLeftBtn() const;
/**
* @brief Returns a title right button of the view.
* @see setTitleRightBtn()
* @see unsetTitleRightBtn()
*/
- Elm_Button *getTitleRightBtn();
+ Elm_Button *getTitleRightBtn() const;
/**
* @brief Returns a toolbar of the view.
* @see setToolbar()
* @see unsetToolbar()
*/
- Elm_Toolbar *getToolbar();
+ Elm_Toolbar *getToolbar() const;
/**
* @brief Get a base layout of viewmgr.
*
* @return viewmgr's base layout object.
*/
- virtual Eo *getBase() override;
+ virtual Eo *getBase() const override;
protected:
/**
*
* @return The menu object that connected with this view. If it doesn't, @c nullptr will be returned.
*/
- const UiMenu *getMenu();
+ const UiMenu *getMenu() const;
/**
* @brief Gets current view's orientation mode.
*
* @see UiViewOrientationMode
*/
- virtual UiViewOrientationMode getOrientationMode() override;
+ virtual UiViewOrientationMode getOrientationMode() const override;
protected:
/**
* @see ui_menu_unset_content()
* @see get_last_result()
*/
-EAPI Elm_Ctxpopup *ui_menu_get_content(ui_menu *menu);
+EAPI Elm_Ctxpopup *ui_menu_get_content(const ui_menu *menu);
/**
* @brief Unsets an ui_menu content.
* @see ui_menu_deactivate()
* @see get_last_result()
*/
-EAPI bool ui_menu_get_activated(ui_menu *menu);
+EAPI bool ui_menu_get_activated(const ui_menu *menu);
/**
* @brief Gets a base object of an ui_menu.
*
* @see get_last_result()
*/
-EAPI Eo *ui_menu_get_base(ui_menu *menu);
+EAPI Eo *ui_menu_get_base(const ui_menu *menu);
/**
* @brief Gets a current ui_menu's degree.
*
* @see get_last_result()
*/
-EAPI int ui_menu_get_degree(ui_menu *menu);
+EAPI int ui_menu_get_degree(const ui_menu *menu);
/**
* @brief Returns a view which is matched with this ui_menu.
*
* @see get_last_result()
*/
-EAPI ui_view *ui_menu_get_view(ui_menu *menu);
+EAPI ui_view *ui_menu_get_view(const ui_menu *menu);
/**
* @}
* @see ui_popup_unset_content()
* @see get_last_result()
*/
-EAPI Elm_Popup *ui_popup_get_content(ui_popup *popup);
+EAPI Elm_Popup *ui_popup_get_content(const ui_popup *popup);
/**
* @brief Unsets an ui_popup content.
* @see ui_popup_deactivate()
* @see get_last_result()
*/
-EAPI bool ui_popup_get_activated(ui_popup *popup);
+EAPI bool ui_popup_get_activated(const ui_popup *popup);
/**
* @brief Gets a base object of an ui_popup.
*
* @see get_last_result()
*/
-EAPI Eo *ui_popup_get_base(ui_popup *popup);
+EAPI Eo *ui_popup_get_base(const ui_popup *popup);
/**
* @brief Gets current ui_popup's degree.
*
* @see get_last_result()
*/
-EAPI int ui_popup_get_degree(ui_popup *popup);
+EAPI int ui_popup_get_degree(const ui_popup *popup);
/**
* @brief Returns a view which is matched with the ui_popup.
*
* @see get_last_result()
*/
-EAPI ui_view *ui_popup_get_view(ui_popup *popup);
+EAPI ui_view *ui_popup_get_view(const ui_popup *popup);
/**
* @}
* @see ui_standard_view_unset_title_right_btn()
* @see get_last_result()
*/
-EAPI Elm_Button *ui_standard_view_get_title_right_btn(ui_standard_view *view);
+EAPI Elm_Button *ui_standard_view_get_title_right_btn(const ui_standard_view *view);
/**
* @brief Unsets a title right button of title area.
* @see ui_standard_view_unset_title_left_btn()
* @see get_last_result()
*/
-EAPI Elm_Button *ui_standard_view_get_title_left_btn(ui_standard_view *view);
+EAPI Elm_Button *ui_standard_view_get_title_left_btn(const ui_standard_view *view);
/**
* @brief Unsets a title left button of title area.
* @see ui_standard_view_unset_toolbar()
* @see get_last_result()
*/
-EAPI Elm_Toolbar *ui_standard_view_get_toolbar(ui_standard_view *view);
+EAPI Elm_Toolbar *ui_standard_view_get_toolbar(const ui_standard_view *view);
/**
* @brief Unsets a toolbar.
* @see ui_view_unset_content()
* @see get_last_result()
*/
-EAPI Eo *ui_view_get_content(ui_view *view);
+EAPI Eo *ui_view_get_content(const ui_view *view);
/**
* @brief Unsets a ui_view content.
*
* @see get_last_result()
*/
-EAPI Eo* ui_view_get_base(ui_view *view);
+EAPI Eo* ui_view_get_base(const ui_view *view);
/**
* @brief Sets the indicator mode of a ui_view.
* @see ui_view_get_indicator()
* @see get_last_result()
*/
-EAPI ui_view_indicator ui_view_get_indicator(ui_view *view);
+EAPI ui_view_indicator ui_view_get_indicator(const ui_view *view);
/**
* @brief Sets the array of view's available rotations.
* @see ui_view_set_available_rotations()
* @see get_last_result()
*/
-EAPI const int *ui_view_get_available_rotations(ui_view *view, unsigned int *count);
+EAPI const int *ui_view_get_available_rotations(const ui_view *view, unsigned int *count);
/**
* @brief Sets content removable.
* @see ui_view_get_removable_content()
* @see get_last_result()
*/
-EAPI bool ui_view_get_removable_content(ui_view *view);
+EAPI bool ui_view_get_removable_content(const ui_view *view);
/**
* @brief Gets the current view's degree.
*
* @see get_last_result()
*/
-EAPI int ui_view_get_degree(ui_view *view);
+EAPI int ui_view_get_degree(const ui_view *view);
/**
* @brief Gets current view's orientation mode.
* @see ui_view_orientation_mode
* @see get_last_result()
*/
-EAPI ui_view_orientation_mode ui_view_get_orientation_mode(ui_view *view);
+EAPI ui_view_orientation_mode ui_view_get_orientation_mode(const ui_view *view);
/**
* @brief Sets transition style of a view.
* @see ui_view_set_transition_style()
* @see get_last_result()
*/
-EAPI const char *ui_view_get_transition_style(ui_view *view);
+EAPI const char *ui_view_get_transition_style(const ui_view *view);
/**
* @brief Gets a ui_menu instance.
*
* @get_last_result()
*/
-EAPI ui_menu *ui_view_get_menu(ui_view *view);
+EAPI ui_menu *ui_view_get_menu(const ui_view *view);
/**
* @brief Returns a name of this view.
*
* @get_last_result()
*/
-EAPI const char *ui_view_get_name(ui_view *view);
+EAPI const char *ui_view_get_name(const ui_view *view);
/**
* @brief Returns a state of this view.
* @see ui_view_state
* @see get_last_result()
*/
-EAPI ui_view_state ui_view_get_state(ui_view *view);
+EAPI ui_view_state ui_view_get_state(const ui_view *view);
/**
* @brief Destroys an ui_view.
* @see activate()
* @see deactivate()
*/
- virtual bool isActivated() = 0;
+ virtual bool isActivated() const = 0;
/**
* @brief Return a view which is matched with the overlay.
*
* @return The view which is matched with overlay.
*/
- UiIfaceView *getView();
+ UiIfaceView *getView() const;
/**
* @brief Returns a content of overlay.
* @see setContent()
* @see unsetContent()
*/
- virtual T getContent();
+ virtual T getContent() const;
protected:
/**
*
* @return Current rotation degree, -1 if it fails to get degree information.
*/
- virtual int getDegree() { return 0; }
+ virtual int getDegree() const { return 0; }
/**
* @brief Get current view's orientation mode.
*
* @return Current orientation mode, one of #UiViewOrientationMode.
*/
- virtual UiViewOrientationMode getOrientationMode() { return UI_VIEW_ORIENTATION_MODE_UNKNOWN; }
+ virtual UiViewOrientationMode getOrientationMode() const { return UI_VIEW_ORIENTATION_MODE_UNKNOWN; }
protected:
/**
* @see setAvailableRotations
* @see get_last_result()
*/
- const int *getAvailableRotations(unsigned int *count);
+ const int *getAvailableRotations(unsigned int *count) const;
/**
* @brief Returns a style name of this view.
*
* @see setTransitionStyle()
*/
- const char *getTransitionStyle();
+ const char *getTransitionStyle() const;
/**
* @brief Returns a name of this view.
*
* @return name of view
*/
- const char *getName();
+ const char *getName() const;
/**
* @brief Returns a content of this view.
* @see setContent()
* @see unsetContent()
*/
- T getContent();
+ T getContent() const;
/**
* @brief Replace or set a content of the view.
*
* @see UiViewState
*/
- UiViewState getState();
+ UiViewState getState() const;
/**
* @brief Returns a state of removable content.
*
* @return @c true if the view's content is removable, otherwise @c false
*/
- bool getRemovableContent();
+ bool getRemovableContent() const;
/**
* @brief Returns the indicator mode of this view.
*
* @return indicator state of this view
*/
- UiViewIndicator getIndicator();
+ UiViewIndicator getIndicator() const;
/**
* @brief The H/W back key event occurs on view.
*
* @see setEventBlock()
*/
- bool getEventBlock();
+ bool getEventBlock() const;
/**
* @brief View load state.
*
* @see _setViewmgr()
*/
- UiIfaceViewmgr *_getViewmgr();
+ UiIfaceViewmgr *_getViewmgr() const;
public:
_UI_DISABLE_COPY_AND_ASSIGN(UiIfaceView);
return obj;
}
-Eo *UiBaseView::getBase()
+Eo *UiBaseView::getBase() const
{
auto viewmgr = UI_BASE_VIEWMGR;
return viewmgr->getBase();
}
-Eo *UiBaseView ::getParent()
+Eo *UiBaseView ::getParent() const
{
auto viewmgr = UI_BASE_VIEWMGR;
return UI_VIEWMGR_ERROR_NONE;
}
-int UiBaseView::getDegree()
+int UiBaseView::getDegree() const
{
auto viewmgr = UI_BASE_VIEWMGR;
void pushView(UiBaseView *view);
void popView();
- Eo *getBase() {
+ Eo *getBase() const {
return this->_layout;
}
return dynamic_cast<UiBaseView *>(UiIfaceViewmgr::getLastView());
}
-Eo *UiBaseViewmgr::getBase()
+Eo *UiBaseViewmgr::getBase() const
{
return this->_impl->getBase();
}
evas_object_del(ctxpopup);
}
-Elm_Win *UiMenu::getWindow()
+Elm_Win *UiMenu::getWindow() const
{
UiViewmgr *viewmgr = UI_VIEWMGR;
if (!viewmgr) {
return UiBaseOverlay::setContent(ctxpopup);
}
-bool UiMenu::isActivated()
+bool UiMenu::isActivated() const
{
Elm_Ctxpopup *ctxpopup = this->getContent();
if (!ctxpopup) return false;
return ctxpopup;
}
-Eo *UiMenu::getBase()
+Eo *UiMenu::getBase() const
{
return this->getWindow();
}
-int UiMenu::getDegree()
+int UiMenu::getDegree() const
{
return this->getView()->getDegree();
}
evas_object_del(popup);
}
-Elm_Win *UiPopup::getWindow()
+Elm_Win *UiPopup::getWindow() const
{
UiViewmgr *viewmgr = UI_VIEWMGR;
if (!viewmgr) {
return UiBaseOverlay::setContent(popup);
}
-bool UiPopup::isActivated()
+bool UiPopup::isActivated() const
{
Elm_Popup *popup = this->getContent();
if (!popup) return false;
return popup;
}
-Eo *UiPopup::getBase()
+Eo *UiPopup::getBase() const
{
return this->getWindow();
}
-int UiPopup::getDegree()
+int UiPopup::getDegree() const
{
return this->getView()->getDegree();
}
Elm_Button *unsetTitleLeftBtn();
Elm_Button *unsetTitleRightBtn();
Elm_Toolbar *unsetToolbar();
- Eo *getBase();
+ Eo *getBase() const;
- Elm_Button *getTitleLeftBtn() {
+ Elm_Button *getTitleLeftBtn() const {
return this->_titleLeftBtn;
}
- Elm_Button *getTitleRightBtn() {
+ Elm_Button *getTitleRightBtn()const {
return this->_titleRightBtn;
}
- Elm_Toolbar *getToolbar() {
+ Elm_Toolbar *getToolbar() const {
return this->_toolbar;
}
};
return toolbar;
}
-Eo *UiStandardViewImpl::getBase()
+Eo *UiStandardViewImpl::getBase() const
{
if (!this->_layout) {
- this->_createLayout();
+ const_cast<UiStandardViewImpl*>(this)->_createLayout();
}
return this->_layout;
return this->_impl->unsetToolbar();
}
-Eo *UiStandardView::getBase()
+Eo *UiStandardView::getBase() const
{
return this->_impl->getBase();
}
return this->_impl->setTitleVisible(visible, anim);
}
-Elm_Button *UiStandardView::getTitleLeftBtn()
+Elm_Button *UiStandardView::getTitleLeftBtn() const
{
return this->_impl->getTitleLeftBtn();
}
-Elm_Button *UiStandardView::getTitleRightBtn()
+Elm_Button *UiStandardView::getTitleRightBtn() const
{
return this->_impl->getTitleRightBtn();
}
-Elm_Toolbar *UiStandardView::getToolbar()
+Elm_Toolbar *UiStandardView::getToolbar() const
{
return this->_impl->getToolbar();
}
explicit UiViewImpl(UiView *view);
~UiViewImpl();
- const UiMenu *getMenu()
+ const UiMenu *getMenu() const
{
return this->_menu;
}
- UiViewOrientationMode getOrientationMode();
+ UiViewOrientationMode getOrientationMode() const;
};
}
this->_menu->onLandscape();
}
-UiViewOrientationMode UiViewImpl::getOrientationMode()
+UiViewOrientationMode UiViewImpl::getOrientationMode() const
{
switch (this->_view->getDegree()) {
case 0:
this->_impl->onLandscape();
}
-UiViewOrientationMode UiView::getOrientationMode()
+UiViewOrientationMode UiView::getOrientationMode() const
{
return this->_impl->getOrientationMode();
}
-const UiMenu *UiView::getMenu()
+const UiMenu *UiView::getMenu() const
{
return this->_impl->getMenu();
}
ui_menu *p;
};
-static int validate_menu(ui_menu *menu)
+static int validate_menu(const ui_menu *menu)
{
if (!menu)
{
return menu->setContent(ctxpopup);
}
-EAPI Elm_Ctxpopup *ui_menu_get_content(ui_menu *menu)
+EAPI Elm_Ctxpopup *ui_menu_get_content(const ui_menu *menu)
{
if (UI_VIEWMGR_ERROR_NONE != validate_menu(menu)) return nullptr;
return menu->deactivate();
}
-EAPI bool ui_menu_get_activated(ui_menu *menu)
+EAPI bool ui_menu_get_activated(const ui_menu *menu)
{
if (UI_VIEWMGR_ERROR_NONE != validate_menu(menu)) return nullptr;
return menu->isActivated();
}
-EAPI Eo *ui_menu_get_base(ui_menu *menu)
+EAPI Eo *ui_menu_get_base(const ui_menu *menu)
{
if (UI_VIEWMGR_ERROR_NONE != validate_menu(menu)) return nullptr;
return menu->getBase();
}
-EAPI int ui_menu_get_degree(ui_menu *menu)
+EAPI int ui_menu_get_degree(const ui_menu *menu)
{
if (UI_VIEWMGR_ERROR_NONE != validate_menu(menu)) return -1;
return menu->getDegree();
}
-EAPI ui_view *ui_menu_get_view(ui_menu *menu)
+EAPI ui_view *ui_menu_get_view(const ui_menu *menu)
{
if (UI_VIEWMGR_ERROR_NONE != validate_menu(menu)) return nullptr;
ui_popup *p;
};
-static int validate_popup(ui_popup *popup)
+static int validate_popup(const ui_popup *popup)
{
if (!popup)
{
return popup->setContent(content);
}
-EAPI Elm_Popup *ui_popup_get_content(ui_popup *popup)
+EAPI Elm_Popup *ui_popup_get_content(const ui_popup *popup)
{
if (UI_VIEWMGR_ERROR_NONE != validate_popup(popup)) return nullptr;
return popup->deactivate();
}
-EAPI bool ui_popup_get_activated(ui_popup *popup)
+EAPI bool ui_popup_get_activated(const ui_popup *popup)
{
if (UI_VIEWMGR_ERROR_NONE != validate_popup(popup)) return false;
return popup->isActivated();
}
-EAPI Eo *ui_popup_get_base(ui_popup *popup)
+EAPI Eo *ui_popup_get_base(const ui_popup *popup)
{
if (UI_VIEWMGR_ERROR_NONE != validate_popup(popup)) return nullptr;
return popup->getBase();
}
-EAPI int ui_popup_get_degree(ui_popup *popup)
+EAPI int ui_popup_get_degree(const ui_popup *popup)
{
if (UI_VIEWMGR_ERROR_NONE != validate_popup(popup)) return -1;
return popup->getDegree();
}
-EAPI ui_view *ui_popup_get_view(ui_popup *popup)
+EAPI ui_view *ui_popup_get_view(const ui_popup *popup)
{
if (UI_VIEWMGR_ERROR_NONE != validate_popup(popup)) return nullptr;
ui_standard_view_capi *p;
};
-static ui_standard_view_capi *validate_view(ui_standard_view *view)
+static ui_standard_view_capi *validate_view(const ui_standard_view *view)
{
if (!view)
{
return nullptr;
}
- auto capi_view = dynamic_cast<ui_standard_view_capi *>(view);
+ auto capi_view = dynamic_cast<ui_standard_view_capi *>(const_cast<ui_standard_view*>(view));
if (!capi_view)
{
LOGE("Invalid ui_standard_view = %p. Probably, you passed ui_view, not ui_standard_view.", view);
return capi_view->setTitleRightBtn(title_right_btn);
}
-EAPI Elm_Button *ui_standard_view_get_title_right_btn(ui_standard_view *view)
+EAPI Elm_Button *ui_standard_view_get_title_right_btn(const ui_standard_view *view)
{
ui_standard_view_capi *capi_view = validate_view(view);
if (!capi_view)
return capi_view->setTitleLeftBtn(title_left_btn);
}
-EAPI Elm_Button *ui_standard_view_get_title_left_btn(ui_standard_view *view)
+EAPI Elm_Button *ui_standard_view_get_title_left_btn(const ui_standard_view *view)
{
ui_standard_view_capi *capi_view = validate_view(view);
if (!capi_view) return nullptr;
return capi_view->setToolbar(toolbar);
}
-EAPI Elm_Toolbar *ui_standard_view_get_toolbar(ui_standard_view *view)
+EAPI Elm_Toolbar *ui_standard_view_get_toolbar(const ui_standard_view *view)
{
ui_standard_view_capi *capi_view = validate_view(view);
if (!capi_view) return nullptr;
ui_view_capi *p;
};
-static int validate_view(ui_view *view)
+static int validate_view(const ui_view *view)
{
if (!view)
{
return UI_VIEWMGR_ERROR_NONE;
}
-EAPI Eo* ui_view_get_base(ui_view *view)
+EAPI Eo* ui_view_get_base(const ui_view *view)
{
if (UI_VIEWMGR_ERROR_NONE != validate_view(view)) return nullptr;
return view->getBase();
return view->setIndicator(indicator);
}
-EAPI ui_view_indicator ui_view_get_indicator(ui_view *view)
+EAPI ui_view_indicator ui_view_get_indicator(const ui_view *view)
{
if (UI_VIEWMGR_ERROR_NONE != validate_view(view)) return UI_VIEW_INDICATOR_UNKNOWN;
return UI_VIEWMGR_ERROR_NONE;
}
-EAPI bool ui_view_get_removable_content(ui_view *view)
+EAPI bool ui_view_get_removable_content(const ui_view *view)
{
if (UI_VIEWMGR_ERROR_NONE != validate_view(view)) return false;
return view->getRemovableContent();
}
-EAPI int ui_view_get_degree(ui_view *view)
+EAPI int ui_view_get_degree(const ui_view *view)
{
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)
+EAPI ui_view_orientation_mode ui_view_get_orientation_mode(const ui_view *view)
{
if (UI_VIEWMGR_ERROR_NONE != validate_view(view)) return UI_VIEW_ORIENTATION_MODE_UNKNOWN;
return view->setAvailableRotations(rotations, count);
}
-EAPI const int *ui_view_get_available_rotations(ui_view *view, unsigned int *count)
+EAPI const int *ui_view_get_available_rotations(const ui_view *view, unsigned int *count)
{
if (UI_VIEWMGR_ERROR_NONE != validate_view(view)) return false;
return view->setTransitionStyle(style);
}
-EAPI const char *ui_view_get_transition_style(ui_view *view)
+EAPI const char *ui_view_get_transition_style(const ui_view *view)
{
if (UI_VIEWMGR_ERROR_NONE != validate_view(view)) return nullptr;
return view->getTransitionStyle();
}
-EAPI ui_menu *ui_view_get_menu(ui_view *view)
+EAPI ui_menu *ui_view_get_menu(const ui_view *view)
{
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)
+EAPI const char *ui_view_get_name(const ui_view *view)
{
if (UI_VIEWMGR_ERROR_NONE != validate_view(view)) return nullptr;
return view->getName();
}
-EAPI ui_view_state ui_view_get_state(ui_view *view)
+EAPI ui_view_state ui_view_get_state(const ui_view *view)
{
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)
+EAPI Eo *ui_view_get_content(const ui_view *view)
{
if (UI_VIEWMGR_ERROR_NONE != validate_view(view)) return nullptr;
public:
int setContent(T content);
T unsetContent();
- UiIfaceView *getView();
- T getContent();
+ UiIfaceView *getView() const;
+ T getContent() const;
UiIfaceOverlayImpl(UiIfaceOverlay *overlay, UiIfaceView *view);
~UiIfaceOverlayImpl();
return prev;
}
-T UiIfaceOverlayImpl::getContent()
+T UiIfaceOverlayImpl::getContent() const
{
return this->_content;
}
-UiIfaceView *UiIfaceOverlayImpl::getView()
+UiIfaceView *UiIfaceOverlayImpl::getView() const
{
return this->_view;
}
return this->_impl->unsetContent();
}
-T UiIfaceOverlay::getContent()
+T UiIfaceOverlay::getContent() const
{
return this->_impl->getContent();
}
-UiIfaceView *UiIfaceOverlay::getView()
+UiIfaceView *UiIfaceOverlay::getView() const
{
return this->_impl->getView();
}
void onPause();
void onResume();
void onDestroy();
- bool getEventBlock();
+ bool getEventBlock() const;
int setContent(T content);
T unsetContent();
void setRemovableContent(bool removable);
int setIndicator(UiViewIndicator indicator);
int setAvailableRotations(const int *rotations, unsigned int count);
- const int *getAvailableRotations(unsigned int *count);
- const char *getTransitionStyle();
- const char *getName();
- T getContent();
- UiViewState getState();
- bool getRemovableContent();
- UiViewIndicator getIndicator();
+ const int *getAvailableRotations(unsigned int *count) const;
+ const char *getTransitionStyle() const;
+ const char *getName() const;
+ T getContent() const;
+ UiViewState getState() const;
+ bool getRemovableContent() const;
+ UiViewIndicator getIndicator() const;
void onBack();
};
#define MAX_NUM_OF_AVAILABLE_ROTATIONS 4
-bool UiIfaceViewImpl::getEventBlock()
+bool UiIfaceViewImpl::getEventBlock() const
{
return this->_eventBlock;
}
return UI_VIEWMGR_ERROR_NONE;
}
-const int *UiIfaceViewImpl::getAvailableRotations(unsigned int *count)
+const int *UiIfaceViewImpl::getAvailableRotations(unsigned int *count) const
{
if (!count) {
set_last_result(UI_VIEWMGR_ERROR_INVALID_PARAMETER);
}
}
-const char *UiIfaceViewImpl::getTransitionStyle()
+const char *UiIfaceViewImpl::getTransitionStyle() const
{
return this->_transitionStyle.c_str();
}
-const char *UiIfaceViewImpl::getName()
+const char *UiIfaceViewImpl::getName() const
{
return this->_name.c_str();
}
-T UiIfaceViewImpl::getContent()
+T UiIfaceViewImpl::getContent() const
{
return this->_content;
}
-UiViewState UiIfaceViewImpl::getState()
+UiViewState UiIfaceViewImpl::getState() const
{
return this->_state;
}
-bool UiIfaceViewImpl::getRemovableContent()
+bool UiIfaceViewImpl::getRemovableContent() const
{
return this->_removableContent;
}
-UiViewIndicator UiIfaceViewImpl::getIndicator()
+UiViewIndicator UiIfaceViewImpl::getIndicator() const
{
return this->_indicator;
}
/* External class Implementation */
/***********************************************************************************************/
-bool UiIfaceView::getEventBlock()
+bool UiIfaceView::getEventBlock() const
{
return this->_impl->getEventBlock();
}
return this->_impl->setAvailableRotations(rotations, count);
}
-const int *UiIfaceView::getAvailableRotations(unsigned int *count)
+const int *UiIfaceView::getAvailableRotations(unsigned int *count) const
{
return this->_impl->getAvailableRotations(count);
}
-const char *UiIfaceView::getTransitionStyle()
+const char *UiIfaceView::getTransitionStyle() const
{
return this->_impl->getTransitionStyle();
}
-const char *UiIfaceView::getName()
+const char *UiIfaceView::getName() const
{
return this->_impl->getName();
}
-T UiIfaceView::getContent()
+T UiIfaceView::getContent() const
{
return this->_impl->getContent();
}
-UiViewState UiIfaceView::getState()
+UiViewState UiIfaceView::getState() const
{
return this->_impl->getState();
}
-bool UiIfaceView::getRemovableContent()
+bool UiIfaceView::getRemovableContent() const
{
return this->_impl->getRemovableContent();
}
-UiViewIndicator UiIfaceView::getIndicator()
+UiViewIndicator UiIfaceView::getIndicator() const
{
return this->_impl->getIndicator();
}
this->_impl->_viewmgr = viewmgr;
}
-UiIfaceViewmgr *UiIfaceView::_getViewmgr()
+UiIfaceViewmgr *UiIfaceView::_getViewmgr() const
{
return this->_impl->_viewmgr;
}