summaryrefslogtreecommitdiff
path: root/inc/home
diff options
context:
space:
mode:
Diffstat (limited to 'inc/home')
-rwxr-xr-xinc/home/home_base_layout.h28
-rwxr-xr-xinc/home/home_manager.h36
-rwxr-xr-xinc/home/home_scroller.h36
-rwxr-xr-xinc/home/home_scroller_page.h34
-rwxr-xr-xinc/home/home_state.h42
-rwxr-xr-xinc/home/home_view_page.h34
-rwxr-xr-xinc/home/home_win.h25
7 files changed, 235 insertions, 0 deletions
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