This is first step for sorting up public interfaces.
no logic changes.
Change-Id: I9404aaeeb33441123f41f32baddf2ca3cfe0cec9
%files devel
%defattr(-,root,root,-)
+%{_includedir}/ui-viewmgr/*.h
%{_includedir}/ui-viewmgr/interface/*.h
%{_includedir}/ui-viewmgr/efl/*.h
%{_includedir}/ui-viewmgr/efl/mobile/*.h
-%{_includedir}/ui-viewmgr/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/ui-viewmgr.pc
*
*/
#include <dlog.h>
-#include "ui_viewmanager.h"
+#include <ui_viewmanager.h>
//uncomment if you want debug
#ifndef TIZEN_ENGINEER_MODE
#define PACKAGE "ui-viewmgr"
#endif
-using namespace efl_viewmgr;
-
Evas_Object *create_landscape_content(Evas_Object *parent, const char *text, Evas_Smart_Cb prev_btn_clicked_cb, Evas_Smart_Cb next_btn_clicked_cb);
Evas_Object *create_content(Evas_Object *parent, const char *text, Evas_Smart_Cb prev_btn_clicked_cb, Evas_Smart_Cb next_btn_clicked_cb);
Evas_Object *create_scrolling_content(Evas_Object *parent);
PATTERN "interface/*.h"
PATTERN "efl/*.h"
PATTERN "efl/mobile/*.h"
- PATTERN "ui_viewmanager.h"
+ PATTERN "*.h"
)
* limitations under the License.
*
*/
-#ifndef UI_APP_H
-#define UI_APP_H
+#ifndef _UI_APP_H_
+#define _UI_APP_H_
-#include "../ui_base_viewmanager.h"
-
-namespace efl_viewmgr
+namespace efl_viewmanager
{
class ui_viewmgr;
-class ui_app : public viewmgr::singleton<ui_app>
+class ui_app : public singleton<ui_app>
{
private:
ui_viewmgr *viewmgr;
}
-#endif /* UI_APP_H */
+#endif /* _UI_APP_H_ */
* limitations under the License.
*
*/
-#ifndef UI_KEY_HANDLER_H
-#define UI_KEY_HANDLER_H
+#ifndef _UI_KEY_LISTENER_H_
+#define _UI_KEY_LISTENER_H_
-#include "../ui_base_viewmanager.h"
-
-namespace efl_viewmgr
+namespace efl_viewmanager
{
class ui_viewmgr;
}
-#endif /* UI_KEY_HANDLER_H */
+#endif /* _UI_KEY_LISTENER_H_ */
* limitations under the License.
*
*/
-#ifndef UI_MENU_H
-#define UI_MENU_H
+#ifndef _UI_MENU_H_
+#define _UI_MENU_H_
-#include "../ui_base_viewmanager.h"
-
-namespace efl_viewmgr
+namespace efl_viewmanager
{
class ui_view;
}
-#endif /* UI_MENU_H */
+#endif /* _UI_MENU_H_ */
--- /dev/null
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+#ifndef _UI_MOBILE_VIEWMANAGER_H_
+#define _UI_MOBILE_VIEWMANAGER_H_
+
+#include <system_settings.h>
+
+#include "../ui_base_viewmanager.h"
+#include "ui_view.h"
+#include "ui_key_listener.h"
+#include "ui_viewmgr.h"
+#include "ui_menu.h"
+#include "ui_popup.h"
+#include "ui_app.h"
+
+#define UI_VIEWMGR ui_app::get_instance()->get_viewmgr()
+
+
+#endif /* UI_MOBILE_VIEWMANAGER_H */
* limitations under the License.
*
*/
-#ifndef UI_POPUP_H
-#define UI_POPUP_H
+#ifndef _UI_POPUP_H_
+#define _UI_POPUP_H_
-#include "../ui_base_viewmanager.h"
-
-namespace efl_viewmgr
+namespace efl_viewmanager
{
class ui_popup : public ui_base_overlay
{
}
-#endif /* UI_POPUP_H */
+#endif /* _UI_POPUP_H_ */
* limitations under the License.
*
*/
-#ifndef UI_VIEW
-#define UI_VIEW
+#ifndef _UI_VIEW_H_
+#define _UI_VIEW_H_
-#include "../ui_base_viewmanager.h"
-
-namespace efl_viewmgr
+namespace efl_viewmanager
{
class ui_menu;
}
-#endif /* UI_VIEW */
+#endif /* _UI_VIEW_H_ */
+++ /dev/null
-/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-#include <dlog.h>
-#include <system_settings.h>
-
-#ifdef LOG_TAG
-#undef LOG_TAG
-#endif
-#define LOG_TAG "UI_VIEWMGR"
-
-#include "ui_view.h"
-#include "ui_key_listener.h"
-#include "ui_viewmgr.h"
-#include "ui_menu.h"
-#include "ui_popup.h"
-#include "ui_app.h"
-
-#define UI_VIEWMGR efl_viewmgr::ui_app::get_instance()->get_viewmgr()
* limitations under the License.
*
*/
-#ifndef UI_VIEWMGR_H
-#define UI_VIEWMGR_H
+#ifndef _UI_VIEWMGR_H_
+#define _UI_VIEWMGR_H_
-#include <Elementary.h>
-#include "../ui_base_viewmanager.h"
-
-namespace efl_viewmgr
+namespace efl_viewmanager
{
class ui_view;
};
}
-#endif /* UI_VIEWMGR_H */
+#endif /* _UI_VIEWMGR_H_ */
* limitations under the License.
*
*/
-#ifndef UI_BASE_KEY_LISTENER_H
-#define UI_BASE_KEY_LISTENER_H
+#ifndef _UI_BASE_KEY_LISTENER_H_
+#define _UI_BASE_KEY_LISTENER_H_
-#include <Elementary.h>
-#include "../interface/ui_iface_viewmanager.h"
-
-namespace efl_viewmgr
+namespace efl_viewmanager
{
class ui_base_viewmgr;
class ui_base_view;
}
-#endif /* UI_BASE_KEY_LISTENER_H */
+#endif /* _UI_BASE_KEY_LISTENER_H_ */
* limitations under the License.
*
*/
-#ifndef UI_BASE_OVERLAY_H
-#define UI_BASE_OVERLAY_H
+#ifndef _UI_BASE_OVERLAY_H_
+#define _UI_BASE_OVERLAY_H_
-#include <Elementary.h>
-#include "../interface/ui_iface_viewmanager.h"
-
-namespace efl_viewmgr
+namespace efl_viewmanager
{
class ui_base_viewmgr;
class ui_base_view;
-class ui_base_overlay: public viewmgr::ui_iface_overlay<Evas_Object *, ui_base_viewmgr>
+class ui_base_overlay: public ui_iface_overlay<Evas_Object *, ui_base_viewmgr>
{
protected:
ui_base_overlay(ui_base_view *view);
}
-#endif /* UI_BASE_OVERLAY_H */
+#endif /* _UI_BASE_OVERLAY_H_ */
* limitations under the License.
*
*/
-#ifndef UI_BASE_VIEW_H
-#define UI_BASE_VIEW_H
+#ifndef _UI_BASE_VIEW_H_
+#define _UI_BASE_VIEW_H_
-#include <Elementary.h>
-#include "../interface/ui_iface_viewmanager.h"
-
-namespace efl_viewmgr
+namespace efl_viewmanager
{
/**
* @warning When the transitions are finished, the view must to call ui_iface_viewmgr :: _push_finished(), ui_iface_viewmgr :: _pop_finished() in order that
* The ui_iface_viewmgr keeps the view states exactly.
*/
-class ui_base_view: public viewmgr::ui_iface_view<Evas_Object *, ui_base_viewmgr>
+class ui_base_view: public ui_iface_view<Evas_Object *, ui_base_viewmgr>
{
friend class ui_base_viewmgr;
}
-#endif /* UI_BASE_VIEW_H */
+#endif /* _UI_BASE_VIEW_H_ */
* limitations under the License.
*
*/
-#include <dlog.h>
-
-#ifdef LOG_TAG
-#undef LOG_TAG
-#endif
-#define LOG_TAG "UI_VIEWMGR"
-
-#define UI_BASE_VIEWMGR efl_viewmgr::ui_base_viewmgr::get_instance()
+#ifndef _UI_BASE_VIEWMANAGER_H_
+#define _UI_BASE_VIEWMANAGER_H_
+#include <Elementary.h>
+#include "../interface/ui_iface_viewmanager.h"
#include "ui_base_overlay.h"
+#include "ui_base_key_listener.h"
#include "ui_base_viewmgr.h"
#include "ui_base_view.h"
-#include "ui_base_key_listener.h"
+
+#define UI_BASE_VIEWMGR ui_base_viewmgr::get_instance()
+
+using namespace efl_viewmanager;
+
+#endif /* UI_BASE_VIEWMANAGER_H */
* limitations under the License.
*
*/
-#ifndef UI_BASE_VIEWMGR_H
-#define UI_BASE_VIEWMGR_H
+#ifndef _UI_BASE_VIEWMGR_H_
+#define _UI_BASE_VIEWMGR_H_
#include <map>
-#include <Elementary.h>
-#include "../interface/ui_iface_viewmanager.h"
-#include "ui_base_key_listener.h"
-
//FIXME: ??
#ifndef Elm_Conformant
#define Elm_Conformant Evas_Object
#endif
-namespace efl_viewmgr
+namespace efl_viewmanager
{
class ui_base_view;
*
* @warning viewmgr will remove all containing views when it's destroyed.
*/
-class ui_base_viewmgr: public viewmgr::ui_iface_viewmgr<Evas_Object *, ui_base_viewmgr>
+class ui_base_viewmgr: public ui_iface_viewmgr<Evas_Object *, ui_base_viewmgr>
{
friend class ui_base_view;
};
}
-#endif /* UI_BASE_VIEWMGR_H */
+#endif /* _UI_BASE_VIEWMGR_H_ */
* limitations under the License.
*
*/
-#ifndef UI_IFACE_OVERLAY_H
-#define UI_IFACE_OVERLAY_H
+#ifndef _UI_IFACE_OVERLAY_H_
+#define _UI_IFACE_OVERLAY_H_
-namespace viewmgr
+namespace ui_viewmanager
{
template<typename T, typename T2>
}
-#endif /* UI_IFACE_OVERLAY_H */
+#endif /* _UI_IFACE_OVERLAY_H_ */
* limitations under the License.
*
*/
-#ifndef UI_IFACE_ROTATABLE_H_
-#define UI_IFACE_ROTATABLE_H_
+#ifndef _UI_IFACE_ROTATABLE_H_
+#define _UI_IFACE_ROTATABLE_H_
-namespace viewmgr
+namespace ui_viewmanager
{
class ui_iface_rotatable
{
}
-#endif /* UI_IFACE_ROTATABLE_H_ */
+#endif /* _UI_IFACE_ROTATABLE_H_ */
-#ifndef UI_IFACE_SINGLETON_H
-#define UI_IFACE_SINGLETON_H
+#ifndef _UI_IFACE_SINGLETON_H_
+#define _UI_IFACE_SINGLETON_H_
-namespace viewmgr
+namespace ui_viewmanager
{
template<typename T>
}
-#endif /* UI_IFACE_SINGLETON_H_ */
+#endif /* _UI_IFACE_SINGLETON_H_ */
* limitations under the License.
*
*/
-#ifndef UI_IFACE_VIEW_H_
-#define UI_IFACE_VIEW_H_
+#ifndef _UI_IFACE_VIEW_H_
+#define _UI_IFACE_VIEW_H_
#include <string>
using namespace std;
-namespace viewmgr {
-
+namespace ui_viewmanager {
template<typename T, typename T2>
class ui_iface_viewmgr;
}
-#endif /* UI_IFACE_VIEW_H_ */
+#endif /* _UI_IFACE_VIEW_H_ */
* limitations under the License.
*
*/
-#ifndef UI_IFACE_VIEWMANAGER_H_
-#define UI_IFACE_VIEWMANAGER_H_
+#ifndef _UI_IFACE_VIEWMANAGER_H_
+#define _UI_IFACE_VIEWMANAGER_H_
#include <app.h>
#include <dlog.h>
#include "ui_iface_view.h"
#include "ui_iface_viewmgr.h"
+using namespace ui_viewmanager;
+
#endif /* UI_IFACE_VIEWMANAGER_H */
* limitations under the License.
*
*/
-#ifndef UI_IFACE_VIEWMGR_H_
-#define UI_IFACE_VIEWMGR_H_
+#ifndef _UI_IFACE_VIEWMGR_H_
+#define _UI_IFACE_VIEWMGR_H_
#include <list>
using namespace std;
-namespace viewmgr {
+namespace ui_viewmanager {
template<typename T, typename T2>
class ui_iface_view;
}
-#endif /* UI_IFACE_VIEWMGR_H_ */
+#endif /* _UI_IFACE_VIEWMGR_H_ */
-#include "efl/mobile/ui_viewmanager.h"
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+#include "efl/mobile/ui_mobile_viewmanager.h"
* limitations under the License.
*
*/
-#include "../../../include/efl/mobile/ui_viewmanager.h"
-
-using namespace efl_viewmgr;
-using namespace viewmgr;
+#include "../../../include/efl/mobile/ui_mobile_viewmanager.h"
static bool app_create(void *data)
{
* limitations under the License.
*
*/
-#include "../../../include/efl/mobile/ui_viewmanager.h"
-
-using namespace efl_viewmgr;
-using namespace viewmgr;
+#include "../../../include/efl/mobile/ui_mobile_viewmanager.h"
static const char *KEY_MENU = "XF86Menu";
static const char *KEY_MENU2 = "XF86Send";
* limitations under the License.
*
*/
-#include "../../../include/efl/mobile/ui_viewmanager.h"
-
-using namespace efl_viewmgr;
+#include "../../../include/efl/mobile/ui_mobile_viewmanager.h"
static void ctxpopup_dismissed_cb(void *data, Evas_Object *obj, void *event_info)
{
* limitations under the License.
*
*/
-#include "../../../include/efl/mobile/ui_viewmanager.h"
-
-using namespace efl_viewmgr;
+#include "../../../include/efl/mobile/ui_mobile_viewmanager.h"
static bool update_popup(ui_popup *popup)
{
* limitations under the License.
*
*/
-#include "../../../include/efl/mobile/ui_viewmanager.h"
+#include "../../../include/efl/mobile/ui_mobile_viewmanager.h"
#define DEFAULT_GROUP "tizen_view/default"
-using namespace efl_viewmgr;
-using namespace viewmgr;
-
typedef list<ui_popup*>::reverse_iterator popup_ritr;
#define LAYOUT_VALIDATE() if (!layout) \
* limitations under the License.
*
*/
-#include "../../../include/efl/mobile/ui_viewmanager.h"
-
-using namespace efl_viewmgr;
-using namespace viewmgr;
+#include "../../../include/efl/mobile/ui_mobile_viewmanager.h"
ui_viewmgr::ui_viewmgr(const char *pkg)
: ui_base_viewmgr(pkg, new ui_key_listener(this))
*/
#include "../../include/efl/ui_base_viewmanager.h"
-using namespace efl_viewmgr;
-using namespace viewmgr;
-
static const char *KEY_BACK = "XF86Back";
static const char *KEY_BACK2 = "XF86Stop";
*/
#include "../../include/efl/ui_base_viewmanager.h"
-using namespace efl_viewmgr;
-using namespace viewmgr;
-
ui_base_overlay::ui_base_overlay(ui_base_view *view)
: ui_iface_overlay(view)
{
*/
#include "../../include/efl/ui_base_viewmanager.h"
-using namespace efl_viewmgr;
-using namespace viewmgr;
-
static void content_del_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
ui_base_view *view = static_cast<ui_base_view *>(data);
*/
#include "../../include/efl/ui_base_viewmanager.h"
-using namespace efl_viewmgr;
-using namespace viewmgr;
-
bool ui_base_viewmgr::create_base_layout(Elm_Scroller *scroller, const char *style)
{
char edj_path[PATH_MAX];