Diffstat (limited to 'noncore/apps/opie-reader/ppm_expander.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/ppm_expander.h | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/noncore/apps/opie-reader/ppm_expander.h b/noncore/apps/opie-reader/ppm_expander.h index 4278c82..002de86 100644 --- a/noncore/apps/opie-reader/ppm_expander.h +++ b/noncore/apps/opie-reader/ppm_expander.h | |||
@@ -2,3 +2,4 @@ | |||
2 | #define __ppm_expander_h | 2 | #define __ppm_expander_h |
3 | 3 | ||
4 | #include "useqpe.h" | ||
4 | #include "CExpander.h" | 5 | #include "CExpander.h" |
@@ -28,3 +29,4 @@ class ppm_expander : public CExpander { | |||
28 | public: | 29 | public: |
29 | virtual void suspend() | 30 | #ifdef USEQPE |
31 | void suspend() | ||
30 | { | 32 | { |
@@ -32,6 +34,7 @@ public: | |||
32 | } | 34 | } |
33 | virtual void unsuspend() | 35 | void unsuspend() |
34 | { | 36 | { |
35 | CExpander::unsuspend(my_file_in); | 37 | CExpander::unsuspend(my_file_in); |
36 | } | 38 | } |
39 | #endif | ||
37 | ppm_expander() : needppmend(false), my_file_in(NULL), my_read_buf(NULL) | 40 | ppm_expander() : needppmend(false), my_file_in(NULL), my_read_buf(NULL) |
@@ -43,11 +46,11 @@ public: | |||
43 | } | 46 | } |
44 | virtual int OpenFile(const char* infile); | 47 | int OpenFile(const char* infile); |
45 | virtual int getch(); | 48 | int getch(); |
46 | int locate(unsigned short block, unsigned int n); | 49 | int locate(unsigned short block, unsigned int n); |
47 | virtual ~ppm_expander(); | 50 | virtual ~ppm_expander(); |
48 | virtual unsigned int locate() { return outbytes; } | 51 | unsigned int locate() { return outbytes; } |
49 | virtual void locate(unsigned int n); | 52 | void locate(unsigned int n); |
50 | virtual bool hasrandomaccess() { return (numblocks > 1); } | 53 | bool hasrandomaccess() { return (numblocks > 1); } |
51 | virtual void sizes(unsigned long& file, unsigned long& text); | 54 | void sizes(unsigned long& file, unsigned long& text); |
52 | virtual MarkupType PreferredMarkup() | 55 | MarkupType PreferredMarkup() |
53 | { | 56 | { |