APPLY_RSA
[apps/home/ug-memo-efl.git] / include / memo-genlist.h
1 /*
2 *
3 * Copyright 2012  Samsung Electronics Co., Ltd
4 *
5 * Licensed under the Flora License, Version 1.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *    http://www.tizenopensource.org/license
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 */
18
19 #ifndef __MEMO_GENLIST_H__
20 #define __MEMO_GENLIST_H__
21
22 typedef struct __gl_data_t {
23     /* common */
24     int index;
25     int has_doodle;
26     time_t mod_time;
27     Evas_Smart_Cb on_select;
28     /* checkbox */
29     Eina_Bool check;
30     Evas_Smart_Cb on_change;
31     /* sweep */
32     Evas_Smart_Cb on_delete;
33     Evas_Smart_Cb on_send;
34     /* search */
35     const char *search;
36     /* user data */
37     void *user_data;
38 } gl_data_t;
39
40 char *memo_gl_label_get(void *data, Evas_Object *obj, const char *part);
41 Evas_Object *memo_gl_icon_get(void *data, Evas_Object *obj, const char *part);
42 Eina_Bool memo_gl_state_get(void *data, Evas_Object *obj, const char *part);
43 void memo_gl_del(void *data, Evas_Object *obj);
44 void memo_gl_itc_init(Elm_Genlist_Item_Class *itc, const char *style);
45 void memo_gld_init(gl_data_t *data, memo_data_t *md, void *user_data, Evas_Smart_Cb on_select);
46 gl_data_t *memo_gld_sentinel_create(void *user_data);
47
48 #endif                /* __MEMO_GENLIST_H__ */