1 #ifndef _EFL_OFONO_CONTACTS_H__
2 #define _EFL_OFONO_CONTACTS_H__ 1
4 typedef struct _Contact_Info Contact_Info;
6 Evas_Object *contacts_add(Evas_Object *parent);
8 Contact_Info *contact_search(Evas_Object *obj, const char *number, const char **type);
10 const char *contact_info_picture_get(const Contact_Info *c);
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);
16 Eina_List *contact_info_all_numbers_get(const Contact_Info *c);
18 const char *contact_info_detail_get(const Contact_Info *c, const char *type);
20 const char *contact_info_number_check(const Contact_Info *c, const char *number);
22 Eina_Bool contact_info_picture_set(Contact_Info *c, const char *filename);
24 Eina_Bool contact_info_first_name_set(Contact_Info *c, const char *name);
26 Eina_Bool contact_info_last_name_set(Contact_Info *c, const char *name);
28 Eina_Bool contact_info_detail_set(Contact_Info *c, const char *type, const char *number);
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);
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);
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);