8318275dfd90d9c3d785b053767010a91d3b90c2
[profile/ivi/ico-uxf-homescreen.git] / lib / common / CicoResourceConfig.h
1 #ifndef __CICO_RESOURCECONFIG_H__
2 #define __CICO_RESOURCECONFIG_H__
3 /*
4  * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
5  *
6  * This program is licensed under the terms and conditions of the
7  * Apache License, version 2.0.  The full text of the Apache License is at
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  */
11 /**
12  * @brief   configuration of resource path
13  *
14  * @date    Feb-15-2013
15  */
16
17 //#include <stdio.h>
18 //#include <stdlib.h>
19 //#include <string.h>
20
21 //#include "CicoHomeScreenCommon.h"
22 //#include "home_screen_res.h"
23
24 #define ICO_EDJ_PATH            "/usr/apps/%s/res/edj/"
25 #define ICO_IMAGE_PATH          "/usr/apps/%s/res/images/"
26 #define ICO_SOUND_PATH          "/usr/apps/%s/res/sounds/"
27 #define ICO_MANIFEST_PATH       "/usr/apps/%s/res/config/"
28 #define ICO_LOCAL_TOP_PATH      "/home/tizen/HomeScreen"
29 #define ICO_LOCAL_EDJ_PATH      "%s/src/"
30 #define ICO_LOCAL_IMAGE_PATH    "%s/res/images/"
31 #define ICO_LOCAL_SOUND_PATH    "%s/res/sounds/"
32 #define ICO_LOCAL_MANIFEST_PATH "%s/res/apps/org.tizen.ico.homescreen/"
33
34 /* Environment variable for UI-FW top directory             */
35 #define ICO_HS_CONFIG_TOP_ENV         "UIFW_TOPDIR"
36 #if 0
37 /* Default top directory of UI-FW                           */
38 #define ICO_HS_CONFIG_TOP_TOPDIR      "/usr/apps/org.tizen.ico.homescreen"
39 /* Environment variable for top directory of cconfiguration files   */
40 #define ICO_HS_CONFIG_CONFIG_ENV      "UIFW_CONFDIR"
41 /* Default top directory of cconfiguration files            */
42 #define ICO_HS_CONFIG_CONFIG_DIR      "res/config"
43 /* Configuration file names                                 */
44 #define ICO_HS_CONFIG_CONFIG_SYSTEM   "system.conf"
45 #define ICO_HS_CONFIG_CONFIG_APPATTR  "app_attr.conf"
46 /* Directory of application manifest                        */
47 #define ICO_HS_CONFIG_CONFIG_APPSDIR  "apps"
48 /* Maximum length of the configuration directory name       */
49 #define ICO_HS_CONFIG_CONF_DIR_MAX    63
50 /* Maximum length of Wayland connection name                */
51 #define ICO_UXF_CONF_WAYLAND_NAME   39
52 #endif
53
54 /*============================================================================*/
55 /* Class Declaration (CicoResourceConfig)                           */
56 /*============================================================================*/
57 class CicoResourceConfig
58 {
59   public:
60     static void GetImagePath(char *buff, int len);
61     static void GetSoundPath(char *buff, int len);
62     static void GetEdjPath(char *buff, int len);
63     static void GetConfPath(char *buff, int len);
64   protected:
65     CicoResourceConfig operator =
66         (const CicoResourceConfig&);
67     CicoResourceConfig(const CicoResourceConfig&);
68 };
69 #endif  // __CICO_RESOURCECONFIG_H__
70 // vim: set expandtab ts=4 sw=4: