Diffstat (limited to 'noncore/apps/opie-reader/Aportis.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/Aportis.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/noncore/apps/opie-reader/Aportis.h b/noncore/apps/opie-reader/Aportis.h index 1ca5e73..af1fd3b 100644 --- a/noncore/apps/opie-reader/Aportis.h +++ b/noncore/apps/opie-reader/Aportis.h @@ -54,47 +54,55 @@ inline WORD SwapWord(WORD r) { return (r>>8) + (r<<8); } inline DWORD SwapLong(DWORD r) { return ((r>>24) & 0xFF) + (r<<24) + ((r>>8) & 0xFF00) + ((r<<8) & 0xFF0000); } class Aportis : public CExpander, Cpdb { bool peanutfile; void dePeanut(int&); DWORD dwLen; WORD nRecs2; DWORD dwTLen; WORD nRecs; WORD BlockSize; DWORD dwRecLen; int currentrec, currentpos; unsigned int cbptr; unsigned int outptr; unsigned char circbuf[2048]; char bCompressed; public: + virtual void suspend() + { + CExpander::suspend(fin); + } + virtual void unsuspend() + { + CExpander::unsuspend(fin); + } virtual void sizes(unsigned long& _file, unsigned long& _text) { _file = dwLen; _text = dwTLen; } virtual bool hasrandomaccess() { return true; } virtual ~Aportis() {} Aportis(); - virtual int openfile(const char *src); + virtual int OpenFile(const char *src); virtual int getch(); virtual unsigned int locate(); virtual void locate(unsigned int n); virtual CList<Bkmk>* getbkmklist(); virtual MarkupType PreferredMarkup() { return (peanutfile) ? cPML : cTEXT; } private: bool refreshbuffer(); unsigned int GetBS(unsigned int bn); }; #endif |