summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/ppm_expander.h
authorpohly <pohly>2004-08-24 20:52:45 (UTC)
committer pohly <pohly>2004-08-24 20:52:45 (UTC)
commit73253e93327cf4ef0932de1b4afb56af22a0f37e (patch) (side-by-side diff)
tree1c9a7a6dd3341e036a894d348a3372525d29acec /noncore/apps/opie-reader/ppm_expander.h
parente90847c784c48bd21bf8768cb38edb853b832697 (diff)
downloadopie-73253e93327cf4ef0932de1b4afb56af22a0f37e.zip
opie-73253e93327cf4ef0932de1b4afb56af22a0f37e.tar.gz
opie-73253e93327cf4ef0932de1b4afb56af22a0f37e.tar.bz2
updated source to opie-reader 0.7g
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.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/noncore/apps/opie-reader/ppm_expander.h b/noncore/apps/opie-reader/ppm_expander.h
index 002de86..a1a3b60 100644
--- a/noncore/apps/opie-reader/ppm_expander.h
+++ b/noncore/apps/opie-reader/ppm_expander.h
@@ -1,9 +1,9 @@
#ifndef __ppm_expander_h
#define __ppm_expander_h
-
+
#include "useqpe.h"
#include "CExpander.h"
#include <sys/stat.h>
#include "utypes.h"
@@ -24,32 +24,33 @@ class ppm_expander : public CExpander {
bool needppmend;
int home();
FILE* my_file_in;
PPM_ReadBuf* my_read_buf;
ppm_worker ppm;
public:
-#ifdef USEQPE
+ QString about() { return QString("ppms Codec (c) Tim Wentford\nCompression code (c) Fabrice Bellard"); }
+#ifdef USEQPE
void suspend()
{
CExpander::suspend(my_file_in);
}
void unsuspend()
{
CExpander::unsuspend(my_file_in);
- }
+ }
#endif
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;
}
int OpenFile(const char* infile);
int getch();
- int locate(unsigned short block, unsigned int n);
+ void locate(unsigned short block, unsigned int n);
virtual ~ppm_expander();
unsigned int locate() { return outbytes; }
void locate(unsigned int n);
bool hasrandomaccess() { return (numblocks > 1); }
void sizes(unsigned long& file, unsigned long& text);
MarkupType PreferredMarkup()