*
* @param viewmgr The instance of UiBaseViewmgr.
*/
- UiBaseKeyListener(UiBaseViewmgr *viewmgr);
+ explicit UiBaseKeyListener(UiBaseViewmgr *viewmgr);
///Destructor.
virtual ~UiBaseKeyListener();
*
* @param view The instance of UiBaseView.
*/
- UiBaseOverlay(UiBaseView *view);
+ explicit UiBaseOverlay(UiBaseView *view);
///Destructor.
virtual ~UiBaseOverlay();
*
* @param name view name.
*/
- UiBaseView(const char *name = NULL);
+ explicit UiBaseView(const char *name = NULL);
///Destructor.
virtual ~UiBaseView();
*
* @param pkg The name of package.
*/
- UiBaseViewmgr(const char *pkg);
+ explicit UiBaseViewmgr(const char *pkg);
///Destructor.
virtual ~UiBaseViewmgr();
*
* @param The instance of UiViewmgr.
*/
- UiKeyListener(UiViewmgr *viewmgr);
+ explicit UiKeyListener(UiViewmgr *viewmgr);
/**
* @brief Init H/W key listener to grab key event(menu key).
*
* @param The instance of UiView.
*/
- UiMenu(UiView *view);
+ explicit UiMenu(UiView *view);
///Destructor.
virtual ~UiMenu();
*
* @param The instance of UiView.
*/
- UiPopup(UiView *view);
+ explicit UiPopup(UiView *view);
///Destructor.
virtual ~UiPopup();
*
* @param name view name.
*/
- UiStandardView(const char *name = NULL);
+ explicit UiStandardView(const char *name = NULL);
///Destructor.
virtual ~UiStandardView();
*
* @warning if you don't set a view name, you could not look up the view with its name. @see ui_viewmgr_view_get_by_name()
*/
- UiView(const char *name = NULL);
+ explicit UiView(const char *name = NULL);
///Destructor.
virtual ~UiView();
*
* @param pkg The name of package.
*/
- UiViewmgr(const char *pkg);
+ explicit UiViewmgr(const char *pkg);
///Destructor.
virtual ~UiViewmgr();
*
* @param view The instance of UiIfaceView.
*/
- UiIfaceOverlay(UiIfaceView *view);
+ explicit UiIfaceOverlay(UiIfaceView *view);
///Destructor.
virtual ~UiIfaceOverlay();
*/
class UiIfaceRotatable
{
+
+public:
+ /**
+ * @brief Get current view's degree.
+ *
+ * @return Current rotation degree, -1 if it fails to get degree information.
+ */
+ virtual int getDegree() { return 0; }
+
protected:
/**
* @brief View portrait state.
* @see on_landscpae()
*/
virtual void onRotate(int degree) {}
-
-public:
- /**
- * @brief Get current view's degree.
- *
- * @return Current rotation degree, -1 if it fails to get degree information.
- */
- virtual int getDegree() { return 0; }
};
}
*
* @warning if you don't set a view name, you could not look up the view with its name. @see ui_viewmgr_view_get_by_name()
*/
- UiIfaceView(const char *name = NULL);
+ explicit UiIfaceView(const char *name = NULL);
///Destructor.
virtual ~UiIfaceView();
bool _destroyLayout();
public:
- UiStandardViewImpl(UiStandardView *view);
+ explicit UiStandardViewImpl(UiStandardView *view);
~UiStandardViewImpl();
bool setContent(Evas_Object *content, const char *title = NULL);
bool onBack();
public:
- UiViewImpl(UiView *view);
+ explicit UiViewImpl(UiView *view);
~UiViewImpl();
const UiMenu *getMenu()
UiIfaceView *getLastView();
int getViewIndex(const UiIfaceView *view);
- UiIfaceViewmgrImpl(UiIfaceViewmgr *viewmgr);
+ explicit UiIfaceViewmgrImpl(UiIfaceViewmgr *viewmgr);
~UiIfaceViewmgrImpl();
bool activate();