author | groucho <groucho> | 2003-05-07 09:01:39 (UTC) |
---|---|---|
committer | groucho <groucho> | 2003-05-07 09:01:39 (UTC) |
commit | 118d03d815a7615b9c53363218a7ac45b3f4c514 (patch) (side-by-side diff) | |
tree | 356953e2413cddcec0f35bd47bb6439767da7051 /noncore/apps/opie-reader/ztxt.h | |
parent | 00894537decf01c5a5cdc565b2740b5e67a2e90f (diff) | |
download | opie-118d03d815a7615b9c53363218a7ac45b3f4c514.zip opie-118d03d815a7615b9c53363218a7ac45b3f4c514.tar.gz opie-118d03d815a7615b9c53363218a7ac45b3f4c514.tar.bz2 |
Incorporated TimWs current source tree and make it compile
Diffstat (limited to 'noncore/apps/opie-reader/ztxt.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/ztxt.h | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/noncore/apps/opie-reader/ztxt.h b/noncore/apps/opie-reader/ztxt.h index d7cb96a..709a055 100644 --- a/noncore/apps/opie-reader/ztxt.h +++ b/noncore/apps/opie-reader/ztxt.h @@ -1,10 +1,15 @@ #ifndef __ztxt_h #define __ztxt_h +#include "useqpe.h"
#include "CExpander.h" -#include "zlib/zlib.h" +#include <zlib.h> #include "pdb.h" +#ifdef _WINDOWS
+#include <winsock.h>
+#endif
+
/* * Stuff common to both Weasel Reader and makeztxt * * $Id$ @@ -74,22 +79,24 @@ class ztxt : public CExpander, Cpdb zTXT_record0 hdr0; size_t currentpos; void home(); public: - virtual void suspend() +#ifdef USEQPE
+ void suspend() { CExpander::suspend(fin); } - virtual void unsuspend() + void unsuspend() { CExpander::unsuspend(fin); - } - virtual void sizes(unsigned long& _file, unsigned long& _text) + }
+#endif + void sizes(unsigned long& _file, unsigned long& _text) { _file = file_length; _text = ntohl(hdr0.size); } - virtual bool hasrandomaccess() { return (hdr0.randomAccess != 0); } + bool hasrandomaccess() { return (hdr0.randomAccess != 0); } virtual ~ztxt() { if (expandedtextbuffer != NULL) delete [] expandedtextbuffer; if (compressedtextbuffer != NULL) delete [] compressedtextbuffer; @@ -98,14 +105,14 @@ public: inflateEnd(&zstream); } } ztxt(); - virtual int OpenFile(const char *src); - virtual int getch(); - virtual unsigned int locate(); - virtual void locate(unsigned int n); - virtual CList<Bkmk>* getbkmklist(); - virtual MarkupType PreferredMarkup() + int OpenFile(const char *src); + int getch(); + unsigned int locate(); + void locate(unsigned int n); + CList<Bkmk>* getbkmklist(); + MarkupType PreferredMarkup() { return cTEXT; } }; |