[Title] Set separator between list items.
[profile/ivi/org.tizen.browser.git] / src / browser-utility.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
18
19 #ifndef BROWSER_UTILITY_H
20 #define BROWSER_UTILITY_H
21
22 #include "browser-config.h"
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 typedef void(*br_preference_changed_cb )(const char *key, void *user_data);
28
29 Evas_Object *br_elm_url_editfield_add(Evas_Object *parent);
30 Evas_Object *br_elm_editfield_add(Evas_Object *parent, Eina_Bool title = EINA_FALSE);
31 void br_elm_editfield_label_set(Evas_Object *obj, const char *label);
32 Evas_Object *br_elm_editfield_entry_get(Evas_Object *obj);
33 void br_elm_editfield_guide_text_set(Evas_Object *obj, const char *text);
34 void br_elm_editfield_entry_single_line_set(Evas_Object *obj, Eina_Bool single_line);
35 void br_elm_editfield_eraser_set(Evas_Object *obj, Eina_Bool visible);
36 Evas_Object *br_elm_searchbar_add(Evas_Object *parent);
37 void br_elm_searchbar_text_set(Evas_Object *obj, const char *text);
38 char *br_elm_searchbar_text_get(Evas_Object *obj);
39 Evas_Object *br_elm_searchbar_entry_get(Evas_Object *obj);
40 Evas_Object *br_elm_find_word_editfield_add(Evas_Object *parent);
41
42 /* preference APIs */
43 bool br_preference_set_bool(const char *key, bool value);
44 bool br_preference_get_bool(const char *key, bool *value);
45 bool br_preference_create_bool(const char *key, bool value);
46 bool br_preference_set_int(const char *key, int value);
47 bool br_preference_get_int(const char *key, int *value);
48 bool br_preference_create_int(const char *key, int value);
49 bool br_preference_set_str(const char *key, const char *value);
50 bool br_preference_get_str(const char *key, char **value);
51 bool br_preference_create_str(const char *key, const char *value);
52 bool br_preference_set_changed_cb(const char *key, br_preference_changed_cb callback, void *user_data);
53 bool br_preference_unset_changed_cb(const char *key);
54
55 #ifdef __cplusplus
56 }
57 #endif
58
59 #endif /* BROWSER_UTILITY_H */
60