2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 * @file global_config.h
18 * @author Yang Jie (jie2.yang@samsung.com)
19 * @author Przemyslaw Dobrowolski (p.dobrowolsk@samsung.com)
21 * @brief This file contains global WRT config
23 #ifndef GLOBAL_CONFIG_H
24 #define GLOBAL_CONFIG_H
30 namespace GlobalConfig {
34 inline const char* GetWrtDatabaseFilePath()
36 return "/opt/dbspace/.wrt.db";
40 * WRT origin widget interface database path
42 inline const char* GetWrtWidgetInterfaceDatabaseFilePath()
44 return "/usr/share/wrt-plugins-common/widget_interface_db.sql";
48 * WRT device plugin path
50 inline const char* GetDevicePluginPath()
52 return "/usr/lib/wrt-plugins";
56 * WRT widgets that are downloaded and installed by user
58 inline const char* GetUserInstalledWidgetPath()
60 return "/opt/usr/apps";
64 * WRT widgets that are downloaded and installed by user
66 inline const char* GetWidgetSrcPath()
72 * Directory for WebKit local storage files
74 inline const char* GetPublicVirtualRootPath()
76 return "/opt/share/widget/data/Public";
80 * Directory for WebKit local storage files
82 inline const char* GetWidgetLocalStoragePath()
84 return "data/localStorage";
88 * Directory for tests data (such as test widgets wgt)
90 inline const char* GetTestsDataPath()
92 return "/opt/share/widget/tests";
98 inline const char* GetUserWidgetExecPath()
104 * widgets private data path
106 inline const char* GetWidgetPrivateStoragePath()
113 * widgets desktop files path
115 inline const char* GetUserWidgetDesktopPath()
117 return "/opt/share/applications";
121 * wrt-client exec path
123 inline const char* GetWrtClientExec()
125 return "/usr/bin/wrt-client";
129 * widgets desktop icon path
131 inline const char* GetUserWidgetDesktopIconPath()
133 return "/opt/share/icons/default/small";
137 * widgets default icon file
139 inline const char* GetUserWidgetDefaultIconFile()
141 return "/usr/share/wrt-engine/wrt_widget_default_icon.png";
144 inline const char* GetSignatureXmlSchema()
146 //TODO please rename, this filename is not descriptive enough
147 return "/usr/share/wrt-engine/schema.xsd";
150 inline const char* GetWAC20TestRootCAFilePath()
152 return "/usr/share/wrt-engine/WAC2.0TestRootCA.cert";
156 * Name of the w3c geolocation feature
158 inline const char* GetW3CGeolocationFeatureName()
160 return "http://www.w3.org/TR/geolocation-API/";
164 * Prefix of package name for widgets
166 inline const char* GetPkgnamePrefix()
172 * Plugin Configuration Metafile name
174 inline const char* GetPluginMetafileName()
182 inline const char* GetPluginPrefix()
184 return "libwrt-plugins-";
190 inline const char* GetPluginSuffix()
196 * WRT device plugins installation required
197 * File which indicate that new plugins
198 * are available and should be installed
200 inline const char* GetPluginInstallInitializerName()
202 return "/opt/share/widget/plugin-installation-required";
206 * File with certificate fingerprints list.
209 inline const char* GetFingerprintListFile()
211 return "/usr/share/wrt-engine/fingerprint_list.xml";
214 inline const char* GetFingerprintListSchema()
216 return "/usr/share/wrt-engine/fingerprint_list.xsd";
219 inline const char* GetVCoreDatabaseFilePath()
221 return "/opt/dbspace/.vcore.db";
225 * widgets cookie database file name
227 inline const char* GetCookieDatabaseFile()
233 * widget interface database file name
235 inline const char* GetWidgetInterfaceDatabaseFile()
237 return ".widget_interface.db";
240 inline const char* GetTmpDirPath()
245 inline const char* GetWACVersion()
250 inline const char* GetTizenVersion()
255 inline const char* GetShareDirectoryPath()
260 inline const char* GetTempInstallInfoPath()
262 return "/opt/share/widget/temp_info";
264 } // namespace GlobalConfig
267 #endif // GLOBAL_CONFIG_H