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) (unidiff)
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,6 +1,6 @@
1#ifndef __ppm_expander_h 1#ifndef __ppm_expander_h
2#define __ppm_expander_h 2#define __ppm_expander_h
3 3
4#include "useqpe.h" 4#include "useqpe.h"
5#include "CExpander.h" 5#include "CExpander.h"
6#include <sys/stat.h> 6#include <sys/stat.h>
@@ -27,7 +27,8 @@ class ppm_expander : public CExpander {
27 PPM_ReadBuf* my_read_buf; 27 PPM_ReadBuf* my_read_buf;
28 ppm_worker ppm; 28 ppm_worker ppm;
29public: 29public:
30#ifdef USEQPE 30 QString about() { return QString("ppms Codec (c) Tim Wentford\nCompression code (c) Fabrice Bellard"); }
31#ifdef USEQPE
31 void suspend() 32 void suspend()
32 { 33 {
33 CExpander::suspend(my_file_in); 34 CExpander::suspend(my_file_in);
@@ -35,7 +36,7 @@ public:
35 void unsuspend() 36 void unsuspend()
36 { 37 {
37 CExpander::unsuspend(my_file_in); 38 CExpander::unsuspend(my_file_in);
38 } 39 }
39#endif 40#endif
40 ppm_expander() : needppmend(false), my_file_in(NULL), my_read_buf(NULL) 41 ppm_expander() : needppmend(false), my_file_in(NULL), my_read_buf(NULL)
41 { 42 {
@@ -46,7 +47,7 @@ public:
46 } 47 }
47 int OpenFile(const char* infile); 48 int OpenFile(const char* infile);
48 int getch(); 49 int getch();
49 int locate(unsigned short block, unsigned int n); 50 void locate(unsigned short block, unsigned int n);
50 virtual ~ppm_expander(); 51 virtual ~ppm_expander();
51 unsigned int locate() { return outbytes; } 52 unsigned int locate() { return outbytes; }
52 void locate(unsigned int n); 53 void locate(unsigned int n);