author | pohly <pohly> | 2004-08-24 20:52:45 (UTC) |
---|---|---|
committer | pohly <pohly> | 2004-08-24 20:52:45 (UTC) |
commit | 73253e93327cf4ef0932de1b4afb56af22a0f37e (patch) (unidiff) | |
tree | 1c9a7a6dd3341e036a894d348a3372525d29acec /noncore/apps/opie-reader/ztxt.h | |
parent | e90847c784c48bd21bf8768cb38edb853b832697 (diff) | |
download | opie-73253e93327cf4ef0932de1b4afb56af22a0f37e.zip opie-73253e93327cf4ef0932de1b4afb56af22a0f37e.tar.gz opie-73253e93327cf4ef0932de1b4afb56af22a0f37e.tar.bz2 |
updated source to opie-reader 0.7g
Diffstat (limited to 'noncore/apps/opie-reader/ztxt.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/ztxt.h | 26 |
1 files changed, 8 insertions, 18 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,14 +1,13 @@ | |||
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" |
8 | #ifdef _WINDOWS | 7 | #ifdef _WINDOWS |
9 | #include <winsock.h> | 8 | #include <winsock.h> |
10 | #endif | 9 | #endif |
11 | 10 | ||
12 | /* | 11 | /* |
13 | * Stuff common to both Weasel Reader and makeztxt | 12 | * Stuff common to both Weasel Reader and makeztxt |
14 | * | 13 | * |
@@ -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 { | |||
58 | struct zTXTbkmk | 57 | struct 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 | ||
67 | const UInt32 ZTXT_ID = 0x5458547a; | 66 | const UInt32 ZTXT_ID = 0x5458547a; |
68 | 67 | ||
69 | class ztxt : public CExpander, Cpdb | 68 | class 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(); |
82 | public: | 81 | public: |
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; |