summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/pdb.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-reader/pdb.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/pdb.h14
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 @@
15#include <netinet/in.h> 15#include <netinet/in.h>
16#endif 16#endif
17#include <stdio.h> 17#include <stdio.h>
18#include "useqpe.h"
19#include "CExpander.h"
18 20
19/* Normal Palm typedefs */ 21/* Normal Palm typedefs */
20typedef unsigned char UInt8; 22typedef unsigned char UInt8;
@@ -76,7 +78,7 @@ typedef struct {
76} DatabaseHdrType; 78} DatabaseHdrType;
77 79
78 80
79class Cpdb 81class Cpdb : public CExpander
80{ 82{
81 protected: 83 protected:
82 size_t file_length; 84 size_t file_length;
@@ -85,9 +87,15 @@ class Cpdb
85 size_t recordlength(int); 87 size_t recordlength(int);
86 void gotorecordnumber(int); 88 void gotorecordnumber(int);
87 DatabaseHdrType head; 89 DatabaseHdrType head;
88 bool openfile(const char* src); 90 bool openpdbfile(const char* src);
89 Cpdb() : fin(NULL) {} 91 Cpdb() : fin(NULL) {}
90 ~Cpdb() { if (fin != NULL) fclose(fin); } 92 ~Cpdb();
93#ifdef USEQPE
94 void suspend();
95 void unsuspend();
96#endif
97 public:
98 virtual void sizes(unsigned long& _file, unsigned long& _text) = 0;
91}; 99};
92#endif 100#endif
93 101