Files : remove unused files, add item files
authorJin Yoon <jinny.yoon@samsung.com>
Fri, 7 Aug 2015 01:27:48 +0000 (10:27 +0900)
committerJin Yoon <jinny.yoon@samsung.com>
Fri, 7 Aug 2015 01:27:48 +0000 (10:27 +0900)
15 files changed:
inc/item.h [moved from src/write_path.c with 100% similarity]
inc/login.h [deleted file]
inc/path.h [deleted file]
inc/path_group.h [deleted file]
inc/point.h [deleted file]
inc/search_path.h [deleted file]
inc/webview.h [deleted file]
inc/write_path.h [deleted file]
src/item.c [moved from src/search_path.c with 100% similarity]
src/login.c [deleted file]
src/path.c [deleted file]
src/path_group.c [deleted file]
src/point.c [deleted file]
src/search.c [deleted file]
src/webview.c [deleted file]

similarity index 100%
rename from src/write_path.c
rename to inc/item.h
diff --git a/inc/login.h b/inc/login.h
deleted file mode 100644 (file)
index 097341b..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#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);
diff --git a/inc/path.h b/inc/path.h
deleted file mode 100644 (file)
index 200920a..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#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__ */
diff --git a/inc/path_group.h b/inc/path_group.h
deleted file mode 100644 (file)
index c7da0d8..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#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__ */
diff --git a/inc/point.h b/inc/point.h
deleted file mode 100644 (file)
index 0cd61d6..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#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__ */
diff --git a/inc/search_path.h b/inc/search_path.h
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/inc/webview.h b/inc/webview.h
deleted file mode 100644 (file)
index a700896..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * 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__
diff --git a/inc/write_path.h b/inc/write_path.h
deleted file mode 100644 (file)
index 84bbddb..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#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__ */
similarity index 100%
rename from src/search_path.c
rename to src/item.c
diff --git a/src/login.c b/src/login.c
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/src/path.c b/src/path.c
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/src/path_group.c b/src/path_group.c
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/src/point.c b/src/point.c
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/src/search.c b/src/search.c
deleted file mode 100644 (file)
index 4dabf7e..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-#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);
-}
diff --git a/src/webview.c b/src/webview.c
deleted file mode 100644 (file)
index 2ab7b81..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * 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);
-}