* @see insertViewAfter()
* @see popView()
*/
- virtual int pushView(UiBaseView *view);
+ virtual int pushView(ui_viewmanager::UiIfaceView *view) override;
/**
* @brief Pop the top(last) view from this viewmgr view list.
*/
virtual int popView() override;
- /**
- * @brief Insert a view in this viewmgr view list. Specifically, insert a given @a view right before of the given view, @before.
- *
- * @param[in] view A view to insert in the viewmgr view list.
- * @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 #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);
-
- /**
- * @brief Insert a view in this viewmgr view list. Specifically, insert a given @a view right after of the given view, @after.
- *
- * @param[in] view A view to insert in the viewmgr view list.
- * @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 #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);
-
/**
* @brief Return a window object of viewmgr.
*
class UiIfaceViewmgr
{
public:
+ /**
+ * @brief Push a new view into this viewmgr. This function is used for when application switches a current view to a new one.
+ *
+ * @note Normally, the current view will be hidden by a new view. In default, when user calls this API, view will be switched to @a view instantly,
+ * only when viewmgr state is activated. Otherwise, the @a view will be shown later when viewmgr is activated. push_view() is designed for providing
+ * view transition effect. If you want push view instantly without any transition, you could use insert_view_before() or insert_view_after().
+ * or use the view transition style function.
+ * If you want to pop the current view, the please use pop_view().
+ *
+ * @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 #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()
+ * @see insertViewAfter()
+ * @see popView()
+ * @see UiIfaceView::setTransitionStyle()
+ */
+ virtual int pushView(UiIfaceView *view);
+
+ /**
+ * @brief Pop the top(last) view from this viewmgr view list.
+ * This function is used when application switches the current view back to the previous view.
+ * The top view will be removed from the view stack and then it will be deleted by the viewmgr.
+ *
+ * @note If the view is just one left, then viewmgr would be deactivated automatically since the ui application might be invalid anymore. Otherwise,
+ * the application will be terminated. It's up to system configuration.
+ *
+ * @return @c 0 on success, otherwise a negative error value.
+ * @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()
+ */
+ virtual int popView();
+
+ /**
+ * @brief Insert a view in this viewmgr view list. Specifically, insert a given @a view right before of the given view, @before.
+ *
+ * @param[in] view A view to insert in the viewmgr view list.
+ * @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 #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);
+
+ /**
+ * @brief Insert a view in this viewmgr view list. Specifically, insert a given @a view right after of the given view, @after.
+ *
+ * @param[in] view A view to insert in the viewmgr view list.
+ * @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 #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);
+
/**
* @brief Activate this view manager.
*
*/
virtual void popViewFinished(UiIfaceView *view);
- /**
- * @brief Push a new view into this viewmgr. This function is used for when application switches a current view to a new one.
- *
- * @note Normally, the current view will be hidden by a new view. In default, when user calls this API, view will be switched to @a view instantly,
- * only when viewmgr state is activated. Otherwise, the @a view will be shown later when viewmgr is activated. push_view() is designed for providing
- * view transition effect. If you want push view instantly without any transition, you could use insert_view_before() or insert_view_after().
- * or use the view transition style function.
- * If you want to pop the current view, the please use pop_view().
- *
- * @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 #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()
- * @see insertViewAfter()
- * @see popView()
- * @see UiIfaceView::setTransitionStyle()
- */
- virtual int pushView(UiIfaceView *view);
-
- /**
- * @brief Pop the top(last) view from this viewmgr view list.
- * This function is used when application switches the current view back to the previous view.
- * The top view will be removed from the view stack and then it will be deleted by the viewmgr.
- *
- * @note If the view is just one left, then viewmgr would be deactivated automatically since the ui application might be invalid anymore. Otherwise,
- * the application will be terminated. It's up to system configuration.
- *
- * @return @c 0 on success, otherwise a negative error value.
- * @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()
- */
- virtual int popView();
-
- /**
- * @brief Insert a view in this viewmgr view list. Specifically, insert a given @a view right before of the given view, @before.
- *
- * @param[in] view A view to insert in the viewmgr view list.
- * @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 #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);
-
- /**
- * @brief Insert a view in this viewmgr view list. Specifically, insert a given @a view right after of the given view, @after.
- *
- * @param[in] view A view to insert in the viewmgr view list.
- * @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 #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);
-
/**
* @brief Remove the given view from this viewmgr view list.
*