+++ /dev/null
-#include <Elementary.h>
-
-extern Evas_Object *login_create(Evas_Object *parent);
-extern void login_destroy(Evas_Object *login);
-
-extern void login_add_result_cb(Evas_Object *login, int (*result_cb)(void *data), void *data);
-extern void login_remove_result_cb(Evas_Object *login);
+++ /dev/null
-#ifndef __PATH_H__
-#define __PATH_H__
-
-#include <Elementary.h>
-#include "adventure.h"
-
-extern Evas_Object *path_create(Evas_Object *parent, path_info_s *path_info);
-extern void *path_destroy(Evas_Object *path);
-
-#endif /* __PATH_H__ */
+++ /dev/null
-#ifndef __PATH_GROUP_H__
-#define __PATH_GROUP_H__
-
-#include <Elementary.h>
-
-enum {
- PATH_GROUP_TYPE_PLACE = 0,
- PATH_GROUP_TYPE_BUY_LIST,
- PATH_GROUP_TYEP_MY_LIST,
- PATH_GROUP_TYPE_ALL,
-};
-
-extern Evas_Object *path_group_create(Evas_Object *parent, int type, void *data);
-extern void *path_group_destroy(Evas_Object *path_group);
-
-#endif /* __PATH_GROUP_H__ */
+++ /dev/null
-#ifndef __POINT_H__
-#define __POINT_H__
-
-#include <Elementary.h>
-#include "adventure.h"
-
-extern Evas_Object *point_create(Evas_Object *parent, point_info_s *point_info);
-extern void *point_destroy(Evas_Object *point);
-
-#endif /* __POINT_H__ */
+++ /dev/null
-/*
- * Samsung API
- * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd.
- *
- * 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/license/
- *
- * 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 __ADVENTURE_WEBVIEW_H__
-#define __ADVENTURE_WEBVIEW_H__
-
-#include <Evas.h>
-
-extern Evas_Object *webview_create(Evas_Object *parent);
-extern void webview_destroy(Evas_Object *webview);
-
-extern void webview_set_url(Evas_Object *webview, const char *url);
-
-#endif // __ADVENTURE_WEBVIEW_H__
+++ /dev/null
-#ifndef __WRITE_PATH_H__
-#define __WRITE_PATH_H__
-
-#include <Elementary.h>
-#include "adventure.h"
-
-extern Evas_Object *write_path_create(Evas_Object *parent);
-extern void *write_path_destroy(Evas_Object *write_path);
-
-#endif /* __WRITE_PATH_H__ */
+++ /dev/null
-#include <Elementary.h>
-#include "main.h"
-#include "log.h"
-#include "scroller"
-
-const char *const MAIN_VIEW_EDJE = "search.edj";
-
-static _clicked_cb(void *data, Evas_Object *obj, void *event_info)
-{
- moment_info_s *moment_info = data;
-
- _D("Add button is clicked");
-
- ret_if(!moment_info);
-
- elm_object_signal_emit(moment_info->search
-
- moment_info->scroller = scroller_create(moment_info->ui_manager);
- ret_if(!moment_info->scroller);
-}
-
-Evas_Object *search_create(Evas_Object *parent, moment_info_s *moment_info)
-{
- Evas_Object *search = NULL;
- Evas_Object *button = NULL;
- char *path = NULL;
- char full_path[] = {0, };
-
- retv_if(!parent, NULL);
-
- path = app_get_resource_path();
- retv_if(!path, NULL);
-
- snprintf(full_path, sizeof(full_path), "%s/edje/%s", path, MAIN_VIEW_EDJE);
- free(path);
-
- search = elm_layout_add(parent);
- retv_if(!search, NULL);
- elm_layout_file_set(search, full_path, "main");
- evas_object_size_hint_weight_set(search, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_size_hint_align_set(search, EVAS_HINT_FILL, EVAS_HINT_FILL);
- evas_object_show(search);
-
- elm_object_part_text_set(search, "title", "No cities");
- elm_object_part_text_set(search, "description", "After you add cities, they will be shown here.");
-
- button = elm_button_add(parent);
- if (button) {
- elm_object_text_set(button, "+ Add");
- elm_object_part_content_set(search, "button", button);
- evas_object_size_hint_weight_set(button, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_size_hint_align_set(button, EVAS_HINT_FILL, EVAS_HINT_FILL);
- evas_object_smart_callback_add(button, "clicked", _clicked_cb, moment_info);
- }
-
- return search;
-}
-
-void search_destroy(Evas_Object *search)
-{
- Evas_Object *button = NULL;
-
- ret_if(!search);
-
- button = elm_object_part_content_unset(search, "button");
- if (button) {
- evas_object_del(button);
- }
-
- evas_object_del(search);
-}
+++ /dev/null
-/*
- * Samsung API
- * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd.
- *
- * 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/license/
- *
- * 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 <tizen.h>
-#include <EWebKit.h>
-#include "adventure.h"
-#include "log.h"
-
-
-Evas_Object *webview_create(Evas_Object *parent)
-{
- Evas *e = NULL;
- Evas_Object *webview = NULL;
- int ret = -1;
-
- retv_if(!parent, NULL);
-
- ret = ewk_init();
- retv_if(ret <= 0, NULL);
-
- e = evas_object_evas_get(parent);
- goto_if(!e, error);
-
- webview = ewk_view_add(e);
- goto_if(!webview, error);
-
- return webview;
-
-error:
- ewk_shutdown();
- return NULL;
-}
-
-void webview_destroy(Evas_Object *webview)
-{
- ret_if(!webview);
- evas_object_del(webview);
- ewk_shutdown();
-}
-
-void webview_set_url(Evas_Object *webview, const char *url)
-{
- ret_if(!webview);
- ret_if(!url);
-
- ewk_view_url_set(webview, url);
-}