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 device plugin path
42 inline const char* GetDevicePluginPath()
44 return "/usr/lib/wrt-plugins";
48 * WRT widgets that are downloaded and installed by user
50 inline const char* GetUserInstalledWidgetPath()
52 return "/opt/usr/apps";
56 * WRT widgets that are preloaded
58 inline const char* GetUserPreloadedWidgetPath()
64 * WRT widgets that are downloaded and installed by user
66 inline const char* GetWidgetUserDataPath()
68 return "/opt/usr/apps";
72 * WRT widgets that are downloaded and installed by user
74 inline const char* GetWidgetSrcPath()
80 * Directory for WebKit local storage files
82 inline const char* GetPublicVirtualRootPath()
84 return "/opt/share/widget/data/Public";
88 * Directory for WebKit local storage files
90 inline const char* GetWidgetLocalStoragePath()
92 return "data/localStorage";
96 * Directory for tests data (such as test widgets wgt)
98 inline const char* GetTestsDataPath()
100 return "/opt/share/widget/tests";
106 inline const char* GetUserWidgetExecPath()
112 * widgets private data path
114 inline const char* GetWidgetPrivateStoragePath()
120 * widgets private temp data path
122 inline const char* GetWidgetPrivateTempStoragePath()
128 * widgets desktop files path
130 inline const char* GetUserWidgetDesktopPath()
132 return "/opt/share/applications";
136 * wrt-client exec path
138 inline const char* GetWrtClientExec()
140 return "/usr/bin/wrt-client";
144 * wrt-service exec path
146 inline const char* GetWrtServiceExec()
148 return "/usr/bin/wrt-service";
152 * widgets desktop icon path
154 inline const char* GetUserWidgetDesktopIconPath()
156 return "/opt/share/icons/default/small";
160 * widgets default icon file
162 inline const char* GetUserWidgetDefaultIconFile()
164 return "/usr/share/wrt-engine/wrt_widget_default_icon.png";
167 inline const char* GetSignatureXmlSchema()
169 //TODO please rename, this filename is not descriptive enough
170 return "/usr/share/wrt-engine/schema.xsd";
174 * Name of the w3c geolocation feature
176 inline const char* GetW3CGeolocationFeatureName()
178 return "http://www.w3.org/TR/geolocation-API/";
182 * Prefix of package name for widgets
184 inline const char* GetPkgnamePrefix()
190 * Plugin Configuration Metafile name
192 inline const char* GetPluginMetafileName()
200 inline const char* GetPluginPrefix()
202 return "libwrt-plugins-";
208 inline const char* GetPluginSuffix()
214 * WRT device plugins installation required
215 * File which indicate that new plugins
216 * are available and should be installed
218 inline const char* GetPluginInstallInitializerName()
220 return "/opt/share/widget/plugin-installation-required";
224 * File with certificate fingerprints list.
227 inline const char* GetFingerprintListFile()
229 return "/usr/share/wrt-engine/fingerprint_list.xml";
232 inline const char* GetFingerprintListSchema()
234 return "/usr/share/wrt-engine/fingerprint_list.xsd";
237 inline const char* GetVCoreDatabaseFilePath()
239 return "/opt/dbspace/.cert_svc_vcore.db";
243 * widgets cookie database file name
245 inline const char* GetCookieDatabaseFile()
250 inline const char* GetTmpDirPath()
255 inline const char* GetTizenVersion()
260 inline const char* GetShareDirectoryPath()
265 inline const char* GetTempInstallInfoPath()
267 return "/opt/share/widget/temp_info";
270 inline const char* GetWidgetSharedPath()
275 inline const char* GetWidgetDataPath()
280 inline const char* GetWidgetTrustedPath()
285 inline const char* GetWidgetResPath()
290 inline const char* GetNPRuntimePluginsPath()
293 return "plugins/arm";
295 return "plugins/x86";
299 inline const char* GetBackupDatabaseSuffix()
304 inline const char* GetManifestPath()
306 return "/opt/share/packages";
309 inline const char* GetPreloadManifestPath()
311 return "/usr/share/packages";
314 inline const char* GetRecoveryStatusPath()
316 return "/usr/share/packages/.recovery/wgt";
318 } // namespace GlobalConfig
321 #endif // GLOBAL_CONFIG_H