diff options
author | YoungHun Cho <hoon.cho@samsung.com> | 2017-01-02 11:22:45 +0900 |
---|---|---|
committer | YoungHun Cho <hoon.cho@samsung.com> | 2017-01-02 11:22:45 +0900 |
commit | 62a62ce51d7250d8459957d481713bd2df505e8c (patch) | |
tree | 491c4e855454d950aea3c763443ed52a2411f80f /inc | |
parent | e9da500001fba0a0e4226702a9326a4ec9914d54 (diff) | |
download | w3-home-62a62ce51d7250d8459957d481713bd2df505e8c.tar.gz w3-home-62a62ce51d7250d8459957d481713bd2df505e8c.tar.bz2 w3-home-62a62ce51d7250d8459957d481713bd2df505e8c.zip |
tmp backuprefactor
Change-Id: I3f9349443c08de197b1ed56cf36275e3e60982ac
Signed-off-by: YoungHun Cho <hoon.cho@samsung.com>
Diffstat (limited to 'inc')
31 files changed, 937 insertions, 0 deletions
diff --git a/inc/add-widget/add-widget.h b/inc/add-widget/add-widget.h new file mode 100755 index 0000000..c4481bb --- /dev/null +++ b/inc/add-widget/add-widget.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __ADD_WIDGET_H__ +#define __ADD_WIDGET_H__ + +#include "home/home_state.h" + +HOME_STATE *add_widget_new(void); + +#endif diff --git a/inc/apps/apps.h b/inc/apps/apps.h new file mode 100755 index 0000000..a86ecfb --- /dev/null +++ b/inc/apps/apps.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __APPS_H__ +#define __APPS_H__ + +#include "home/home_state.h" + +HOME_STATE *apps_new(void); + +#endif diff --git a/inc/clock/clock.h b/inc/clock/clock.h new file mode 100755 index 0000000..47b74b4 --- /dev/null +++ b/inc/clock/clock.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __CLOCK_H__ +#define __CLOCK_H__ + +#include "home/home_state.h" + +HOME_STATE *clock_new(); + +#endif diff --git a/inc/clock/clock_info.h b/inc/clock/clock_info.h new file mode 100755 index 0000000..2a4131f --- /dev/null +++ b/inc/clock/clock_info.h @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __CLOCK_INFO_H__ +#define __CLOCK_INFO_H__ + +#include <Elementary.h> +#include <app.h> + +typedef struct __clock_info_t { + Evas_Object *clock_layout; + Evas_Object *clock_content; + char *clock_id; +} clock_info_t; + +clock_info_t *clock_info_new(Evas_Object *parent); +bool clock_info_set_content(clock_info_t *info, Evas_Object *content); + +#endif diff --git a/inc/clock/clock_scroller.h b/inc/clock/clock_scroller.h new file mode 100755 index 0000000..de77b9f --- /dev/null +++ b/inc/clock/clock_scroller.h @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __CLOCK_SCROLLER_H__ +#define __CLOCK_SCROLLER_H__ + +#include "clock/clock_info.h" + +#include <Elementary.h> +#include <app.h> + +bool clock_scroller_init(void); +bool clock_scroller_push_clock(clock_info_t *clock_info); +void clock_scroller_pop_clock(void); +void clock_scroller_scroll_to_clock(bool need_animation); + +#endif diff --git a/inc/clock/clock_view.h b/inc/clock/clock_view.h new file mode 100755 index 0000000..722bce8 --- /dev/null +++ b/inc/clock/clock_view.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __CLOCK_VIEW_H__ +#define __CLOCK_VIEW_H__ + +#include <app.h> + +bool clock_view_create_base_ui(void); +void clock_view_destroy(void); + +#endif diff --git a/inc/common/callback_handler.h b/inc/common/callback_handler.h new file mode 100755 index 0000000..a51e0fa --- /dev/null +++ b/inc/common/callback_handler.h @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __CALLBACK_HANDLER_H__ +#define __CALLBACK_HANDLER_H__ + +#include <app.h> + +#define MAX_CB_CNT 20 + +typedef struct __callback_h { + char *key; + int cb_count; + void (*cb_list[MAX_CB_CNT])(void* data); +} callback_h; + +callback_h *callback_handler_new(const char *key); +void callback_handler_free(callback_h *cb_h); +bool callback_handler_add_cb(callback_h *cb_h, void(*cb)(void *data)); +void callback_handler_del_cb(callback_h *cb_h, void(*cb)(void *data)); +void callback_handler_execute_cb(callback_h *cb_h, void *data); + +#endif diff --git a/inc/common/conf.h b/inc/common/conf.h new file mode 100755 index 0000000..1d346b4 --- /dev/null +++ b/inc/common/conf.h @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __HOME_CONF_H__ +#define __HOME_CONF_H__ + +#include <app.h> + +extern double _get_resolution_scale_h(); +extern double _get_resolution_scale_w(); +extern int _get_window_h(); +extern int _get_window_w(); + +#define WINDOW_H (_get_window_h()) +#define WINDOW_W (_get_window_w()) +#define WINDOW_CENTER_X (WINDOW_W/2) +#define WINDOW_CENTER_Y (WINDOW_H/2) + +#define PAGE_W WINDOW_W +#define PAGE_H WINDOW_H + +#define OUTSIDE_X (-(WINDOW_W + WINDOW_W)) +#define OUTSIDE_Y (-(WINDOW_H + WINDOW_H)) + +#define SCALE_H (_get_resolution_scale_h()) +#define SCALE_W (_get_resolution_scale_w()) + +void conf_set_resolution(int w, int h); +bool conf_is_supported_resolution(int w, int h); + +#endif diff --git a/inc/common/edje_conf.h b/inc/common/edje_conf.h new file mode 100755 index 0000000..cfcc95b --- /dev/null +++ b/inc/common/edje_conf.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __HOME_EDJE_CONF_H__ +#define __HOME_EDJE_CONF_H__ + +#define EDJE_DIR "edje" +#define IMAGE_DIR "images" + +#define GROUP_HOME_PAGE_LAYOUT "group_home_page_layout" + +#define PART_PAGE_CONTENT "part_page_content" + +#define SIZE_SETTER "size_setter" + +#endif diff --git a/inc/common/log.h b/inc/common/log.h new file mode 100755 index 0000000..5580391 --- /dev/null +++ b/inc/common/log.h @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __W_HOME_LOG_H__ +#define __W_HOME_LOG_H__ + +#include <dlog.h> + +#ifndef __MODULE__ +#define __MODULE__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__) +#endif + +#undef LOG_TAG +#define LOG_TAG "W_HOME" + +#ifndef LOG_ +#define LOG_(prio, tag, fmt, arg...) \ + ({ do { \ + dlog_print(prio, tag, "%s: %s(%d) > " fmt, __MODULE__, __func__, __LINE__, ##arg);\ + } while (0); }) +#endif + +#ifndef _D +#define _D(format, arg...) LOG_(DLOG_DEBUG, LOG_TAG, format, ##arg) +#endif +#ifndef _I +#define _I(format, arg...) LOG_(DLOG_INFO, LOG_TAG, format, ##arg) +#endif +#ifndef _E +#define _E(format, arg...) LOG_(DLOG_ERROR, LOG_TAG, format, ##arg) +#endif + +#endif diff --git a/inc/common/util.h b/inc/common/util.h new file mode 100755 index 0000000..53cb3d7 --- /dev/null +++ b/inc/common/util.h @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __W_HOME_UTIL_H__ +#define __W_HOME_UTIL_H__ + +enum directory_path { + DATA, + RESOURCE, +}; + +const char *util_get_file_path(enum directory_path, const char *file); + +#define util_get_data_file_path(x) util_get_file_path(DATA, (x)) +#define util_get_res_file_path(x) util_get_file_path(RESOURCE, (x)) + +#endif diff --git a/inc/home/home_base_layout.h b/inc/home/home_base_layout.h new file mode 100755 index 0000000..72eaa51 --- /dev/null +++ b/inc/home/home_base_layout.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __HOME_BASE_LAYOUT_H__ +#define __HOME_BASE_LAYOUT_H__ + +#include <Elementary.h> + +typedef struct __home_base_layout_t { + Evas_Object *parent; + Evas_Object *scroller; + Evas_Object *box; +} home_base_layout_t; + +#endif diff --git a/inc/home/home_manager.h b/inc/home/home_manager.h new file mode 100755 index 0000000..d826f60 --- /dev/null +++ b/inc/home/home_manager.h @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __HOME_MANAGER_H__ +#define __HOME_MANAGER_H__ + +#include <app.h> + +#include "home/home_state.h" + +bool home_create_cb(void *data); +void home_app_control_cb(app_control_h app_control, void *data); +void home_resume_cb(void *data); +void home_pause_cb(void *data); +void home_terminate_cb(void *data); +void home_language_changed_cb(app_event_info_h event_info, void *user_data); + +HOME_STATE *home_get_current_state(void); +void home_add_terminate_cb(void(*cb)(void *data)); +void home_del_terminate_cb(void(*cb)(void *data)); + + +#endif diff --git a/inc/home/home_scroller.h b/inc/home/home_scroller.h new file mode 100755 index 0000000..3087a54 --- /dev/null +++ b/inc/home/home_scroller.h @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __HOME_SCROLLER_H__ +#define __HOME_SCROLLER_H__ + +#include "home/home_view_page.h" + +#include <Elementary.h> +#include <app.h> + +typedef struct __home_scroller_t { + Evas_Object *parent; + Evas_Object *scroller; + Evas_Object *box; + home_scroller_page_t *clock_page; + home_scroller_page_t *noti_first_page; + home_scroller_page_t *widgets_first_page; +} home_scroller_t; + +home_scroller_t *home_scroller_get(void); + +#endif diff --git a/inc/home/home_scroller_page.h b/inc/home/home_scroller_page.h new file mode 100755 index 0000000..29aefc3 --- /dev/null +++ b/inc/home/home_scroller_page.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __HOME_SCROLLER_PAGE_H__ +#define __HOME_SCROLLER_PAGE_H__ + +#include <app.h> +#include <Elementary.h> + +typedef struct __home_scroller_paget_t { + Evas_Object *parent; + Evas_Object *layout; + int page_idx; +} home_scroller_page_t; + +home_scroller_page_t *home_scroller_page_new(Evas_Object *parent); +void home_scroller_page_del(home_scroller_page_t *page); +bool home_scroller_page_set_content(home_scroller_page_t *page, Evas_Object *content); +Evas_Object *home_scroller_page_get_content(home_scroller_page_t *page); + +#endif diff --git a/inc/home/home_state.h b/inc/home/home_state.h new file mode 100755 index 0000000..28a46f5 --- /dev/null +++ b/inc/home/home_state.h @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __HOME_STATE_H__ +#define __HOME_STATE_H__ + +#include <app.h> + +typedef enum _home_state_e { + DUMMY = -1, + CLOCK = 0, + WIDGETS, + NOTIFICATIONS, + APPS, + MOMENT, + ADD_WIDGET, +} home_state_e; + +typedef struct _HOME_STATE { + home_state_e type; + bool (*is_visible_cb)(void); + void (*step_in_cb)(void); + void (*step_out_cb)(void); + void (*destroy_cb)(void); +} HOME_STATE; + +void home_state_destroy(HOME_STATE *state); + +#endif diff --git a/inc/home/home_view_page.h b/inc/home/home_view_page.h new file mode 100755 index 0000000..91e1ba2 --- /dev/null +++ b/inc/home/home_view_page.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __HOME_VIEW_PAGE_H__ +#define __HOME_VIEW_PAGE_H__ + +#include <app.h> +#include <Elementary.h> + +typedef struct __home_view_paget_t { + Evas_Object *parent; + Evas_Object *layout; + int page_idx; +} home_view_page_t; + +home_view_page_t *home_view_page_new(Evas_Object *parent); +void home_view_page_del(home_view_page_t *page); +bool home_view_page_set_content(home_view_page_t *page, Evas_Object *content); +Evas_Object *home_view_page_get_content(home_view_page_t *page); + +#endif diff --git a/inc/home/home_win.h b/inc/home/home_win.h new file mode 100755 index 0000000..df72335 --- /dev/null +++ b/inc/home/home_win.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __HOME_WIN_H__ +#define __HOME_WIN_H__ + +#include <Elementary.h> +#include <app.h> + +Evas_Object *home_win_get(void); + +#endif diff --git a/inc/moment/moment.h b/inc/moment/moment.h new file mode 100755 index 0000000..a9c1a73 --- /dev/null +++ b/inc/moment/moment.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __MOMENT_H__ +#define __MOMENT_H__ + +#include "home/home_state.h" + +HOME_STATE *moment_new(void); + +#endif diff --git a/inc/notifications/noti_event_manager.h b/inc/notifications/noti_event_manager.h new file mode 100755 index 0000000..ce698ad --- /dev/null +++ b/inc/notifications/noti_event_manager.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __NOTI_EVENT_MANAGER_H__ +#define __NOTI_EVENT_MANAGER_H__ + +#include "notifications/noti_info.h" + +bool noti_event_manager_init(void); +void noti_event_manager_fini(void); + +void noti_event_manager_add_changed_cb(void(*cb)(void *noti_info)); +void noti_event_manager_del_changed_cb(void(*cb)(void *noti_info)); + +#endif diff --git a/inc/notifications/noti_full_popup.h b/inc/notifications/noti_full_popup.h new file mode 100755 index 0000000..879f11b --- /dev/null +++ b/inc/notifications/noti_full_popup.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __NOTI_FULL_POPUP_H__ +#define __NOTI_FULL_POPUP_H__ + +#include <notification.h> +#include <notification_internal.h> + +void noti_full_popup_show(notification_h noti_handler); + +#endif diff --git a/inc/notifications/noti_info.h b/inc/notifications/noti_info.h new file mode 100755 index 0000000..e91148a --- /dev/null +++ b/inc/notifications/noti_info.h @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __NOTI_INFO_H__ +#define __NOTI_INFO_H__ + +#include <notification.h> +#include <notification_internal.h> +#include <Elementary.h> +#include <app.h> + +typedef struct __noti_message_t { + int id; + notification_h noti_handler; + notification_op_type_e operation_type; +} noti_message_t; + +typedef struct __noti_info_t { + Evas_Object *noti_layout; + Evas_Object *noti_content; + char *noti_id; +} noti_info_t; + +noti_info_t *noti_info_new(Evas_Object *parent); +bool noti_info_set_content(noti_info_t *info, Evas_Object *content); + +#endif diff --git a/inc/notifications/noti_popup_manager.h b/inc/notifications/noti_popup_manager.h new file mode 100755 index 0000000..8609ef6 --- /dev/null +++ b/inc/notifications/noti_popup_manager.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __NOTI_POPUP_MANAGER_H__ +#define __NOTI_POPUP_MANAGER_H__ + +#include <app.h> + +bool noti_popup_manager_init(void); +void noti_popup_manager_fini(void); + +#endif diff --git a/inc/notifications/noti_scroller.h b/inc/notifications/noti_scroller.h new file mode 100755 index 0000000..d25cde9 --- /dev/null +++ b/inc/notifications/noti_scroller.h @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __NOTI_SCROLLER_H__ +#define __NOTI_SCROLLER_H__ + +#include "home/home_scroller.h" +#include "notifications/noti_info.h" + +#include <Elementary.h> +#include <app.h> + +home_scroller_t *noti_scroller_get(void); +bool noti_scroller_push_noti(noti_info_t *noti_info); +void noti_scroller_pop_noti(void); + +#endif diff --git a/inc/notifications/noti_small_popup.h b/inc/notifications/noti_small_popup.h new file mode 100755 index 0000000..7351508 --- /dev/null +++ b/inc/notifications/noti_small_popup.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __NOTI_SMALL_POPUP_H__ +#define __NOTI_SMALL_POPUP_H__ + +#include <notification.h> +#include <notification_internal.h> + +void noti_small_popup_show(notification_h noti_handler); + +#endif diff --git a/inc/notifications/noti_view.h b/inc/notifications/noti_view.h new file mode 100755 index 0000000..70c7deb --- /dev/null +++ b/inc/notifications/noti_view.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __NOTI_VIEW_H__ +#define __NOTI_VIEW_H__ + +#include <app.h> + +bool noti_view_create_base_ui(void); +void noti_view_destroy(void); + +#endif diff --git a/inc/notifications/notifications.h b/inc/notifications/notifications.h new file mode 100755 index 0000000..1a1a837 --- /dev/null +++ b/inc/notifications/notifications.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __NOTIFICATIONS_H__ +#define __NOTIFICATIONS_H__ + +#include "home/home_state.h" + +HOME_STATE *notifications_new(); + +#endif diff --git a/inc/widgets/widget_info.h b/inc/widgets/widget_info.h new file mode 100755 index 0000000..b91370f --- /dev/null +++ b/inc/widgets/widget_info.h @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __WIDGET_INFO_H__ +#define __WIDGET_INFO_H__ + +#include <Elementary.h> +#include <app.h> + +typedef struct __widget_info_t { + Evas_Object *widget_layout; + Evas_Object *widget_content; + char *widget_id; +} widget_info_t; + +widget_info_t *widget_info_new(Evas_Object *parent); +bool widget_info_set_content(widget_info_t *info, Evas_Object *content); + +#endif diff --git a/inc/widgets/widgets.h b/inc/widgets/widgets.h new file mode 100755 index 0000000..3918018 --- /dev/null +++ b/inc/widgets/widgets.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __WIDGETS_H__ +#define __WIDGETS_H__ + +#include "home/home_state.h" + +HOME_STATE *widgets_new(); + +#endif diff --git a/inc/widgets/widgets_scroller.h b/inc/widgets/widgets_scroller.h new file mode 100755 index 0000000..413e18b --- /dev/null +++ b/inc/widgets/widgets_scroller.h @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __WIDGETS_SCROLLER_H__ +#define __WIDGETS_SCROLLER_H__ + +#include "home/home_scroller.h" +#include "widgets/widget_info.h" + +#include <Elementary.h> +#include <app.h> + +home_scroller_t *widgets_scroller_get(void); +bool *widgets_scroller_push_widget(widget_info_t *widget_info); +void widgets_scroller_pop_widget(widget_info_t *widget_info); +void *widgets_scroller_pop_all(void); + +#endif diff --git a/inc/widgets/widgets_view.h b/inc/widgets/widgets_view.h new file mode 100755 index 0000000..bbb3ee4 --- /dev/null +++ b/inc/widgets/widgets_view.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2013 - 2016 Samsung Electronics Co., Ltd. + * + * Licensed under the Flora License, Version 1.1 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://floralicense.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 __WIDGETS_VIEW_H__ +#define __WIDGETS_VIEW_H__ + +#include <app.h> + +bool widgets_view_create_base_ui(void); +void widgets_view_destroy(void); + +#endif |