53f2bf1170adf5d16e84734b1f28f0ea7a7e8bab
[profile/ivi/ico-uxf-homescreen.git] / src / homescreen / CicoHomeScreenCommon.h
1 /*
2  * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
3  *
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
7  *
8  */
9 /**
10  * @brief   common value define
11  *
12  * @date    Aug-08-2013
13  */
14 #ifndef __CICO_HOMESCREEN_COMMON_H__
15 #define __CICO_HOMESCREEN_COMMON_H__
16
17 #include <ico_log.h>
18 #include <ico-uxf-weston-plugin/ico_window_mgr-client-protocol.h>
19 #include "ico_syc_sysdef.h"
20
21 #define ICO_OK 0
22 #define ICO_ERROR -1
23
24 #define ICO_HS_OK               (0)
25 #define ICO_HS_ERR              (-1)
26
27 #define ICO_HS_TEMP_BUF_SIZE        (256)
28
29 /* max window num*/
30 #define ICO_HS_APP_MAX_WINDOW_NUM 32
31
32 /* max application num*/
33 #define ICO_HS_MAX_APP_NUM 512
34
35 /* Maximum length of application name   */
36 #define ICO_HS_MAX_PROCESS_NAME 64
37
38 /* HomeScreen default process name   */
39 #define ICO_HS_PROC_DEFAULT_HOMESCREEN "org.tizen.ico.homescreen"
40
41 /*app name*/
42 #define ICO_HS_APPID_DEFAULT_SB     "org.tizen.ico.statusbar"
43 #define ICO_HS_APPID_DEFAULT_ONS    "org.tizen.ico.onscreen"
44
45 /* path name max length */
46 #define ICO_HS_MAX_PATH_BUFF_LEN 256
47
48 /* max number of page in menu*/
49 #define ICO_HS_MENU_MAX_MENU_PAGE_NUM 40
50
51 /* max number of tile */
52 #define ICO_HS_MENU_MAX_TILE_NUM 512
53
54 /*window title*/
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"
59
60 /*path of layaout file*/
61 #define ICO_HS_MENU_LAYOUT_FILE_PATH "/home/app/layout.txt"
62
63 /* max number of category in menu*/
64 #define ICO_HS_MENU_MAX_MENU_CATEGORY_NUM 64
65
66 /*path of category file*/
67 #define ICO_HS_MENU_CATEGORY_FILE_PATH "/usr/apps/org.tizen.ico.homescreen/res/config/menu_categoryid.conf"
68
69 /*path of back window*/
70 #define ICO_HS_BACK_WINDOW_IMAGE_FILE_PATH "/opt/usr/media/Images/Home_default.jpg"
71
72 /*name of image file (in config image directry)*/
73 #define ICO_HS_IMAGE_FILE_MENU_BACK_GROUND_BLANK "bg.png"
74 #define ICO_HS_IMAGE_FILE_MENU_BACK_GROUND_PICTURE "bg_bk.png"
75 #define ICO_HS_IMAGE_FILE_MENU_PAGEPOINTER_P "pagePointer_p.png"
76 #define ICO_HS_IMAGE_FILE_MENU_PAGEPOINTER_N "pagePointer_n.png"
77
78 #define ICO_HS_IMAGE_FILE_MENU_PAGE_UP_CURSOR "pageUpCursor.png"
79 #define ICO_HS_IMAGE_FILE_MENU_PAGE_DOWN_CURSOR "pageDownCursor.png"
80
81 #define ICO_HS_IMAGE_FILE_MENU_TERMINATE_REALLY "button_really.png"
82 #define ICO_HS_IMAGE_FILE_MENU_TERMINATE_YES "button_yes.png"
83 #define ICO_HS_IMAGE_FILE_MENU_TERMINATE_NO "button_no.png"
84
85 #define ICO_HS_IMAGE_FILE_CONTROL_BAR_BASE "ctrl.png"
86 #define ICO_HS_IMAGE_FILE_CONTROL_BAR_BUTTON_DAY    "applist_off.png"
87 #define ICO_HS_IMAGE_FILE_CONTROL_BAR_BUTTON_DAY2   "applist_off_2.png"
88 #define ICO_HS_IMAGE_FILE_CONTROL_BAR_BUTTON_NIHGT  "applist_on.png"
89 #define ICO_HS_IMAGE_FILE_CONTROL_BAR_BUTTON_NIHGT2 "applist_on_2.png"
90
91 #define ICO_HS_LIFECYCLE_CONTROLLER_SETTING_PATH  "/usr/apps/org.tizen.ico.system-controller/res/config/system.xml"
92
93 /*config name*/
94 #define ICO_HS_CONFIG_HOMESCREEN    "homescreen"
95 #define ICO_HS_CONFIG_ONSCREEN      "onscreen"
96 #define ICO_HS_CONFIG_STATUBAR      "statusbar"
97 #define ICO_HS_CONFIG_SOUND         "sound"
98 #define ICO_HS_CONFIG_HISTORY       "app_history"
99
100 /*misc*/
101 #define HS_DISPLAY_HOMESCREEN   ICO_SYC_DISPLAY_CENTER  /* HomeScreen target display Id */
102
103 /*Layer dicralation*/
104 #define HS_LAYER_BACKGROUND     ICO_SYC_LAYER_BACKGROUND    /* layer of BackGround */
105 #define HS_LAYER_APPLICATION    ICO_SYC_LAYER_APPLICATION   /* layer of Application */
106 #define HS_LAYER_HOMESCREEN     ICO_SYC_LAYER_HOMESCREEN    /* layer of HomeScreen menu */
107 #define HS_LAYER_CONTROLBAR     ICO_SYC_LAYER_CONTROLBAR    /* layer of Control/Status bar */
108 #define HS_LAYER_INTERRUPTAPP   ICO_SYC_LAYER_INTERRUPTAPP  /* layer of Interrupt Application */
109 #define HS_LAYER_ONSCREEN       ICO_SYC_LAYER_ONSCREEN      /* layer of OnScreen   */
110 #define HS_LAYER_TOUCHPANEL     ICO_SYC_LAYER_TOUCHPANEL    /* layer of TouchPanel input */
111 #define HS_LAYER_CURSOR         ICO_SYC_LAYER_CURSOR        /* layer of Cursor   */
112
113 #define HS_LAYER_2NDDISP_APP    ICO_SYC_LAYER_MATERMAIN     /* second display application layer */
114
115 /* config history name */
116 #define ICO_HS_CONFIG_HSTRY_KEY1      "timer"
117 #define ICO_HS_CONFIG_HSTRY_DEF1      "1"
118 #define ICO_HS_CONFIG_HSTRY_KEY2      "manage_off_app"
119 #define ICO_HS_CONFIG_HSTRY_DEF2      "org.tizen.ico.homescreen;org.tizen.ico.statusbar"
120 #define ICO_HS_CONFIG_HSTRY_KEY3      "write_off_app"
121 #define ICO_HS_CONFIG_HSTRY_DEF3      "org.tizen.ico.login"
122 #define ICO_HS_CONFIG_HSTRY_SPL       ';'
123
124 #define ICO_HS_ANIMATION_SLIDE      "Slide"
125 #define ICO_HS_ANIMATION_SLIDE      "Slide"
126 #define ICO_HS_ANIMATION_FADE       "Fade"
127 #define ICO_HS_ANIMATION_FADE       "Fade"
128 #define ICO_HS_ANIMATION_DURATION   (400)
129
130 #endif
131 // vim:set expandtab ts=4 sw=4: