From 73253e93327cf4ef0932de1b4afb56af22a0f37e Mon Sep 17 00:00:00 2001 From: pohly Date: Tue, 24 Aug 2004 20:52:45 +0000 Subject: updated source to opie-reader 0.7g --- (limited to 'noncore/apps/opie-reader/ztxt.h') 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 @@ #ifndef __ztxt_h #define __ztxt_h -#include "useqpe.h" #include "CExpander.h" #include #include "pdb.h" -#ifdef _WINDOWS -#include -#endif - +#ifdef _WINDOWS +#include +#endif + /* * Stuff common to both Weasel Reader and makeztxt * @@ -22,7 +21,7 @@ /* Padding is no good */ #if defined(__GNUC__) && defined(__UNIX__) -# pragma pack(2) +//# pragma pack(2) #endif /* The default creator is Weasel Reader 'GPlm' */ @@ -58,7 +57,7 @@ typedef struct zTXT_record0Type { struct zTXTbkmk { UInt32 offset; - tchar title[MAX_BMRK_LENGTH]; + unsigned char title[MAX_BMRK_LENGTH]; }; #endif @@ -66,7 +65,7 @@ struct zTXTbkmk const UInt32 ZTXT_ID = 0x5458547a; -class ztxt : public CExpander, Cpdb +class ztxt : public Cpdb { bool bInit; UInt32 buffersize; @@ -80,16 +79,7 @@ class ztxt : public CExpander, Cpdb size_t currentpos; void home(); public: -#ifdef USEQPE - void suspend() - { - CExpander::suspend(fin); - } - void unsuspend() - { - CExpander::unsuspend(fin); - } -#endif + QString about() { return QString("Weasel codec (c) Tim Wentford"); } void sizes(unsigned long& _file, unsigned long& _text) { _file = file_length; -- cgit v0.9.0.2