Diffstat (limited to 'noncore/apps/opie-reader/ZText.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/ZText.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/apps/opie-reader/ZText.h b/noncore/apps/opie-reader/ZText.h index 9e72161..debfe8c 100644 --- a/noncore/apps/opie-reader/ZText.h +++ b/noncore/apps/opie-reader/ZText.h | |||
@@ -1,16 +1,16 @@ | |||
1 | #ifndef __Text_h | 1 | #ifndef __Text_h |
2 | #define __Text_h | 2 | #define __Text_h |
3 | #include <stdio.h> | 3 | #include <stdio.h> |
4 | #include <zlib.h> | 4 | #include "zlib/zlib.h" |
5 | #include <sys/stat.h> | 5 | #include <sys/stat.h> |
6 | 6 | ||
7 | #include "CExpander.h" | 7 | #include "CExpander.h" |
8 | 8 | ||
9 | class Text: public CExpander { | 9 | class Text: public CExpander { |
10 | gzFile file; | 10 | gzFile file; |
11 | unsigned long fsize; | 11 | unsigned long fsize; |
12 | public: | 12 | public: |
13 | Text() : file(NULL) {}; | 13 | Text() : file(NULL) {}; |
14 | virtual ~Text() | 14 | virtual ~Text() |
15 | { | 15 | { |
16 | if (file != NULL) gzclose(file); | 16 | if (file != NULL) gzclose(file); |
@@ -24,16 +24,16 @@ public: | |||
24 | return ((file = gzopen(src,"rb")) == NULL); | 24 | return ((file = gzopen(src,"rb")) == NULL); |
25 | } | 25 | } |
26 | virtual int getch() { return gzgetc(file); } | 26 | virtual int getch() { return gzgetc(file); } |
27 | virtual unsigned int locate() { return gztell(file); } | 27 | virtual unsigned int locate() { return gztell(file); } |
28 | virtual void locate(unsigned int n) { gzseek(file,n,SEEK_SET); } | 28 | virtual void locate(unsigned int n) { gzseek(file,n,SEEK_SET); } |
29 | virtual bool hasrandomaccess() { return true; } | 29 | virtual bool hasrandomaccess() { return true; } |
30 | virtual void sizes(unsigned long& _file, unsigned long& _text) | 30 | virtual void sizes(unsigned long& _file, unsigned long& _text) |
31 | { | 31 | { |
32 | _text = _file = fsize; | 32 | _text = _file = fsize; |
33 | } | 33 | } |
34 | virtual MarkupType PreferredMarkup() | 34 | virtual MarkupType PreferredMarkup() |
35 | { | 35 | { |
36 | return cTEXT; | 36 | return cTEXT; |
37 | } | 37 | } |
38 | }; | 38 | }; |
39 | #endif | 39 | #endif |