summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/ppm_expander.h
Side-by-side diff
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.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/noncore/apps/opie-reader/ppm_expander.h b/noncore/apps/opie-reader/ppm_expander.h
index 115988d..4278c82 100644
--- a/noncore/apps/opie-reader/ppm_expander.h
+++ b/noncore/apps/opie-reader/ppm_expander.h
@@ -16,33 +16,41 @@ class ppm_expander : public CExpander {
UCHAR *buf_in,*buf_out;
unsigned int bufsize;
unsigned int outbytes;
unsigned long blocksize;
unsigned short numblocks;
unsigned short curblock;
unsigned short maxnode;
bool needppmend;
int home();
FILE* my_file_in;
PPM_ReadBuf* my_read_buf;
ppm_worker ppm;
- public:
+public:
+ virtual void suspend()
+ {
+ CExpander::suspend(my_file_in);
+ }
+ virtual void unsuspend()
+ {
+ CExpander::unsuspend(my_file_in);
+ }
ppm_expander() : needppmend(false), my_file_in(NULL), my_read_buf(NULL)
{
bufsize = 1024;
buf_in = new UCHAR[bufsize];
buf_out = new UCHAR[bufsize];
outbytes = 0;
}
- virtual int openfile(const char* infile);
+ virtual int OpenFile(const char* infile);
virtual int getch();
int locate(unsigned short block, unsigned int n);
virtual ~ppm_expander();
virtual unsigned int locate() { return outbytes; }
virtual void locate(unsigned int n);
virtual bool hasrandomaccess() { return (numblocks > 1); }
virtual void sizes(unsigned long& file, unsigned long& text);
virtual MarkupType PreferredMarkup()
{
return cTEXT;
}
};