Diffstat (limited to 'noncore/apps/opie-reader/pdb.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/pdb.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/noncore/apps/opie-reader/pdb.h b/noncore/apps/opie-reader/pdb.h index eac3ae6..7a6580d 100644 --- a/noncore/apps/opie-reader/pdb.h +++ b/noncore/apps/opie-reader/pdb.h @@ -15,6 +15,8 @@ #include <netinet/in.h> #endif #include <stdio.h> +#include "useqpe.h" +#include "CExpander.h" /* Normal Palm typedefs */ typedef unsigned char UInt8; @@ -76,7 +78,7 @@ typedef struct { } DatabaseHdrType; -class Cpdb +class Cpdb : public CExpander { protected: size_t file_length; @@ -85,9 +87,15 @@ class Cpdb size_t recordlength(int); void gotorecordnumber(int); DatabaseHdrType head; - bool openfile(const char* src); + bool openpdbfile(const char* src); Cpdb() : fin(NULL) {} - ~Cpdb() { if (fin != NULL) fclose(fin); } + ~Cpdb(); +#ifdef USEQPE + void suspend(); + void unsuspend(); +#endif + public: + virtual void sizes(unsigned long& _file, unsigned long& _text) = 0; }; #endif |