class UiBaseKeyListenerImpl
{
protected:
- UiBaseKeyListener *keyListener;
- UiBaseViewmgr *viewmgr;
- Evas_Object *keyGrabber;
+ UiBaseKeyListener *keyListener = NULL;
+ UiBaseViewmgr *viewmgr = NULL;
+ Evas_Object *keyGrabber = NULL;
public:
UiBaseKeyListenerImpl(UiBaseKeyListener *key_listener, UiBaseViewmgr *viewmgr);
}
UiBaseKeyListenerImpl::UiBaseKeyListenerImpl(UiBaseKeyListener *keyListener, UiBaseViewmgr *viewmgr)
- : keyListener(keyListener), viewmgr(viewmgr), keyGrabber(NULL)
+ : keyListener(keyListener), viewmgr(viewmgr)
{
}
friend class UiBaseViewmgr;
private:
- UiBaseViewmgr *_viewmgr;
- Elm_Win *_win; //This is acting like a base object of viewmgr.
- Elm_Conformant *_conform; //Conformant for viewmgr.
- Elm_Scroller *_scroller; //Scroller for viewmgr.
- Elm_Layout *_layout; //Viewmgr's base layout.
- UiBaseKeyListener *_keyListener; //HW Key Handler such as "BACK" key...
- UiViewIndicator _indicator; //Mode of indicator.
- string _transitionStyle; //Current transition effect style name
- map<string, Elm_Layout *> _effectMap; //Map for effect layouts.
+ UiBaseViewmgr *_viewmgr = NULL;
+ Elm_Win *_win = NULL; //This is acting like a base object of viewmgr.
+ Elm_Conformant *_conform = NULL; //Conformant for viewmgr.
+ Elm_Scroller *_scroller = NULL; //Scroller for viewmgr.
+ Elm_Layout *_layout = NULL; //Viewmgr's base layout.
+ UiBaseKeyListener *_keyListener = NULL; //HW Key Handler such as "BACK" key...
+ UiViewIndicator _indicator = UI_VIEW_INDICATOR_DEFAULT; //Mode of indicator.
+ string _transitionStyle = "default"; //Current transition effect style name
+ map<string, Elm_Layout *> _effectMap; //Map for effect layouts.
Elm_Layout *_setTransitionLayout(string transitionStyle);
}
UiBaseViewmgrImpl::UiBaseViewmgrImpl(UiBaseViewmgr *viewmgr, const char *pkg, UiBaseKeyListener *keyListener)
- : _viewmgr(viewmgr), _keyListener(keyListener), _transitionStyle("default")
+ : _viewmgr(viewmgr), _keyListener(keyListener)
{
if (!pkg) {
LOGE("Invalid package name");
friend class UiStandardView;
private:
- UiStandardView *_view;
- Elm_Layout *_layout; //Base layout for view
- Elm_Toolbar *_toolbar; //Toolbar
- Elm_Button *_titleLeftBtn; //Title left button
- Elm_Button *_titleRightBtn; //Title right button
+ UiStandardView *_view = NULL;
+ Elm_Layout *_layout = NULL; //Base layout for view
+ Elm_Toolbar *_toolbar = NULL; //Toolbar
+ Elm_Button *_titleLeftBtn = NULL; //Title left button
+ Elm_Button *_titleRightBtn = NULL; //Title right button
bool _createLayout();
bool _destroyLayout();
}
UiStandardViewImpl::UiStandardViewImpl(UiStandardView *view)
- : _view(view), _layout(NULL), _toolbar(NULL), _titleLeftBtn(NULL), _titleRightBtn(NULL)
+ : _view(view)
{
}
friend class UiView;
private:
- UiView *_view;
- UiMenu *_menu;
+ UiView *_view = NULL;
+ UiMenu *_menu = NULL;
list<UiPopup *> _popupList;
void _connectPopup(UiPopup *popup);
public:
friend class UiIfaceApp;
- UiIfaceApp *app;
- UiIfaceViewmgr *viewmgr;
- Eina_Stringshare *pkg;
- Eina_Stringshare *locale_dir;
+ UiIfaceApp *app = NULL;
+ UiIfaceViewmgr *viewmgr = NULL;
+ Eina_Stringshare *pkg = NULL;
+ Eina_Stringshare *locale_dir = NULL;
UiIfaceAppImpl(UiIfaceApp *app, const char *pkg, const char *locale_dir, UiIfaceViewmgr* viewmgr);
~UiIfaceAppImpl();
friend class UiIfaceOverlay;
private:
- UiIfaceOverlay *_overlay;
- UiIfaceView *_view;
- T _content;
+ UiIfaceOverlay *_overlay = NULL;
+ UiIfaceView *_view = NULL;
+ T _content = NULL;
public:
bool setContent(T content);
}
UiIfaceOverlayImpl::UiIfaceOverlayImpl(UiIfaceOverlay *overlay, UiIfaceView *view)
- : _overlay(overlay), _view(view), _content(NULL)
+ : _overlay(overlay), _view(view)
{
}
friend class UiIfaceView;
private:
- UiIfaceView *_view;
- T _content; ///< A content instance for a screen as a view.
- string _name; ///< View name.
- string _transition_style; ///< View transition style name.
- UiIfaceViewmgr *_viewmgr; ///< Viewmgr which this view belongs to.
- UiViewState _state; ///< View state.
- UiViewIndicator _indicator; ///< View indicator mode.
- bool _event_block; ///< State of event block.
- bool _removable_content; ///< When this value is true, view removes it's content internally on unload state.
+ UiIfaceView *_view = NULL;
+ T _content = NULL; ///< A content instance for a screen as a view.
+ string _name; ///< View name.
+ string _transition_style = "default"; ///< View transition style name.
+ UiIfaceViewmgr *_viewmgr = NULL; ///< Viewmgr which this view belongs to.
+ UiViewState _state = UI_VIEW_STATE_UNLOAD; ///< View state.
+ UiViewIndicator _indicator = UI_VIEW_INDICATOR_DEFAULT; ///< View indicator mode.
+ bool _event_block = false; ///< State of event block.
+ bool _removable_content = true; ///< When this value is true, view removes it's content internally on unload state.
public:
void setEventBlock(bool block);
}
UiIfaceViewImpl::UiIfaceViewImpl(UiIfaceView *view, const char *name)
- : _view(view), _content(NULL), _name(string(name ? name : "")), _transition_style(string("default")), _viewmgr(NULL), _state(UI_VIEW_STATE_LOAD),
- _indicator(UI_VIEW_INDICATOR_DEFAULT), _event_block(false), _removable_content(true)
+ : _view(view), _name(string(name ? name : ""))
{
- this->_state = UI_VIEW_STATE_UNLOAD;
}
UiIfaceViewImpl::~UiIfaceViewImpl()
static UiIfaceViewmgr *_inst;
static bool _softKey; //If system doesn't support HW back key, then this value is @c true.
static bool _eventBlock; //Event block on view transition. This value should be configurable by system.
- list<UiIfaceView *> _viewList; //View list.
- bool _activated; //Activated status of this viewmgr.
- bool _destroying; //True, if viewmgr is on destroying.
+ list<UiIfaceView *> _viewList; //View list.
+ bool _activated = false; //Activated status of this viewmgr.
+ bool _destroying = false; //True, if viewmgr is on destroying.
public:
bool connectView(UiIfaceView *view);
}
UiIfaceViewmgrImpl::UiIfaceViewmgrImpl(UiIfaceViewmgr* viewmgr)
- : _activated(false), _destroying(false)
{
UiIfaceViewmgrImpl::_inst = viewmgr;
}