userguide/src/HelpUtils.cpp
changeset 15 c0dfc135a46c
parent 13 1eb8015a8491
child 26 97d7f0705d0a
--- a/userguide/src/HelpUtils.cpp	Fri Apr 16 14:53:45 2010 +0300
+++ b/userguide/src/HelpUtils.cpp	Mon May 03 12:24:47 2010 +0300
@@ -19,6 +19,8 @@
 #include <QMap>
 #include <QLocale>
 
+#include <hbstringutil.h>
+
 #include "HelpUtils.h"
 
 
@@ -28,7 +30,7 @@
 
 #include <e32const.h>
 #include <xqappmgr.h>
-#include <EikEnv.h>
+#include <eikenv.h>
 #include <zipfile.h>
 
 void LoadFileFromZipL(const TDesC& aZipName, const TDesC& aFileName, QString& desBuffer)
@@ -88,7 +90,14 @@
 
     QT_TRAP_THROWING(LoadFileFromZipL(zipNameDes, subFileDes, htmlContent));
     }
-
+#else
+void HelpUtils::loadHtmlFromZipFile(const QString& path, const QString& htmlFile, QString& htmlContent)
+{
+	Q_UNUSED(path);
+	Q_UNUSED(htmlFile);
+	Q_UNUSED(htmlContent);
+	return;
+}
 #endif
 
 QString HelpUtils::rootPath()
@@ -234,6 +243,8 @@
     {
         return req5->lastError();
     }
+#else
+	Q_UNUSED(appUid);
 #endif
     return 0;
 }
@@ -248,4 +259,14 @@
 	return Qt::AscendingOrder;
 }
 
+int HelpUtils::findStr(const QString& strFrom, const QString& strToFind)
+{
+	return HbStringUtil::findC(strFrom, strToFind);
+}
+
+int HelpUtils::compareStr(const QString& str1, const QString& str2)
+{
+	return HbStringUtil::compareC(str1, str2);
+}
+
 // end of file