author | groucho <groucho> | 2003-05-07 09:01:39 (UTC) |
---|---|---|
committer | groucho <groucho> | 2003-05-07 09:01:39 (UTC) |
commit | 118d03d815a7615b9c53363218a7ac45b3f4c514 (patch) (unidiff) | |
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 | |||
@@ -2,7 +2,12 @@ | |||
2 | #define __ztxt_h | 2 | #define __ztxt_h |
3 | 3 | ||
4 | #include "useqpe.h" | ||
4 | #include "CExpander.h" | 5 | #include "CExpander.h" |
5 | #include "zlib/zlib.h" | 6 | #include <zlib.h> |
6 | #include "pdb.h" | 7 | #include "pdb.h" |
8 | #ifdef _WINDOWS | ||
9 | #include <winsock.h> | ||
10 | #endif | ||
11 | |||
7 | /* | 12 | /* |
8 | * Stuff common to both Weasel Reader and makeztxt | 13 | * Stuff common to both Weasel Reader and makeztxt |
@@ -76,18 +81,20 @@ class ztxt : public CExpander, Cpdb | |||
76 | void home(); | 81 | void home(); |
77 | public: | 82 | public: |
78 | virtual void suspend() | 83 | #ifdef USEQPE |
84 | void suspend() | ||
79 | { | 85 | { |
80 | CExpander::suspend(fin); | 86 | CExpander::suspend(fin); |
81 | } | 87 | } |
82 | virtual void unsuspend() | 88 | void unsuspend() |
83 | { | 89 | { |
84 | CExpander::unsuspend(fin); | 90 | CExpander::unsuspend(fin); |
85 | } | 91 | } |
86 | virtual void sizes(unsigned long& _file, unsigned long& _text) | 92 | #endif |
93 | void sizes(unsigned long& _file, unsigned long& _text) | ||
87 | { | 94 | { |
88 | _file = file_length; | 95 | _file = file_length; |
89 | _text = ntohl(hdr0.size); | 96 | _text = ntohl(hdr0.size); |
90 | } | 97 | } |
91 | virtual bool hasrandomaccess() { return (hdr0.randomAccess != 0); } | 98 | bool hasrandomaccess() { return (hdr0.randomAccess != 0); } |
92 | virtual ~ztxt() | 99 | virtual ~ztxt() |
93 | { | 100 | { |
@@ -100,10 +107,10 @@ public: | |||
100 | } | 107 | } |
101 | ztxt(); | 108 | ztxt(); |
102 | virtual int OpenFile(const char *src); | 109 | int OpenFile(const char *src); |
103 | virtual int getch(); | 110 | int getch(); |
104 | virtual unsigned int locate(); | 111 | unsigned int locate(); |
105 | virtual void locate(unsigned int n); | 112 | void locate(unsigned int n); |
106 | virtual CList<Bkmk>* getbkmklist(); | 113 | CList<Bkmk>* getbkmklist(); |
107 | virtual MarkupType PreferredMarkup() | 114 | MarkupType PreferredMarkup() |
108 | { | 115 | { |
109 | return cTEXT; | 116 | return cTEXT; |