summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/ztxt.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-reader/ztxt.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-reader/ztxt.h18
1 files changed, 4 insertions, 14 deletions
diff --git a/noncore/apps/opie-reader/ztxt.h b/noncore/apps/opie-reader/ztxt.h
index 709a055..f544b01 100644
--- a/noncore/apps/opie-reader/ztxt.h
+++ b/noncore/apps/opie-reader/ztxt.h
@@ -1,7 +1,6 @@
1#ifndef __ztxt_h 1#ifndef __ztxt_h
2#define __ztxt_h 2#define __ztxt_h
3 3
4#include "useqpe.h"
5#include "CExpander.h" 4#include "CExpander.h"
6#include <zlib.h> 5#include <zlib.h>
7#include "pdb.h" 6#include "pdb.h"
@@ -22,7 +21,7 @@
22 21
23/* Padding is no good */ 22/* Padding is no good */
24#if defined(__GNUC__) && defined(__UNIX__) 23#if defined(__GNUC__) && defined(__UNIX__)
25# pragma pack(2) 24//# pragma pack(2)
26#endif 25#endif
27 26
28/* The default creator is Weasel Reader 'GPlm' */ 27/* The default creator is Weasel Reader 'GPlm' */
@@ -58,7 +57,7 @@ typedef struct zTXT_record0Type {
58struct zTXTbkmk 57struct zTXTbkmk
59{ 58{
60 UInt32 offset; 59 UInt32 offset;
61 tchar title[MAX_BMRK_LENGTH]; 60 unsigned char title[MAX_BMRK_LENGTH];
62}; 61};
63 62
64#endif 63#endif
@@ -66,7 +65,7 @@ struct zTXTbkmk
66 65
67const UInt32 ZTXT_ID = 0x5458547a; 66const UInt32 ZTXT_ID = 0x5458547a;
68 67
69class ztxt : public CExpander, Cpdb 68class ztxt : public Cpdb
70{ 69{
71 bool bInit; 70 bool bInit;
72 UInt32 buffersize; 71 UInt32 buffersize;
@@ -80,16 +79,7 @@ class ztxt : public CExpander, Cpdb
80 size_t currentpos; 79 size_t currentpos;
81 void home(); 80 void home();
82public: 81public:
83#ifdef USEQPE 82 QString about() { return QString("Weasel codec (c) Tim Wentford"); }
84 void suspend()
85 {
86 CExpander::suspend(fin);
87 }
88 void unsuspend()
89 {
90 CExpander::unsuspend(fin);
91 }
92#endif
93 void sizes(unsigned long& _file, unsigned long& _text) 83 void sizes(unsigned long& _file, unsigned long& _text)
94 { 84 {
95 _file = file_length; 85 _file = file_length;