summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/ZText.h
authorpohly <pohly>2005-05-05 14:39:33 (UTC)
committer pohly <pohly>2005-05-05 14:39:33 (UTC)
commit39fbfd5eb7e45d73d38e8a2ce9437a3d7e1b8e91 (patch) (side-by-side diff)
tree96e66fdc18dca4d4ab8611133e072f57dea224b9 /noncore/apps/opie-reader/ZText.h
parent279fc4fd1986074acbadd3a8e86fcf3968a8dd5c (diff)
downloadopie-39fbfd5eb7e45d73d38e8a2ce9437a3d7e1b8e91.zip
opie-39fbfd5eb7e45d73d38e8a2ce9437a3d7e1b8e91.tar.gz
opie-39fbfd5eb7e45d73d38e8a2ce9437a3d7e1b8e91.tar.bz2
new opie-reader sources with support for ArriereGo, Reb input and flite output plugins
Diffstat (limited to 'noncore/apps/opie-reader/ZText.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/ZText.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/noncore/apps/opie-reader/ZText.h b/noncore/apps/opie-reader/ZText.h
index 199c7da..40b0f0a 100644
--- a/noncore/apps/opie-reader/ZText.h
+++ b/noncore/apps/opie-reader/ZText.h
@@ -3,6 +3,10 @@
#include <stdio.h>
#include <zlib.h>
#include <sys/stat.h>
+#ifdef USEQPE
+#include <qpe/global.h>
+#endif
+
#include "CExpander.h"
class Text: public CExpander {
@@ -31,14 +35,19 @@ public:
if (sustime != ((time_t)-1))
{
int delay = time(NULL) - sustime;
- if (delay < 10) sleep(10-delay);
+ if (delay < 10)
+ {
+ Global::statusMessage("Stalling");
+ sleep(10-delay);
+ }
}
file = gzopen(fname, "rb");
for (int i = 0; file == NULL && i < 5; i++)
- {
+ {
+ Global::statusMessage("Stalling");
sleep(5);
file = gzopen(fname, "rb");
- }
+ }
if (file == NULL)
{
QMessageBox::warning(NULL, PROGNAME, "Couldn't reopen file");