4 * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved
6 * Contact: Jin Yoon <jinny.yoon@samsung.com>
7 * Junkyu Han <junkyu.han@samsung.com>
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
23 #ifndef __MENU_SCREEN_ITEM_H__
24 #define __MENU_SCREEN_ITEM_H__
31 extern char *item_get_icon(Evas_Object *item);
32 extern void item_set_icon(Evas_Object *item, char *icon, int sync);
34 extern char *item_get_name(Evas_Object *item);
35 extern void item_set_name(Evas_Object *item, char *name, int sync);
37 extern void item_set_pkgid(Evas_Object *edje, char *package, int sync);
38 extern char *item_get_pkgid(Evas_Object *edje);
40 extern char *item_get_package(Evas_Object *item);
41 extern void item_set_package(Evas_Object *item, char *package, int sync);
43 extern int item_get_removable(Evas_Object *item);
44 extern void item_set_removable(Evas_Object *item, int removable, int sync);
46 extern Evas_Object *item_get_page(Evas_Object *edje);
47 extern void item_set_page(Evas_Object *edje, Evas_Object *page, int sync);
49 extern char *item_get_desktop(Evas_Object *item);
50 extern void item_set_desktop(Evas_Object *item, char *name, int sync);
52 extern int item_get_type(Evas_Object *item);
53 extern void item_set_type(Evas_Object *edje, int type, int sync);
55 extern void item_enable_delete(Evas_Object *obj);
56 extern void item_disable_delete(Evas_Object *item);
58 extern void item_show_badge(Evas_Object *obj, int value);
59 extern void item_hide_badge(Evas_Object *obj);
60 extern int item_is_enabled_badge(Evas_Object *obj);
62 extern void item_edit(Evas_Object *item);
63 extern void item_unedit(Evas_Object *item);
65 extern Evas_Object *item_create(Evas_Object *scroller, app_info_t* ai);
66 extern void item_update(Evas_Object *item, app_info_t *ai);
67 extern void item_destroy(Evas_Object *obj);
69 extern void item_launch(Evas_Object *obj);
71 extern void item_enable_progress(Evas_Object *obj);
72 extern int item_is_enabled_progress(Evas_Object *obj);
73 extern void item_update_progress(Evas_Object *obj, int value);
74 extern void item_disable_progress(Evas_Object *obj);
76 extern menu_screen_error_e item_is_edje_icon(const char *icon);
77 extern int item_get_position(Evas_Object *item);
79 extern void item_mark_dirty(Evas_Object *item);
80 extern void item_unmark_dirty(Evas_Object *item);
81 extern int item_is_dirty(Evas_Object *item);
83 #endif //__MENU_SCREEN_ITEM_H__