Merged with latest code
[apps/core/preloaded/email.git] / composer / include / email-composer-predictive-search.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.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
7  *
8  *    http://www.tizenopensource.org/license
9  *
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.
15  */
16
17 #ifndef __email_composer_predictive_search__
18 #define __email_composer_predictive_search__
19
20 #define COMPOSER_TEXT_PREFIX    "<match>"
21 #define COMPOSER_TEXT_POSTFIX   "</match>"
22
23 void composer_ps_request_search(EmailComposerUGD *ugd);
24
25 void _composer_ps_stop(EmailComposerUGD *ugd);
26
27 void _composer_ps_del_timer(EmailComposerUGD *ugd);
28
29 void _composer_ps_add_timer(EmailComposerUGD *ugd);
30
31 Evas_Object *_composer_recipient_create_ps_field(Evas_Object *parent, EmailComposerUGD *ugd);
32
33 Eina_List *composer_ps_search_contact(EmailComposerUGD *ugd, const char *search_word);
34
35 void composer_ps_delete_contacts_list(Eina_List *predict_list);
36
37 char *composer_ps_text_get(void *data, Evas_Object *obj, const char *part);
38
39 Evas_Object *composer_ps_icon_get(void *data, Evas_Object *obj, const char *part);
40
41 void _composer_ps_create_sublist(void *data);
42
43 void _composer_ps_delete_list(void *data);
44
45 void _composer_ps_show_field(void *data);
46
47 void _composer_ps_hide_field(void *data);
48
49 Eina_Bool _composer_ps_scroll_pop(void *data);
50
51 #endif                          /* __email_composer_predictive_search__ */