2 * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef __NOTIFICATION_ITEM_H__
18 #define __NOTIFICATION_ITEM_H__
20 #include <Elementary.h>
22 #define NOTIFICATION_ITEM_NONE 0
23 #define NOTIFICATION_ITEM_MESSAGE 1
24 #define NOTIFICATION_ITEM_CALL 2
27 Function create elm_scroller widget with notification content
31 * @brief Function create elm_scroller with notification content
33 * @param icon char pointer (path to icon file for content fill)
34 * @param content_text char pointer to text content
35 * @param contact char pointer for contact number or entry
36 * @param time char pointer refers to notification time
37 * @return pointer to scroller with 2 pages, notification item and empty page.
39 extern Evas_Object* notification_item_create(char *icon, char *content_text, char *contact, char *time);
42 * @brief Set item state to selected
43 * @details Function gets as a parameter elm_scroller widget with is in the notifications genlist. For send the signal it must get the
44 * notification page in this scroller. It use elm_object_signal_emit for change the background color of notification item.
45 * @param notification_scroller pointer to elm_scroller with notification_item
47 extern void notification_item_set_selected(Evas_Object *notification_scroller);
51 * @brief Set item state to default
52 * @details Function gets as a parameter elm_scroller widget with is in the notifications genlist. For send the signal it must get the
53 * notification page in this scroller. It use elm_object_signal_emit for change the background color of notification item.
54 * @param notification_scroller pointer to elm_scroller with notification_item
56 extern void notification_item_set_default(Evas_Object *notification_scroller);
58 extern Evas_Object* notification_item_main_create(char *icon_path, char *content, char *title, char *time);
60 extern void notification_item_selected_item_set(Evas_Object *obj);
61 extern Evas_Object* notification_item_selected_item_get(void);
63 extern void notification_item_selected_item_type_set(int type);
64 extern int notification_item_selected_item_type_get(void);
67 extern void notification_item_was_scrolled_set(Eina_Bool state);