summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rwxr-xr-x[-rw-r--r--]include/define.h131
-rw-r--r--include/layout_channelinfo.h22
-rw-r--r--include/layout_channelinfo_list.h22
-rw-r--r--include/layout_channelinfo_search.h22
-rw-r--r--include/strings.h42
-rw-r--r--include/tv.h98
-rw-r--r--include/util.h35
-rwxr-xr-x[-rw-r--r--]include/view.h22
8 files changed, 3 insertions, 391 deletions
diff --git a/include/define.h b/include/define.h
index ce3bfb0..aa79cdb 100644..100755
--- a/include/define.h
+++ b/include/define.h
@@ -17,134 +17,7 @@
#ifndef __LIVETV_DEFINE_H__
#define __LIVETV_DEFINE_H__
-#include "strings.h"
-
-#define KEY_SVCID "service_id"
-
-#define PART_CONTENT "elm.swallow.content"
-#define PART_TEXT "elm.text"
-#define PART_ICON "elm.swallow.icon"
-#define PART_ICON_FOCUSED "elm.swallow.icon.focus"
-#define PART_ICON_SELECTED "elm.swallow.icon.select"
-#define PART_ICON_DISABLED "elm.swallow.icon.disable"
-#define PART_TEXT_1 "elm.text.1"
-#define PART_ICON_1 "elm.swallow.icon.1"
-#define PART_ICON_1_FOCUSED "elm.swallow.icon.1.focus"
-#define PART_ICON_1_SELECTED "elm.swallow.icon.1.select"
-#define PART_ICON_1_DISABLED "elm.swallow.icon.1.disable"
-#define PART_TEXT_BG "elm.swallow.text_bg"
-#define PART_CONTENT_BG "elm.swallow.content_bg"
-
-#define SOURCE_PROGRAM "program"
-#define SOURCE_ELM "elm"
-
-#define SIGNAL_FOCUSED "elm,action,focus"
-#define SIGNAL_UNFOCUSED "elm,action,unfocus"
-#define SIGNAL_RESET "elm,action,reset"
-#define SIGNAL_FIRST "elm,state,first"
-#define SIGNAL_LAST "elm,state,last"
-#define SIGNAL_LOCKED "elm,state,locked"
-#define SIGNAL_FAVORITE "elm,state,favorite"
-#define SIGNAL_NO_FAVORITE "elm,state,no_favorite"
-#define SIGNAL_TOGGLE "elm,state,toggle"
-#define SIGNAL_UNTOGGLE "elm,state,untoggle"
-#define SIGNAL_SHOW "show"
-#define SIGNAL_HIDE "hide"
-#define SIGNAL_HIDE_FINISHED "elm,action,hide,finished"
-#define SIGNAL_TIMEOUT "timeout"
-#define SIGNAL_ANIM_MOVE_UP "anim,move_up"
-#define SIGNAL_ANIM_MOVE_DOWN "anim,move_down"
-#define SIGNAL_ANIM_FINISHED "anim,finished"
-
-#define FONT_REGULAR "BreezeSans"
-#define FONT_LIGHT "BreezeSans:style=Light"
-#define FONT_BOLD "BreezeSans:style=Bold"
-
-#define COLOR_BG_NORMAL 255 255 255 255
-#define COLOR_BG_FOCUSED 0 119 246 255
-#define COLOR_TEXT_NORMAL 51 51 51 255
-#define COLOR_TEXT_FOCUSED 255 255 255 255
-#define COLOR_TEXT_TRANS 255 255 255 217
-#define COLOR_OPTION_TEXT_NORMAL 87 87 87 255
-#define COLOR_OPTION_TEXT_FOCUSED 255 255 255 255
-#define COLOR_OPTION_BORDER 154 154 154 255
-#define COLOR_NOFAVORITE_BG 229 229 229 255
-#define COLOR_NOFAVORITE_TEXT 0 0 0 178
-
-#define TRANSITION_EASE_IN_OUT 0.45 0.03 0.41 1.0
-#define TRANSITION_EASE_OUT 0.25 0.46 0.45 1.0
-
-#define IMAGE_FAV_NOR IMAGEDIR"/btn_menu_favorite_nor.png"
-#define IMAGE_FAV_FOC IMAGEDIR"/btn_menu_favorite_foc.png"
-#define IMAGE_FAV_SEL IMAGEDIR"/btn_menu_favorite_sel.png"
-#define IMAGE_FAV_DIS IMAGEDIR"/btn_menu_favorite_dis.png"
-#define IMAGE_UNFAV_NOR IMAGEDIR"/btn_menu_remove_favorite_nor.png"
-#define IMAGE_UNFAV_FOC IMAGEDIR"/btn_menu_remove_favorite_foc.png"
-#define IMAGE_UNFAV_SEL IMAGEDIR"/btn_menu_remove_favorite_sel.png"
-#define IMAGE_UNFAV_DIS IMAGEDIR"/btn_menu_remove_favorite_dis.png"
-#define IMAGE_LOCK_NOR IMAGEDIR"/btn_menu_lock_nor.png"
-#define IMAGE_LOCK_FOC IMAGEDIR"/btn_menu_lock_foc.png"
-#define IMAGE_LOCK_SEL IMAGEDIR"/btn_menu_lock_sel.png"
-#define IMAGE_LOCK_DIS IMAGEDIR"/btn_menu_lock_dis.png"
-#define IMAGE_UNLOCK_NOR IMAGEDIR"/btn_menu_unlock_nor.png"
-#define IMAGE_UNLOCK_FOC IMAGEDIR"/btn_menu_unlock_foc.png"
-#define IMAGE_UNLOCK_SEL IMAGEDIR"/btn_menu_unlock_sel.png"
-#define IMAGE_UNLOCK_DIS IMAGEDIR"/btn_menu_unlock_dis.png"
-#define IMAGE_ADD_CH_NOR IMAGEDIR"/btn_menu_add_ch_nor.png"
-#define IMAGE_ADD_CH_FOC IMAGEDIR"/btn_menu_add_ch_foc.png"
-#define IMAGE_ADD_CH_SEL IMAGEDIR"/btn_menu_add_ch_sel.png"
-#define IMAGE_ADD_CH_DIS IMAGEDIR"/btn_menu_add_ch_dis.png"
-#define IMAGE_REMOVE_CH_NOR IMAGEDIR"/btn_menu_add_remove_ch_nor.png"
-#define IMAGE_REMOVE_CH_FOC IMAGEDIR"/btn_menu_add_remove_ch_foc.png"
-#define IMAGE_REMOVE_CH_SEL IMAGEDIR"/btn_menu_add_remove_ch_sel.png"
-#define IMAGE_REMOVE_CH_DIS IMAGEDIR"/btn_menu_add_remove_ch_dis.png"
-#define IMAGE_FAVORITE_DEFAULT IMAGEDIR"/ic_default_tv.png"
-
-#define VIEW_CHANNELINFO "VIEW_CHANNELINFO"
-#define LAYOUT_CHANNELINFO "LAYOUT_CHANNELINFO"
-#define LAYOUT_CHANNELINFO_LIST "LAYOUT_CHANNELINFO_LIST"
-#define LAYOUT_CHANNELINFO_SEARCH "LAYOUT_CHANNELINFO_SEARCH"
-
-#define GRP_VIEW_CHANNELINFO "grp.view.channelinfo"
-#define GRP_LAYOUT_CHANNELINFO "grp.lavout.channelinfo.list"
-#define GRP_LAYOUT_CHANNELINFO_LIST "grp.layout.channelinfo.list"
-#define PART_CHANNELINFO_LIST_NEXT "part.channelinfo.list.next"
-#define PART_CHANNELINFO_LIST_CURRENT "part.channelinfo.list.current"
-#define PART_CHANNELINFO_LIST_PREV "part.channelinfo.list.prev"
-#define GRP_LAYOUT_CHANNELINFO_SEARCH "grp.layout.channelinfo.search"
-
-#define GRP_CHANNELINFO "grp.channelinfo"
-#define GRP_CHANNELINFO_SIMPLE "grp.channelinfo.simple"
-#define PART_CHANNELINFO_CHANNEL "part.channelinfo.channel"
-#define PART_CHANNELINFO_TITLE "part.channelinfo.title"
-#define PART_CHANNELINFO_TIME "part.channelinfo.time"
-#define PART_CHANNELINFO_STATUS "part.channelinfo.status"
-#define PART_CHANNELINFO_LOCKED "part.channelinfo.locked"
-#define PART_CHANNELINFO_FAVORITE "part.channelinfo.favorite"
-
-#define VIEW_CHANNELNUMBER "VIEW_CHANNELNUMBER"
-#define GRP_VIEW_CHANNELNUMBER "grp.view.channelnumber"
-#define PART_CHANNELNUMBER_NUMBER "part.channelnumber.number"
-#define PART_CHANNELNUMBER_LIST "part.channelnumber.list"
-#define GRP_CHANNELNUMBER_LIST_ITEM "grp.channelnumber.list.item"
-
-#define VIEW_ERROR "VIEW_ERROR"
-#define GRP_VIEW_ERROR "grp.view.error"
-#define PART_ERROR_TITLE "part.error.title"
-#define PART_ERROR_TEXT "part.error.text"
-
-#define VIEW_ACTION_MENU "VIEW_ACTION_MENU"
-#define GRP_VIEW_ACTION_MENU "grp.view.action_menu"
-#define PART_CHANNELINFO "part.channelinfo"
-#define GRP_ACTION_MENU_TOP "grp.action_menu_top"
-#define PART_TOP_BUTTON "part.top.button"
-#define PART_MENU "part.menu"
-#define GRP_ACTION_MENU_BOTTOM "grp.action_menu_bottom"
-#define PART_MORE_BUTTON "part.more.button"
-#define GRP_ACTION_MENU_NO_FAVORITE "grp.action_menu_no_favorite"
-
-#define VIEW_PIN "VIEW_PIN"
-#define MESSAGE_SUCCESS "success"
-#define MESSAGE_FAIL "fail"
+#define VIEW_BGIMAGE "VIEW_BGIMAGE"
+#define GRP_VIEW_BGIMAGE "grp.view.bgimage"
#endif /* __LIVETV_DEFINE_H__*/
diff --git a/include/layout_channelinfo.h b/include/layout_channelinfo.h
deleted file mode 100644
index 5ae049a..0000000
--- a/include/layout_channelinfo.h
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Copyright (c) 2015 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 __LAYOUT_CHANNELINFO_H__
-#define __LAYOUT_CHANNELINFO_H__
-
-layout_class *layout_channelinfo_get_lclass(void);
-
-#endif /* __LAYOUT_CHANNELINFO_H__*/
diff --git a/include/layout_channelinfo_list.h b/include/layout_channelinfo_list.h
deleted file mode 100644
index 3b7e8ab..0000000
--- a/include/layout_channelinfo_list.h
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Copyright (c) 2015 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 __LAYOUT_CHANNELINFO_LIST_H__
-#define __LAYOUT_CHANNELINFO_LIST_H__
-
-layout_class *layout_channelinfo_list_get_lclass(void);
-
-#endif /* __LAYOUT_CHANNELINFO_H__*/
diff --git a/include/layout_channelinfo_search.h b/include/layout_channelinfo_search.h
deleted file mode 100644
index f2507c3..0000000
--- a/include/layout_channelinfo_search.h
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Copyright (c) 2015 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 __LAYOUT_CHANNELINFO_SEARCH_H__
-#define __LAYOUT_CHANNELINFO_SEARCH_H__
-
-layout_class *layout_channelinfo_search_get_lclass(void);
-
-#endif /* __LAYOUT_CHANNELINFO_SEARCH_H__*/
diff --git a/include/strings.h b/include/strings.h
deleted file mode 100644
index 21aba70..0000000
--- a/include/strings.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright (c) 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/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 __AIR_LIVETV_STRINGS_H__
-#define __AIR_LIVETV_STRINGS_H__
-
-#define STR_NOTITLE "No Information"
-#define STR_NOTIME "No Data"
-#define STR_CHANNEL_PREFIX "CH."
-#define STR_NOCHANNEL_TITLE "No Channel"
-#define STR_NOCHANNEL_TEXT "The channel is not found"
-#define STR_NOSIGNAL_TITLE "Weak or No Signal"
-#define STR_NOSIGNAL_TEXT "Check the antenna cable connection"
-#define STR_LIVETV "Live TV"
-#define STR_BUTTON_MORE "More"
-#define STR_BUTTON_FAVORITE "Favorite"
-#define STR_BUTTON_LOCK "Lock"
-#define STR_BUTTON_UNLOCK "Unlock"
-#define STR_BUTTON_ADD_CHANNEL "Channel"
-#define STR_BUTTON_REMOVE_CHANNEL "Channel"
-#define STR_NOFAVORITE "No favorite channels"
-#define STR_FAVORITE_TOAST "Added to your favorite."
-#define STR_UNFAVORITE_TOAST "Removed from your favorite."
-#define STR_LOCK_TOAST "Channel is locked."
-#define STR_UNLOCK_TOAST "Channel is unlocked."
-#define STR_ADD_CHANNEL_TOAST "Added to channel list."
-#define STR_REMOVE_CHANNEL_TOAST "Removed from channel list."
-
-#endif /* __AIR_LIVETV_STRINGS_H__*/
diff --git a/include/tv.h b/include/tv.h
deleted file mode 100644
index 1794033..0000000
--- a/include/tv.h
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * Copyright (c) 2014 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/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 __TV_H__
-#define __TV_H__
-
-#include <stdbool.h>
-#include <Elementary.h>
-
-#define CHANNEL_NAME_MAX 128
-#define PROG_TITLE_MAX 128
-#define PROG_DESCR_MAX 128
-
-#define MAJOR_MAX 135
-#define MINOR_MAX 999
-#define EPG_PROGRAM_OFFSET 25000
-
-struct tv_channel_info {
- int service_id;
- long channel_major;
- long channel_minor;
- unsigned int channel_type;
-
- char channel_name[CHANNEL_NAME_MAX];
- time_t start_time;
- time_t end_time;
- time_t duration;
-
- int locked;
- int digital;
- int favorite;
- int remembered;
- int tune_locked;
-};
-
-struct tv_program_info {
- int service_id;
- time_t start_time;
- time_t end_time;
- time_t duration;
- time_t current_time;
- char prog_title[PROG_TITLE_MAX];
- char prog_description[PROG_DESCR_MAX];
-};
-
-struct tv_program_request {
- void (*tv_program_cb)(Eina_List *program_list, void *user_data);
- void *user_data;
-};
-
-int tv_create(void);
-int tv_destroy(void);
-int tv_pause(void);
-int tv_resume(void);
-
-int tv_overlay_set(void *window_id);
-
-Eina_List *tv_channel_get_list(void);
-Eina_List *tv_channel_get_favorite_list(void);
-Eina_List *tv_channel_search_by_number(long major, long minor);
-void tv_channel_del_list(Eina_List *channel_list);
-int tv_get_current_service_id(int *service_id);
-int tv_channel_tune(void);
-int tv_channel_tune_prev_channel(void);
-int tv_channel_direct_tune(long major, long minor);
-int tv_channel_tune_with_service_id(int service_id);
-int tv_channel_tune_locked_channel(int service_id, char *password);
-int tv_channel_set_favorite(int service_id, Eina_Bool flag);
-int tv_channel_add_channel(int service_id);
-int tv_channel_del_channel(int service_id);
-int tv_channel_lock_channel(int service_id, char *password);
-int tv_channel_unlock_channel(int service_id, char *password);
-const struct tv_channel_info *tv_channel_get_info(void);
-const struct tv_channel_info *tv_channel_clone_info(
- const struct tv_channel_info *channel_info);
-void tv_channel_del_info(const struct tv_channel_info *channel_info);
-
-int tv_epg_get_program(int service_id, struct tv_program_request *request);
-int tv_epg_get_cache_program(int service_id,
- struct tv_program_request *request);
-int tv_epg_get_program_list(int service_id, struct tv_program_request *request);
-
-void tv_signal_cb_set(void (*cb)(void *data, int is_signal), void *data);
-
-#endif /* __TV_H__ */
diff --git a/include/util.h b/include/util.h
deleted file mode 100644
index 66ed9c0..0000000
--- a/include/util.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Copyright (c) 2014 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/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 <stdbool.h>
-#include "tv.h"
-
-#ifndef __UTIL_H__
-#define __UTIL_H__
-
-Evas_Object *util_add_layout(Evas_Object *parent, const char *group);
-Evas_Object *util_add_box(Evas_Object *parent, bool horizon);
-Evas_Object *util_add_scroller(Evas_Object *parent, const char *part);
-Evas_Object *util_add_icon(Evas_Object *parent, const char *file,
- const char *part);
-Evas_Object *util_add_button(Evas_Object *parent, const char *part,
- const char *text, const char *style);
-Evas_Object *util_add_toast(Evas_Object *parent, char *text);
-void util_draw_channel_info(Evas_Object *obj,
- const struct tv_channel_info *channel_info);
-void util_launch_home(void);
-
-#endif
diff --git a/include/view.h b/include/view.h
index db1a783..3c4be86 100644..100755
--- a/include/view.h
+++ b/include/view.h
@@ -17,26 +17,6 @@
#ifndef __LIVETV_VIEW_H__
#define __LIVETV_VIEW_H__
-#include "tv.h"
-
-enum _update_type {
- UPDATE_TYPE_TIMER,
- UPDATE_TYPE_INPUT_KEY_DOWN,
- UPDATE_TYPE_INPUT_KEY_UP,
- UPDATE_TYPE_NOCHANNEL,
- UPDATE_TYPE_NOSIGNAL,
- UPDATE_TYPE_SHOW_TOAST,
-};
-
-enum _update_op {
- START_HIDE_TIMER,
- STOP_HIDE_TIMER
-};
-
-view_class *view_channelnumber_get_vclass(void);
-view_class *view_channelinfo_get_vclass(void);
-view_class *view_error_get_vclass(void);
-view_class *view_action_menu_get_vclass(void);
-view_class *view_pin_get_vclass(void);
+view_class *view_bgimage_get_vclass(void);
#endif /* __LIVETV_VIEW_H__*/