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 preloaded
66 inline const char* GetUserPreloadedWidgetPath()
69 // return "/usr/apps";
71 return "/opt/usr/apps";
75 * WRT widgets that are downloaded and installed by user
77 inline const char* GetWidgetUserDataPath()
79 return "/opt/usr/apps";
83 * WRT widgets that are downloaded and installed by user
85 inline const char* GetWidgetSrcPath()
91 * Directory for WebKit local storage files
93 inline const char* GetPublicVirtualRootPath()
95 return "/opt/share/widget/data/Public";
99 * Directory for WebKit local storage files
101 inline const char* GetWidgetLocalStoragePath()
103 return "data/localStorage";
107 * Directory for tests data (such as test widgets wgt)
109 inline const char* GetTestsDataPath()
111 return "/opt/share/widget/tests";
117 inline const char* GetUserWidgetExecPath()
123 * widgets private data path
125 inline const char* GetWidgetPrivateStoragePath()
131 * widgets share directory path
133 inline const char* GetWidgetSharePath()
139 * widgets desktop files path
141 inline const char* GetUserWidgetDesktopPath()
143 return "/opt/share/applications";
147 * wrt-client exec path
149 inline const char* GetWrtClientExec()
151 return "/usr/bin/wrt-client";
155 * widgets desktop icon path
157 inline const char* GetUserWidgetDesktopIconPath()
159 return "/opt/share/icons/default/small";
163 * widgets default icon file
165 inline const char* GetUserWidgetDefaultIconFile()
167 return "/usr/share/wrt-engine/wrt_widget_default_icon.png";
170 inline const char* GetSignatureXmlSchema()
172 //TODO please rename, this filename is not descriptive enough
173 return "/usr/share/wrt-engine/schema.xsd";
176 inline const char* GetWAC20TestRootCAFilePath()
178 return "/usr/share/wrt-engine/WAC2.0TestRootCA.cert";
182 * Name of the w3c geolocation feature
184 inline const char* GetW3CGeolocationFeatureName()
186 return "http://www.w3.org/TR/geolocation-API/";
190 * Prefix of package name for widgets
192 inline const char* GetPkgnamePrefix()
198 * Plugin Configuration Metafile name
200 inline const char* GetPluginMetafileName()
208 inline const char* GetPluginPrefix()
210 return "libwrt-plugins-";
216 inline const char* GetPluginSuffix()
222 * WRT device plugins installation required
223 * File which indicate that new plugins
224 * are available and should be installed
226 inline const char* GetPluginInstallInitializerName()
228 return "/opt/share/widget/plugin-installation-required";
232 * File with certificate fingerprints list.
235 inline const char* GetFingerprintListFile()
237 return "/usr/share/wrt-engine/fingerprint_list.xml";
240 inline const char* GetFingerprintListSchema()
242 return "/usr/share/wrt-engine/fingerprint_list.xsd";
245 inline const char* GetVCoreDatabaseFilePath()
247 return "/opt/dbspace/.cert_svc_vcore.db";
251 * widgets cookie database file name
253 inline const char* GetCookieDatabaseFile()
259 * widget interface database file name
261 inline const char* GetWidgetInterfaceDatabaseFile()
263 return ".widget_interface.db";
266 inline const char* GetTmpDirPath()
271 inline const char* GetWACVersion()
276 inline const char* GetTizenVersion()
281 inline const char* GetShareDirectoryPath()
286 inline const char* GetTempInstallInfoPath()
288 return "/opt/share/widget/temp_info";
291 inline const char* GetVconfKeyPrefixPath()
293 return "file/private";
296 inline const char* GetVconfKeyPopupUsagePath()
298 return "/popup_usage";
301 inline const char* GetVconfKeyGeolocationUsagePath()
303 return "/geolocation_usage";
306 inline const char* GetVconfKeyWebNotificationUsagePath()
308 return "/web_notification_usage";
311 inline const char* GetVconfKeyWebDatabaseUsagePath()
313 return "/web_database_usage";
316 inline const char* GetVconfKeyFilesystemUsagePath()
318 return "/filesystem_usage";
321 inline const char* GetVconfKeyMemorySavingModePath()
323 return "/memory_saving_mode";
325 } // namespace GlobalConfig
328 #endif // GLOBAL_CONFIG_H