po: move translation files
[apps/core/preloaded/indicator-win.git] / inc / box.h
1 /*
2  *  Indicator
3  *
4  * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  */
19
20
21 #ifndef __INDICATOR_BOX_UTIL_H__
22 #define __INDICATOR_BOX_UTIL_H__
23
24 #include <Elementary.h>
25
26 #include "indicator.h"
27
28 typedef enum _Icon_AddType {
29         CANNOT_ADD = -1,
30         CAN_ADD_WITH_DEL_SYSTEM,
31         CAN_ADD_WITH_DEL_MINICTRL,
32         CAN_ADD_WITH_DEL_NOTI,
33         CAN_ADD_WITHOUT_DEL,
34 } Icon_AddType;
35
36 typedef enum _Icon_Display_Count {
37         BATTERY_TEXT_ON_COUNT = 0,
38         BATTERY_TEXT_OFF_COUNT = 0,
39         PORT_NONFIXED_ICON_COUNT = 7,
40         LAND_NONFIXED_ICON_COUNT = 11,
41         PORT_SYSTEM_ICON_COUNT = 5,   // MIN : (1), MAX : (5)
42         LAND_SYSTEM_ICON_COUNT = 6,
43         PORT_MINICTRL_ICON_COUNT = 2, // MIN : (1), MAX : (3)
44         LAND_MINICTRL_ICON_COUNT = 2,
45 } Icon_Display_Count;
46
47 typedef enum Box_List {
48         FIXED_LIST = 0,
49         SYSTEM_LIST,
50         MINICTRL_LIST,
51         NOTI_LIST
52 } Box_List;
53
54 extern int box_pack(icon_s *icon);
55 extern int box_pack_append(icon_s *icon);
56 extern int box_unpack(icon_s *icon);
57 extern void box_init(win_info *win);
58 extern void box_fini(win_info *win);
59 extern unsigned int box_get_count(Box_List list);
60 extern int box_get_max_count_in_non_fixed_list(void);
61 extern Icon_AddType box_is_enable_to_insert_in_non_fixed_list(icon_s *obj);
62 extern int box_get_priority_in_move_area(win_info *win, Evas_Coord, Evas_Coord);
63 extern int box_check_indicator_area(win_info *win,Evas_Coord curr_x, Evas_Coord curr_y);
64 extern int box_check_home_icon_area(win_info *win,Evas_Coord curr_x, Evas_Coord curr_y);
65 extern Eina_Bool box_exist_icon(icon_s *obj);
66 extern int box_handle_animated_gif(icon_s *icon);
67 extern void box_noti_ani_handle(int bStart);
68 extern void box_icon_state_set(int bShow,char* file,int line);
69 extern int box_icon_state_get(void);
70 extern unsigned int box_get_count_in_noti_list_except_minictrl(void);
71 extern int box_get_enabled_noti_count(void);
72 extern int box_check_more_icon_area(win_info *win, Evas_Coord curr_x, Evas_Coord curr_y);
73 extern void box_update_display(win_info *win);
74 extern int box_get_enabled_system_count(void);
75 extern int box_get_minictrl_list(void);
76
77 #endif /*__INDICATOR_BOX_UTIL_H__*/