Updated changelog
[profile/ivi/lemolo.git] / utils / contacts-ofono-efl.h
1 #ifndef _EFL_OFONO_CONTACTS_H__
2 #define _EFL_OFONO_CONTACTS_H__ 1
3
4 typedef struct _Contact_Info Contact_Info;
5
6 Evas_Object *contacts_add(Evas_Object *parent);
7
8 Contact_Info *contact_search(Evas_Object *obj, const char *number, const char **type);
9
10 const char *contact_info_picture_get(const Contact_Info *c);
11
12 const char *contact_info_full_name_get(const Contact_Info *c);
13 const char *contact_info_first_name_get(const Contact_Info *c);
14 const char *contact_info_last_name_get(const Contact_Info *c);
15
16 Eina_List *contact_info_all_numbers_get(const Contact_Info *c);
17
18 const char *contact_info_detail_get(const Contact_Info *c, const char *type);
19
20 const char *contact_info_number_check(const Contact_Info *c, const char *number);
21
22 Eina_Bool contact_info_picture_set(Contact_Info *c, const char *filename);
23
24 Eina_Bool contact_info_first_name_set(Contact_Info *c, const char *name);
25
26 Eina_Bool contact_info_last_name_set(Contact_Info *c, const char *name);
27
28 Eina_Bool contact_info_detail_set(Contact_Info *c, const char *type, const char *number);
29
30 void contact_info_on_changed_callback_add(Contact_Info *c, void (*cb)(void *data, Contact_Info *c), const void *data);
31 void contact_info_on_changed_callback_del(Contact_Info *c, void (*cb)(void *data, Contact_Info *c), const void *data);
32
33 void contact_info_on_del_callback_add(Contact_Info *c, void (*cb)(void *data, const Contact_Info *c), const void *data);
34 void contact_info_on_del_callback_del(Contact_Info *c, void (*cb)(void *data, const Contact_Info *c), const void *data);
35 void contact_info_del(Contact_Info *c);
36
37 typedef struct _Contact_Partial_Match Contact_Partial_Match;
38 Eina_List *contact_partial_match_search(Evas_Object *obj, const char *query);
39 void contact_partial_match_search_free(Eina_List *results);
40 const char *contact_partial_match_type_get(const Contact_Partial_Match *pm);
41 const Contact_Info *contact_partial_match_info_get(const Contact_Partial_Match *pm);
42 Eina_Bool contact_partial_match_name_match_get(const Contact_Partial_Match *pm);
43
44 #endif