Bug fix: TIVI-1996.
[profile/ivi/ico-uxf-homescreen.git] / src / homescreen / CicoHomeScreenResourceConfig.h
1 #ifndef __CICOHOMESCREENRESOURCECONFIG_H__
2 #define __CICOHOMESCREENRESOURCECONFIG_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 /* Environment variable for UI-FW top directory             */
25 #define ICO_HS_CONFIG_TOP_ENV         "UIFW_TOPDIR"
26 /* Default top directory of UI-FW                           */
27 #define ICO_HS_CONFIG_TOP_TOPDIR      "/usr/apps/org.tizen.ico.homescreen"
28 /* Environment variable for top directory of cconfiguration files   */
29 #define ICO_HS_CONFIG_CONFIG_ENV      "UIFW_CONFDIR"
30 /* Default top directory of cconfiguration files            */
31 #define ICO_HS_CONFIG_CONFIG_DIR      "res/config"
32 /* Configuration file names                                 */
33 #define ICO_HS_CONFIG_CONFIG_SYSTEM   "system.conf"
34 #define ICO_HS_CONFIG_CONFIG_APPATTR  "app_attr.conf"
35 /* Directory of application manifest                        */
36 #define ICO_HS_CONFIG_CONFIG_APPSDIR  "apps"
37 /* Maximum length of the configuration directory name       */
38 #define ICO_HS_CONFIG_CONF_DIR_MAX    63
39 /* Maximum length of Wayland connection name                */
40 #define ICO_UXF_CONF_WAYLAND_NAME   39
41
42 /*============================================================================*/
43 /* Class Declaration (CicoHomeScreenResourceConfig)                           */
44 /*============================================================================*/
45 class CicoHomeScreenResourceConfig
46 {
47   public:
48     static void GetImagePath(char *buff, int len);
49     static void GetSoundPath(char *buff, int len);
50     static void GetEdjPath(char *buff, int len);
51     static void GetOnscreenEdjPath(char *buff, int len);
52     static void GetConfPath(char *buff, int len);
53   protected:
54     CicoHomeScreenResourceConfig operator =
55         (const CicoHomeScreenResourceConfig&);
56     CicoHomeScreenResourceConfig(const CicoHomeScreenResourceConfig&);
57 };
58
59 #endif
60