Tizen 2.1 base
[apps/home/myfiles.git] / src / include / mf-language-mgr.h
1 /*
2  * Copyright 2013         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://floralicense.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 #ifndef __MF_LANGUAGE_CHANGER_H
19 #define __MF_LANGUAGE_CHANGER_H
20
21
22 #include <Elementary.h>
23
24 typedef enum
25 {
26         OBJ_TYPE_ELM_OBJECT,            //elm_object_text_set(obj, text)
27         OBJ_TYPE_EDJE_OBJECT,   //edje_object_part_text_set(obj, part, text)
28         OBJ_TYPE_MAX,
29 }obj_type;
30
31 typedef enum
32 {
33         ITEM_TYPE_NULL = 0,
34         ITEM_TYPE_CTRL = 1,
35         ITEM_TYPE_TAB = 2,
36         ITEM_TYPE_CTXPOP = 3,
37         ITEM_TYPE_MAX = 4,
38 }item_type;
39
40 int mf_language_mgr_create();
41 int mf_language_mgr_destroy();
42
43 /*part and string_id must be static*/
44 void mf_language_mgr_register_object(Evas_Object *obj, obj_type type, const char *part, const char *string_id);
45 void mf_language_mgr_register_object_item(Elm_Object_Item *object_item, const char *text_ID, item_type type);
46 void mf_language_mgr_unregister_object_item(Elm_Object_Item *object_item);
47 void mf_language_mgr_unregister_object_item_by_type(item_type type);
48
49 void mf_language_mgr_object_item_text_ID_set(Elm_Object_Item *object_item, const char *text_ID);
50
51
52 void mf_language_mgr_register_genlist_item(Elm_Object_Item *item);
53 void mf_language_mgr_unregister_genlist_item(Elm_Object_Item *item);
54
55 void mf_language_mgr_register_gengrid_item(Elm_Object_Item *item);
56 void mf_language_mgr_unregister_gengrid_item(Elm_Object_Item *item);
57
58 void mf_language_mgr_update();
59
60 #endif