Symbolic link pointed by GetVCoreDatabaseFilePath will be removed.
[framework/web/wrt-commons.git] / modules / widget_dao / include / dpl / wrt-dao-ro / global_config.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  *        http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 /**
17  * @file    global_config.h
18  * @author  Yang Jie (jie2.yang@samsung.com)
19  * @author  Przemyslaw Dobrowolski (p.dobrowolsk@samsung.com)
20  * @version 1.0
21  * @brief   This file contains global WRT config
22  */
23 #ifndef GLOBAL_CONFIG_H
24 #define GLOBAL_CONFIG_H
25
26 #include <string>
27 #include <list>
28
29 namespace WrtDB {
30 namespace GlobalConfig {
31 /**
32  * WRT database path
33  */
34 inline const char* GetWrtDatabaseFilePath()
35 {
36     return "/opt/dbspace/.wrt.db";
37 }
38
39 /**
40  * WRT origin widget interface database path
41  */
42 inline const char* GetWrtWidgetInterfaceDatabaseFilePath()
43 {
44     return "/usr/share/wrt-plugins-common/widget_interface_db.sql";
45 }
46
47 /**
48  * WRT device plugin path
49  */
50 inline const char* GetDevicePluginPath()
51 {
52     return "/usr/lib/wrt-plugins";
53 }
54
55 /**
56  * WRT widgets that are downloaded and installed by user
57  */
58 inline const char* GetUserInstalledWidgetPath()
59 {
60     return "/opt/usr/apps";
61 }
62
63 /**
64  * WRT widgets that are downloaded and installed by user
65  */
66 inline const char* GetWidgetSrcPath()
67 {
68     return "/res/wgt";
69 }
70
71 /**
72  * Directory for WebKit local storage files
73  */
74 inline const char* GetPublicVirtualRootPath()
75 {
76     return "/opt/share/widget/data/Public";
77 }
78
79 /**
80  * Directory for WebKit local storage files
81  */
82 inline const char* GetWidgetLocalStoragePath()
83 {
84     return "data/localStorage";
85 }
86
87 /**
88  * Directory for tests data (such as test widgets wgt)
89  */
90 inline const char* GetTestsDataPath()
91 {
92     return "/opt/share/widget/tests";
93 }
94
95 /**
96  * widgets exec path
97  */
98 inline const char* GetUserWidgetExecPath()
99 {
100     return "/bin";
101 }
102
103 /**
104  * widgets private data path
105  */
106 inline const char* GetWidgetPrivateStoragePath()
107 {
108     return "data";
109 }
110
111
112 /**
113  * widgets desktop files path
114  */
115 inline const char* GetUserWidgetDesktopPath()
116 {
117     return "/opt/share/applications";
118 }
119
120 /**
121  * wrt-client exec path
122  */
123 inline const char* GetWrtClientExec()
124 {
125     return "/usr/bin/wrt-client";
126 }
127
128 /**
129  * widgets desktop icon path
130  */
131 inline const char* GetUserWidgetDesktopIconPath()
132 {
133     return "/opt/share/icons/default/small";
134 }
135
136 /**
137  * widgets default icon file
138  */
139 inline const char* GetUserWidgetDefaultIconFile()
140 {
141     return "/usr/share/wrt-engine/wrt_widget_default_icon.png";
142 }
143
144 inline const char* GetSignatureXmlSchema()
145 {
146     //TODO please rename, this filename is not descriptive enough
147     return "/usr/share/wrt-engine/schema.xsd";
148 }
149
150 inline const char* GetWAC20TestRootCAFilePath()
151 {
152     return "/usr/share/wrt-engine/WAC2.0TestRootCA.cert";
153 }
154
155 /**
156  * Name of the w3c geolocation feature
157  */
158 inline const char* GetW3CGeolocationFeatureName()
159 {
160     return "http://www.w3.org/TR/geolocation-API/";
161 }
162
163 /**
164  * Prefix of package name for widgets
165  */
166 inline const char* GetPkgnamePrefix()
167 {
168     return "org.tizen.";
169 }
170
171 /**
172  * Plugin Configuration Metafile name
173  */
174 inline const char* GetPluginMetafileName()
175 {
176     return "config.xml";
177 }
178
179 /**
180  * Plugin .so prefix
181  */
182 inline const char* GetPluginPrefix()
183 {
184     return "libwrt-plugins-";
185 }
186
187 /**
188  * Plugin .so suffix
189  */
190 inline const char* GetPluginSuffix()
191 {
192     return ".so";
193 }
194
195 /**
196  * WRT device plugins installation required
197  * File which indicate that new plugins
198  * are available and should be installed
199  */
200 inline const char* GetPluginInstallInitializerName()
201 {
202     return "/opt/share/widget/plugin-installation-required";
203 }
204
205 /**
206  * File with certificate fingerprints list.
207  */
208
209 inline const char* GetFingerprintListFile()
210 {
211     return "/usr/share/wrt-engine/fingerprint_list.xml";
212 }
213
214 inline const char* GetFingerprintListSchema()
215 {
216     return "/usr/share/wrt-engine/fingerprint_list.xsd";
217 }
218
219 inline const char* GetVCoreDatabaseFilePath()
220 {
221     return "/opt/dbspace/.cert_svc_vcore.db";
222 }
223
224 /**
225  * widgets cookie database file name
226  */
227 inline const char* GetCookieDatabaseFile()
228 {
229     return ".cookie.db";
230 }
231
232 /**
233  * widget interface database file name
234  */
235 inline const char* GetWidgetInterfaceDatabaseFile()
236 {
237     return ".widget_interface.db";
238 }
239
240 inline const char* GetTmpDirPath()
241 {
242     return "/tmp";
243 }
244
245 inline const char* GetWACVersion()
246 {
247     return "2.0";
248 }
249
250 inline const char* GetTizenVersion()
251 {
252     return "1.0";
253 }
254
255 inline const char* GetShareDirectoryPath()
256 {
257     return "/opt/share";
258 }
259
260 inline const char* GetTempInstallInfoPath()
261 {
262     return "/opt/share/widget/temp_info";
263 }
264 } // namespace GlobalConfig
265 } // namespace WrtDB
266
267 #endif // GLOBAL_CONFIG_H