2 * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
4 * This program is licensed under the terms and conditions of the
5 * Apache License, version 2.0. The full text of the Apache License is at
6 * http://www.apache.org/licenses/LICENSE-2.0
10 * @brief common value define
14 #ifndef __CICO_HOMESCREEN_COMMON_H__
15 #define __CICO_HOMESCREEN_COMMON_H__
18 #include <ico_window_mgr-client-protocol.h>
19 #include "ico_syc_sysdef.h"
25 #define ICO_HS_ERR (-1)
27 #define ICO_HS_TEMP_BUF_SIZE (256)
30 #define ICO_HS_APP_MAX_WINDOW_NUM 32
32 /* max application num*/
33 #define ICO_HS_MAX_APP_NUM 512
35 /* Maximum length of application name */
36 #define ICO_HS_MAX_PROCESS_NAME 64
38 /* HomeScreen default process name */
39 #define ICO_HS_PROC_DEFAULT_HOMESCREEN "org.tizen.ico.homescreen"
42 #define ICO_HS_APPID_DEFAULT_SB "org.tizen.ico.statusbar"
43 #define ICO_HS_APPID_DEFAULT_ONS "org.tizen.ico.onscreen"
45 /* path name max length */
46 #define ICO_HS_MAX_PATH_BUFF_LEN 256
48 /* max number of page in menu*/
49 #define ICO_HS_MENU_MAX_MENU_PAGE_NUM 40
51 /* max number of tile */
52 #define ICO_HS_MENU_MAX_TILE_NUM 512
55 #define ICO_HS_MENU_WINDOW_TITLE "ico_hs_menuwindow"
56 #define ICO_HS_BACK_WINDOW_TITLE "ico_hs_backwindow"
57 #define ICO_HS_CONTROL_BAR_WINDOW_TITLE "ico_hs_controlbarwindow"
58 #define ICO_HS_SWIPE_INPUT_WINDOW_TITLE "ico_hs_swipeinputwindow"
60 /*path of layaout file*/
61 #define ICO_HS_MENU_LAYOUT_FILE_PATH "/home/app/layout.txt"
63 /* max number of category in menu*/
64 #define ICO_HS_MENU_MAX_MENU_CATEGORY_NUM 64
66 /*path of category file*/
67 #define ICO_HS_MENU_CATEGORY_FILE_PATH "/usr/apps/org.tizen.ico.homescreen/res/config/menu_categoryid.conf"
69 /*path of back window*/
70 #define ICO_HS_BACK_WINDOW_IMAGE_FILE_PATH "/opt/usr/media/Images/Home_default.jpg"
72 /*name of image file (in config image directry)*/
73 #define ICO_HS_IMAGE_FILE_MENU_BACK_GROUND "bg.png"
74 #define ICO_HS_IMAGE_FILE_MENU_PAGEPOINTER_P "pagePointer_p.png"
75 #define ICO_HS_IMAGE_FILE_MENU_PAGEPOINTER_N "pagePointer_n.png"
77 #define ICO_HS_IMAGE_FILE_MENU_PAGE_UP_CURSOR "pageUpCursor.png"
78 #define ICO_HS_IMAGE_FILE_MENU_PAGE_DOWN_CURSOR "pageDownCursor.png"
80 #define ICO_HS_IMAGE_FILE_MENU_TERMINATE_REALLY "button_really.png"
81 #define ICO_HS_IMAGE_FILE_MENU_TERMINATE_YES "button_yes.png"
82 #define ICO_HS_IMAGE_FILE_MENU_TERMINATE_NO "button_no.png"
84 #define ICO_HS_IMAGE_FILE_CONTROL_BAR_BASE "ctrl.png"
85 #define ICO_HS_IMAGE_FILE_CONTROL_BAR_BUTTON_DAY "applist_off.png"
86 #define ICO_HS_IMAGE_FILE_CONTROL_BAR_BUTTON_DAY2 "applist_off_2.png"
87 #define ICO_HS_IMAGE_FILE_CONTROL_BAR_BUTTON_NIHGT "applist_on.png"
88 #define ICO_HS_IMAGE_FILE_CONTROL_BAR_BUTTON_NIHGT2 "applist_on_2.png"
90 #define ICO_HS_LIFECYCLE_CONTROLLER_SETTING_PATH "/usr/apps/org.tizen.ico.system-controller/res/config/system.xml"
93 #define ICO_HS_CONFIG_HOMESCREEN "homescreen"
94 #define ICO_HS_CONFIG_ONSCREEN "onscreen"
95 #define ICO_HS_CONFIG_STATUBAR "statusbar"
96 #define ICO_HS_CONFIG_SOUND "sound"
97 #define ICO_HS_CONFIG_HISTORY "app_history"
100 #define HS_DISPLAY_HOMESCREEN ICO_SYC_DISPLAY_CENTER /* HomeScreen target display Id */
102 /*Layer dicralation*/
103 #define HS_LAYER_BACKGROUND ICO_SYC_LAYER_BACKGROUND /* layer of BackGround */
104 #define HS_LAYER_APPLICATION ICO_SYC_LAYER_APPLICATION /* layer of Application */
105 #define HS_LAYER_HOMESCREEN ICO_SYC_LAYER_HOMESCREEN /* layer of HomeScreen menu */
106 #define HS_LAYER_CONTROLBAR ICO_SYC_LAYER_CONTROLBAR /* layer of Control/Status bar */
107 #define HS_LAYER_FULLSCREEN ICO_SYC_LAYER_FULLSCREEN /* layer of FullScreen Application */
108 #define HS_LAYER_ONSCREEN ICO_SYC_LAYER_ONSCREEN /* layer of OnScreen */
109 #define HS_LAYER_TOUCHPANEL ICO_SYC_LAYER_TOUCHPANEL /* layer of TouchPanel input */
110 #define HS_LAYER_CURSOR ICO_SYC_LAYER_CURSOR /* layer of Cursor */
112 #define HS_LAYER_2NDDISP_APP ICO_SYC_LAYER_MATERAPP /* second display application layer */
114 /* config history name */
115 #define ICO_HS_CONFIG_HSTRY_KEY1 "timer"
116 #define ICO_HS_CONFIG_HSTRY_DEF1 "1"
117 #define ICO_HS_CONFIG_HSTRY_KEY2 "manage_off_app"
118 #define ICO_HS_CONFIG_HSTRY_DEF2 "org.tizen.ico.homescreen;org.tizen.ico.statusbar"
119 #define ICO_HS_CONFIG_HSTRY_KEY3 "write_off_app"
120 #define ICO_HS_CONFIG_HSTRY_DEF3 "org.tizen.ico.login"
121 #define ICO_HS_CONFIG_HSTRY_SPL ';'
123 #define ICO_HS_ANIMATION_SLIDE "Slide"
124 #define ICO_HS_ANIMATION_SLIDE "Slide"
125 #define ICO_HS_ANIMATION_FADE "Fade"
126 #define ICO_HS_ANIMATION_FADE "Fade"
127 #define ICO_HS_ANIMATION_DURATION (400)
130 // vim:set expandtab ts=4 sw=4: