equal
deleted
inserted
replaced
17 |
17 |
18 #include <QFile> |
18 #include <QFile> |
19 #include <QMap> |
19 #include <QMap> |
20 #include <QLocale> |
20 #include <QLocale> |
21 |
21 |
|
22 #include <hbstringutil.h> |
|
23 |
22 #include "HelpUtils.h" |
24 #include "HelpUtils.h" |
23 |
25 |
24 |
26 |
25 ///////////////////////////////////////////////////////////////////////////////////////////////////////// |
27 ///////////////////////////////////////////////////////////////////////////////////////////////////////// |
26 |
28 |
27 #ifdef Q_OS_SYMBIAN |
29 #ifdef Q_OS_SYMBIAN |
28 |
30 |
29 #include <e32const.h> |
31 #include <e32const.h> |
30 #include <xqappmgr.h> |
32 #include <xqappmgr.h> |
31 #include <EikEnv.h> |
33 #include <eikenv.h> |
32 #include <zipfile.h> |
34 #include <zipfile.h> |
33 |
35 |
34 void LoadFileFromZipL(const TDesC& aZipName, const TDesC& aFileName, QString& desBuffer) |
36 void LoadFileFromZipL(const TDesC& aZipName, const TDesC& aFileName, QString& desBuffer) |
35 { |
37 { |
36 |
38 |
86 |
88 |
87 htmlContent.clear(); // clear all data |
89 htmlContent.clear(); // clear all data |
88 |
90 |
89 QT_TRAP_THROWING(LoadFileFromZipL(zipNameDes, subFileDes, htmlContent)); |
91 QT_TRAP_THROWING(LoadFileFromZipL(zipNameDes, subFileDes, htmlContent)); |
90 } |
92 } |
91 |
93 #else |
|
94 void HelpUtils::loadHtmlFromZipFile(const QString& path, const QString& htmlFile, QString& htmlContent) |
|
95 { |
|
96 Q_UNUSED(path); |
|
97 Q_UNUSED(htmlFile); |
|
98 Q_UNUSED(htmlContent); |
|
99 return; |
|
100 } |
92 #endif |
101 #endif |
93 |
102 |
94 QString HelpUtils::rootPath() |
103 QString HelpUtils::rootPath() |
95 { |
104 { |
96 return QString("z:/"); |
105 return QString("z:/"); |
232 |
241 |
233 if (!req5->send()) |
242 if (!req5->send()) |
234 { |
243 { |
235 return req5->lastError(); |
244 return req5->lastError(); |
236 } |
245 } |
|
246 #else |
|
247 Q_UNUSED(appUid); |
237 #endif |
248 #endif |
238 return 0; |
249 return 0; |
239 } |
250 } |
240 |
251 |
241 Qt::Orientation HelpUtils::defaultOrientation() |
252 Qt::Orientation HelpUtils::defaultOrientation() |
246 Qt::SortOrder HelpUtils::sortOrder() |
257 Qt::SortOrder HelpUtils::sortOrder() |
247 { |
258 { |
248 return Qt::AscendingOrder; |
259 return Qt::AscendingOrder; |
249 } |
260 } |
250 |
261 |
|
262 int HelpUtils::findStr(const QString& strFrom, const QString& strToFind) |
|
263 { |
|
264 return HbStringUtil::findC(strFrom, strToFind); |
|
265 } |
|
266 |
|
267 int HelpUtils::compareStr(const QString& str1, const QString& str2) |
|
268 { |
|
269 return HbStringUtil::compareC(str1, str2); |
|
270 } |
|
271 |
251 // end of file |
272 // end of file |