summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/CHM.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-reader/CHM.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-reader/CHM.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/noncore/apps/opie-reader/CHM.cpp b/noncore/apps/opie-reader/CHM.cpp
index 88d53bf..ace5abc 100644
--- a/noncore/apps/opie-reader/CHM.cpp
+++ b/noncore/apps/opie-reader/CHM.cpp
@@ -7,2 +7,5 @@
#include <qpixmap.h>
+#ifdef USEQPE
+#include <qpe/global.h>
+#endif
@@ -68,5 +71,9 @@ void CHM::unsuspend() {
if (delay < 10)
+ {
+ Global::statusMessage("Stalling");
sleep(10-delay);
+ }
chmFile = chm_open(fname);
for (int i = 0; chmFile == NULL && i < 5; i++) {
+ Global::statusMessage("Stalling");
sleep(5);
@@ -88,2 +95,3 @@ void CHM::addContent(QString content) {
void CHM::FillHomeContent() {
+unsuspend();
if (chmHHCPath != "") {
@@ -164,2 +172,3 @@ bool CHM::FillBuffer()
{
+unsuspend();
bool bRetVal = false;
@@ -198,2 +207,3 @@ bool CHM::FillBuffer()
bool CHM::FillContent() {
+unsuspend();
bool bRetVal = false;
@@ -241,3 +251,4 @@ bool CHM::FillContent() {
-bool CHM::getFile(const QString& href) {
+bool CHM::getFile(const QString& _href, const QString& ) {
+ QString href = "/" + _href;
qDebug("Got:%s", (const char*)href);