equal
deleted
inserted
replaced
36 |
36 |
37 #include "bedrockprovisioning.h" |
37 #include "bedrockprovisioning.h" |
38 |
38 |
39 #include <QDebug> |
39 #include <QDebug> |
40 |
40 |
|
41 #ifdef QTHIGHWAY |
|
42 #include <xqserviceutil.h> |
|
43 #include "FileService.h" |
|
44 #endif |
|
45 |
41 //#define HARDWARE_DEBUG_TRACE |
46 //#define HARDWARE_DEBUG_TRACE |
42 |
47 |
43 #ifdef ENABLE_PERF_TRACE |
48 #ifdef ENABLE_PERF_TRACE |
44 #include "wrtperftracer.h" |
49 #include "wrtperftracer.h" |
45 #endif |
50 #endif |
234 #else |
239 #else |
235 BrowserApp app(argc, argv); |
240 BrowserApp app(argc, argv); |
236 #endif |
241 #endif |
237 #endif // ORBIT_UI |
242 #endif // ORBIT_UI |
238 |
243 |
|
244 #ifdef QTHIGHWAY |
|
245 //qDebug() << "ServiceInfo:" << (XQServiceUtil::isService() ? "Service" : "Normal") << "launch"; |
|
246 //qDebug() << " Embedded=" << XQServiceUtil::isEmbedded() << "Interface=" << XQServiceUtil::interfaceName() << "Operation=" << XQServiceUtil::operationName(); |
|
247 |
|
248 // provide service for html mime type |
|
249 FileService *fileServiceProvider = new FileService(); |
|
250 #endif |
|
251 |
239 // qDebug() << "main - after app"; |
252 // qDebug() << "main - after app"; |
240 #ifdef Q_OS_SYMBIAN |
253 #ifdef Q_OS_SYMBIAN |
241 //Object cache settings. NB: these need to be tuned per device |
254 //Object cache settings. NB: these need to be tuned per device |
242 QWebSettings::globalSettings()->setObjectCacheCapacities(128*1024, 1024*1024, 1024*1024); |
255 QWebSettings::globalSettings()->setObjectCacheCapacities(128*1024, 1024*1024, 1024*1024); |
243 #endif |
256 #endif |
299 PERF_TRACE_OUT() << "NO_QSTM_GESTURE\n"; |
312 PERF_TRACE_OUT() << "NO_QSTM_GESTURE\n"; |
300 #endif |
313 #endif |
301 #if defined(__gva_no_chrome__) |
314 #if defined(__gva_no_chrome__) |
302 PERF_TRACE_OUT() << "__gva_no_chrome__\n"; |
315 PERF_TRACE_OUT() << "__gva_no_chrome__\n"; |
303 #endif |
316 #endif |
304 #if defined(SET_DEFAULT_IAP) |
|
305 PERF_TRACE_OUT() << "SET_DEFAULT_IAP\n"; |
|
306 #endif |
|
307 #if defined(NO_HISTORY) |
317 #if defined(NO_HISTORY) |
308 PERF_TRACE_OUT() << "NO_HISTORY\n"; |
318 PERF_TRACE_OUT() << "NO_HISTORY\n"; |
309 #endif |
319 #endif |
310 |
320 |
311 #endif //ENABLE_PERF_TRACE |
321 #endif //ENABLE_PERF_TRACE |
312 |
322 |
313 browser->show(); |
323 browser->show(); |
314 res = app.exec(); |
324 res = app.exec(); |
315 delete browser; |
325 delete browser; |
316 |
326 |
|
327 #ifdef QTHIGHWAY |
|
328 delete fileServiceProvider; |
|
329 #endif |
|
330 |
317 #ifdef ENABLE_PERF_TRACE |
331 #ifdef ENABLE_PERF_TRACE |
318 WrtPerfTracer::tracer()->close(); |
332 WrtPerfTracer::tracer()->close(); |
319 #endif //ENABLE_PERF_TRACE |
333 #endif //ENABLE_PERF_TRACE |
320 |
334 |
321 return res; |
335 return res; |