use override specifier for secure code.
This override may occur build break when parents base function won't be exist in virtual.
Change-Id: I1737742520586457ad6f6062c59abc7f5fbd3a5b
*
* @return A previous content. If it wasn't, return @c NULL.
*/
- virtual bool setContent(Evas_Object *content);
+ virtual bool setContent(Evas_Object *content) override;
/**
* @brief This is for unsetting a content of the view.
*
* @return A previous content. If it wasn't, return @c NULL.
*/
- virtual Evas_Object *unsetContent();
+ virtual Evas_Object *unsetContent() override;
/**
* @brief Get a base object of ui_view.
*
* @param indicator The mode to set, one of #UiViewIndicator.
*/
- virtual void setIndicator(UiViewIndicator indicator);
+ virtual void setIndicator(UiViewIndicator indicator) override;
/**
* @brief Get current view's degree.
*
* @return Current rotation degree, -1 if it fails to get degree information.
*/
- virtual int getDegree();
+ virtual int getDegree() override;
protected:
/**
*
* @param block @c true, when blocking is enabled, otherwise @c false.
*/
- virtual void setEventBlock(bool block);
+ virtual void setEventBlock(bool block) override;
/**
* @brief View rotate changed.
* @see onPortrait()
* @see onLandscpae()
*/
- virtual void onRotate(int degree);
+ virtual void onRotate(int degree) override;
/**
* @brief View portrait state.
* @see onLandscpae()
* @see onRotate()
*/
- virtual void onPortrait();
+ virtual void onPortrait() override;
/**
* @brief View landscape state.
* @see onPortrait()
* @see onRotate()
*/
- virtual void onLandscape();
+ virtual void onLandscape() override;
private:
_UI_DECLARE_PRIVATE_IMPL(UiBaseView);
*
* @see deactivate()
*/
- virtual bool activate();
+ virtual bool activate() override;
/**
* @brief Deactivate this view manager.
*
* @see activate()
*/
- virtual bool deactivate();
+ virtual bool deactivate() override;
/**
* @brief Push a new view into this viewmgr. This function is used for when application switches a current view to a new one.
* @see deactivate()
* @see pushView()
*/
- virtual bool popView();
+ virtual bool popView() override;
/**
* @brief Insert a view in this viewmgr view list. Specifically, insert a given @p view right before of the given view, @before.
*
* @note Add menu key to target of key grabber.
*/
- virtual bool init();
+ virtual bool init() override;
/**
* @brief Check the menu key event occurs or not.
*
* @note This is checking H/W key is menu or not.
*/
- virtual void extendEventProc(UiBaseView *view, Evas_Event_Key_Down *ev);
+ virtual void extendEventProc(UiBaseView *view, Evas_Event_Key_Down *ev) override;
//Don't generate by compiler.
UiKeyListener() = delete;
*
* @see deactivate()
*/
- virtual bool activate();
+ virtual bool activate() override;
/**
* @brief menu deactivate.
*
* @see activate()
*/
- virtual bool deactivate();
+ virtual bool deactivate() override;
/**
* @brief This is for replacing or setting a content of the menu.
*
* @return @c true if it succeeds, @c false otherwise.
*/
- virtual bool setContent(Elm_Ctxpopup* ctxpopup);
+ virtual bool setContent(Elm_Ctxpopup* ctxpopup) override;
/**
* @brief This is for unsetting a content of the menu.
*
* @return A previous content. If it wasn't, return value will be @c NULL.
*/
- virtual Elm_Ctxpopup *unsetContent();
+ virtual Elm_Ctxpopup *unsetContent() override;
/**
* @brief Return the active status of menu.
* @see activate()
* @see deactivate()
*/
- virtual bool isActivated();
+ virtual bool isActivated() override;
/**
* @brief Get a base object of a UiMenu.
*
* @return Current rotation degree, -1 if it fails to get degree information.
*/
- virtual int getDegree();
+ virtual int getDegree() override;
protected:
/**
*
* @see deactivate()
*/
- virtual bool activate();
+ virtual bool activate() override;
/**
* @brief popup deactivate.
*
* @see activate()
*/
- virtual bool deactivate();
+ virtual bool deactivate() override;
/**
* @brief This is for replacing or setting a content of the popup.
*
* @return @c true if it succeeds, @c false otherwise.
*/
- virtual bool setContent(Elm_Popup* popup);
+ virtual bool setContent(Elm_Popup* popup) override;
/**
* @brief This is for unsetting a content of the popup.
*
* @return A previous content. If it wasn't, return value will be @c NULL.
*/
- virtual Elm_Popup *unsetContent();
+ virtual Elm_Popup *unsetContent() override;
/**
* @brief Return the active status of popup.
* @see activate()
* @see deactivate()
*/
- virtual bool isActivated();
+ virtual bool isActivated() override;
/**
* @brief Get a base object of an UiPopup.
*
* @return Current rotation degree, -1 if it fails to get degree information.
*/
- virtual int getDegree();
+ virtual int getDegree() override;
protected:
/**
*
* @return A previous content. If it wasn't, return @c NULL.
*/
- Evas_Object *unsetContent();
+ Evas_Object *unsetContent() override;
/**
* @brief Unset a title left button of title area.
*
* @return viewmgr's base layout object.
*/
- virtual Evas_Object *getBase();
+ virtual Evas_Object *getBase() override;
protected:
/**
* @note this state will be triggered by UiIfaceViewmgr.
*
*/
- virtual void onLoad();
+ virtual void onLoad() override;
/** @brief view unload state.
*
* @note this state will be triggered by UiIfaceViewmgr.
*
*/
- virtual void onUnload();
+ virtual void onUnload() override;
/** @brief toggle event block.
*
*
* @param block @c true, blocking enable, otherwise @c false.
*/
- virtual void setEventBlock(bool block);
+ virtual void setEventBlock(bool block) override;
private:
_UI_DECLARE_PRIVATE_IMPL(UiStandardView);
* @see onPortrait()
* @see onLandscpae()
*/
- virtual void onRotate(int degree);
+ virtual void onRotate(int degree) override;
/**
* @brief View portrait state.
* @see onLandscpae()
* @see onRotate()
*/
- virtual void onPortrait();
+ virtual void onPortrait() override;
/**
* @brief View landscape state.
* @see onPortrait()
* @see onRotate()
*/
- virtual void onLandscape();
+ virtual void onLandscape() override;
/** @brief View deactivate state.
*
* @note this state will be triggered by UiIfaceViewmgr.
*
*/
- virtual void onDeactivate();
+ virtual void onDeactivate() override;
private:
/**
*
* @param indicator The mode to set, one of #UiViewIndicator.
*/
- void setIndicator(UiViewIndicator indicator);
+ virtual void setIndicator(UiViewIndicator indicator);
/**
* @brief Return a style name of this view.