author | pohly <pohly> | 2004-08-24 20:52:45 (UTC) |
---|---|---|
committer | pohly <pohly> | 2004-08-24 20:52:45 (UTC) |
commit | 73253e93327cf4ef0932de1b4afb56af22a0f37e (patch) (side-by-side diff) | |
tree | 1c9a7a6dd3341e036a894d348a3372525d29acec /noncore/apps/opie-reader/Aportis.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/Aportis.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/Aportis.h | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/noncore/apps/opie-reader/Aportis.h b/noncore/apps/opie-reader/Aportis.h index 202a36f..5e9d1da 100644 --- a/noncore/apps/opie-reader/Aportis.h +++ b/noncore/apps/opie-reader/Aportis.h @@ -5,5 +5,4 @@ #ifndef __Aportis_h #define __Aportis_h -#include "useqpe.h" #include "CExpander.h" #include "pdb.h" @@ -61,6 +60,6 @@ inline DWORD SwapLong(DWORD r) } -class Aportis : public CExpander, Cpdb { - bool peanutfile; +class Aportis : public Cpdb { + bool peanutfile, html; void dePeanut(int&); DWORD dwLen; @@ -70,4 +69,5 @@ class Aportis : public CExpander, Cpdb { WORD BlockSize; DWORD dwRecLen; + WORD mobiimagerec; int currentrec, currentpos; unsigned int cbptr; @@ -76,16 +76,7 @@ class Aportis : public CExpander, Cpdb { char bCompressed; public: -#ifdef USEQPE
- void suspend() - { - CExpander::suspend(fin); - } - void unsuspend() - { - CExpander::unsuspend(fin); - }
-#endif void sizes(unsigned long& _file, unsigned long& _text) { + qDebug("Calling aportis sizes:(%u,%u,%u)", dwTLen, nRecs, BlockSize); _file = dwLen; _text = dwTLen; @@ -101,6 +92,8 @@ public: MarkupType PreferredMarkup() { - return (peanutfile) ? cPML : cTEXT; + return (peanutfile) ? cPML : ((html) ? cHTML : cTEXT); } + QImage* getPicture(unsigned long); + QString about() { return QString("AportisDoc codec (c) Tim Wentford"); } private: bool refreshbuffer(); |