Crash Fix: Don't call indicator APIs for ARTIC device profile
[apps/native/menu-screen.git] / inc / item.h
1 /*
2  * MENU-SCREEN
3  *
4  * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved
5  *
6  * Contact: Jin Yoon <jinny.yoon@samsung.com>
7  *          Junkyu Han <junkyu.han@samsung.com>
8
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
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
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.
20  *
21  */
22
23 #ifndef __MENU_SCREEN_ITEM_H__
24 #define __MENU_SCREEN_ITEM_H__
25
26 #include <Evas.h>
27
28 #include "list.h"
29 #include "util.h"
30
31 extern char *item_get_icon(Evas_Object *item);
32 extern void item_set_icon(Evas_Object *item, char *icon, int sync);
33
34 extern char *item_get_name(Evas_Object *item);
35 extern void item_set_name(Evas_Object *item, char *name, int sync);
36
37 extern void item_set_pkgid(Evas_Object *edje, char *package, int sync);
38 extern char *item_get_pkgid(Evas_Object *edje);
39
40 extern char *item_get_package(Evas_Object *item);
41 extern void item_set_package(Evas_Object *item, char *package, int sync);
42
43 extern int item_get_removable(Evas_Object *item);
44 extern void item_set_removable(Evas_Object *item, int removable, int sync);
45
46 extern Evas_Object *item_get_page(Evas_Object *edje);
47 extern void item_set_page(Evas_Object *edje, Evas_Object *page, int sync);
48
49 extern char *item_get_desktop(Evas_Object *item);
50 extern void item_set_desktop(Evas_Object *item, char *name, int sync);
51
52 extern int item_get_type(Evas_Object *item);
53 extern void item_set_type(Evas_Object *edje, int type, int sync);
54
55 extern void item_enable_delete(Evas_Object *obj);
56 extern void item_disable_delete(Evas_Object *item);
57
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);
61
62 extern void item_edit(Evas_Object *item);
63 extern void item_unedit(Evas_Object *item);
64
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);
68
69 extern void item_launch(Evas_Object *obj);
70
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);
75
76 extern menu_screen_error_e item_is_edje_icon(const char *icon);
77 extern int item_get_position(Evas_Object *item);
78
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);
82
83 #endif //__MENU_SCREEN_ITEM_H__
84
85 // End of a file