Diffstat (limited to 'noncore/apps/opie-reader/Aportis.h') (more/less context) (show 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 @@ | |||
5 | #ifndef __Aportis_h | 5 | #ifndef __Aportis_h |
6 | #define __Aportis_h | 6 | #define __Aportis_h |
7 | #include "useqpe.h" | ||
8 | #include "CExpander.h" | 7 | #include "CExpander.h" |
9 | #include "pdb.h" | 8 | #include "pdb.h" |
@@ -61,6 +60,6 @@ inline DWORD SwapLong(DWORD r) | |||
61 | } | 60 | } |
62 | 61 | ||
63 | class Aportis : public CExpander, Cpdb { | 62 | class Aportis : public Cpdb { |
64 | bool peanutfile; | 63 | bool peanutfile, html; |
65 | void dePeanut(int&); | 64 | void dePeanut(int&); |
66 | DWORD dwLen; | 65 | DWORD dwLen; |
@@ -70,4 +69,5 @@ class Aportis : public CExpander, Cpdb { | |||
70 | WORD BlockSize; | 69 | WORD BlockSize; |
71 | DWORD dwRecLen; | 70 | DWORD dwRecLen; |
71 | WORD mobiimagerec; | ||
72 | int currentrec, currentpos; | 72 | int currentrec, currentpos; |
73 | unsigned int cbptr; | 73 | unsigned int cbptr; |
@@ -76,16 +76,7 @@ class Aportis : public CExpander, Cpdb { | |||
76 | char bCompressed; | 76 | char bCompressed; |
77 | public: | 77 | public: |
78 | #ifdef USEQPE | ||
79 | void suspend() | ||
80 | { | ||
81 | CExpander::suspend(fin); | ||
82 | } | ||
83 | void unsuspend() | ||
84 | { | ||
85 | CExpander::unsuspend(fin); | ||
86 | } | ||
87 | #endif | ||
88 | void sizes(unsigned long& _file, unsigned long& _text) | 78 | void sizes(unsigned long& _file, unsigned long& _text) |
89 | { | 79 | { |
80 | qDebug("Calling aportis sizes:(%u,%u,%u)", dwTLen, nRecs, BlockSize); | ||
90 | _file = dwLen; | 81 | _file = dwLen; |
91 | _text = dwTLen; | 82 | _text = dwTLen; |
@@ -101,6 +92,8 @@ public: | |||
101 | MarkupType PreferredMarkup() | 92 | MarkupType PreferredMarkup() |
102 | { | 93 | { |
103 | return (peanutfile) ? cPML : cTEXT; | 94 | return (peanutfile) ? cPML : ((html) ? cHTML : cTEXT); |
104 | } | 95 | } |
96 | QImage* getPicture(unsigned long); | ||
97 | QString about() { return QString("AportisDoc codec (c) Tim Wentford"); } | ||
105 | private: | 98 | private: |
106 | bool refreshbuffer(); | 99 | bool refreshbuffer(); |