UI_VIEW_STATE_UNLOAD, /**< Unload state */
UI_VIEW_STATE_ACTIVATE, /**< Activate state */
UI_VIEW_STATE_DEACTIVATE, /**< Deactivate state */
- UI_VIEW_STATE_PAUSE /**< Pause state */
+ UI_VIEW_STATE_PAUSE, /**< Pause state */
+ UI_VIEW_STATE_DESTROY /**< Destroy state */
} ui_view_state;
/**
*/
virtual int popView();
+ /**
+ * @brief Destroy a given @a view from this viewmgr view list.
+ * This function is used when application deletes a sepecific view from the viewmgr.
+ * The given @a view will go through the destroy pass (normally, Deactivate -> Unload -> Destroy).
+ *
+ * @return @c 0 on success, otherwise a negative error value.
+ * @retval #UI_VIEWMGR_ERROR_NONE Successful
+ * @retval #UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS @a view is already on destroying.
+ *
+ * @see popView()
+ */
+ virtual int destroyView(UiIfaceView *view);
+
/**
* @brief Insert a view in this viewmgr view list. Specifically, insert a given @a view right before of the given view, @before.
*