Tizen release 1.0
[apps/home/ug-memo-efl.git] / include / memo-genlist.h
1 /*
2  * Copyright (c) 2000-2012 Samsung Electronics Co., Ltd All Rights Reserved
3  * 
4  * This file is part of the ug-memo-efl
5  * Written by Zhibin Zhou <zhibin.zhou@samsung.com>, Canjiang Lu <canjiang.lu@samsung.com>,
6  *            Feng Li <feng.li@samsung.com>
7  *
8  * PROPRIETARY/CONFIDENTIAL
9  *
10  * This software is the confidential and proprietary information of
11  * SAMSUNG ELECTRONICS ("Confidential Information").
12  * You shall not disclose such Confidential Information and shall
13  * use it only in accordance with the terms of the license agreement
14  * you entered into with SAMSUNG ELECTRONICS.  SAMSUNG make no
15  * representations or warranties about the suitability
16  * of the software, either express or implied, including but not
17  * limited to the implied warranties of merchantability, fitness for a particular purpose, or non-
18  * infringement. SAMSUNG shall not be liable for any damages suffered by licensee as
19  * a result of using, modifying or distributing this software or its derivatives.
20  *
21  */
22
23 #ifndef __MEMO_GENLIST_H__
24 #define __MEMO_GENLIST_H__
25
26 typedef struct __gl_data_t {
27     /* common */
28     int index;
29     int has_doodle;
30     time_t mod_time;
31     Evas_Smart_Cb on_select;
32     /* checkbox */
33     Eina_Bool check;
34     Evas_Smart_Cb on_change;
35     /* sweep */
36     Evas_Smart_Cb on_delete;
37     Evas_Smart_Cb on_send;
38     /* search */
39     const char *search;
40     /* user data */
41     void *user_data;
42 } gl_data_t;
43
44 char *memo_gl_label_get(void *data, Evas_Object *obj, const char *part);
45 Evas_Object *memo_gl_icon_get(void *data, Evas_Object *obj, const char *part);
46 Eina_Bool memo_gl_state_get(void *data, Evas_Object *obj, const char *part);
47 void memo_gl_del(void *data, Evas_Object *obj);
48 void memo_gl_itc_init(Elm_Genlist_Item_Class *itc, const char *style);
49 void memo_gld_init(gl_data_t *data, memo_data_t *md, void *user_data, Evas_Smart_Cb on_select);
50 gl_data_t *memo_gld_sentinel_create(void *user_data);
51
52 #endif                /* __MEMO_GENLIST_H__ */