diff options
Diffstat (limited to 'inc/notifications')
-rwxr-xr-x | inc/notifications/noti_event_manager.h | 28 | ||||
-rwxr-xr-x | inc/notifications/noti_full_popup.h | 25 | ||||
-rwxr-xr-x | inc/notifications/noti_info.h | 40 | ||||
-rwxr-xr-x | inc/notifications/noti_popup_manager.h | 25 | ||||
-rwxr-xr-x | inc/notifications/noti_scroller.h | 30 | ||||
-rwxr-xr-x | inc/notifications/noti_small_popup.h | 25 | ||||
-rwxr-xr-x | inc/notifications/noti_view.h | 25 | ||||
-rwxr-xr-x | inc/notifications/notifications.h | 24 |
8 files changed, 222 insertions, 0 deletions
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 |