summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/Bkmks.h
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-reader/Bkmks.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-reader/Bkmks.h26
1 files changed, 20 insertions, 6 deletions
diff --git a/noncore/apps/opie-reader/Bkmks.h b/noncore/apps/opie-reader/Bkmks.h
index ee528e4..c2275e2 100644
--- a/noncore/apps/opie-reader/Bkmks.h
+++ b/noncore/apps/opie-reader/Bkmks.h
@@ -18,2 +18,4 @@ class Bkmk
unsigned int m_position;
+ unsigned int m_position2;
+ unsigned char m_red,m_green,m_blue, m_level;
void init(const void*, unsigned short, const void*, unsigned short, unsigned int);
@@ -24,2 +26,3 @@ class Bkmk
Bkmk(const tchar* _nm, const tchar* _anno, unsigned int _p);
+ Bkmk(const tchar* _nm, const tchar* _anno, unsigned int _p, unsigned int _p2);
Bkmk(const Bkmk& rhs) : m_name(NULL), m_anno(NULL)
@@ -31,2 +34,12 @@ class Bkmk
void value(unsigned int _v) { m_position = _v; }
+ unsigned int value2() const { return m_position2; }
+ void value2(unsigned int _v) { m_position2 = _v; }
+ unsigned char red() { return m_red; }
+ unsigned char green() { return m_green; }
+ unsigned char blue() { return m_blue; }
+ void red(unsigned char _v) { m_red = _v; }
+ void green(unsigned char _v) { m_green = _v; }
+ void blue(unsigned char _v) { m_blue = _v; }
+ unsigned char level() { return m_level; }
+ void level(unsigned char _v) { m_level = _v; }
tchar *name() const { return (tchar*)m_name; }
@@ -54,9 +67,10 @@ class BkmkFile
bool wt;
- bool isUpgraded;
+ bool isUpgraded, m_extras;
static const unsigned long magic;
private:
- static Bkmk* read06(FILE*);
- static Bkmk* read05(FILE*);
- static Bkmk* read03(FILE*);
- CList<Bkmk>* readall00(Bkmk*(*fn)(FILE*));
+ static Bkmk* read07(BkmkFile*, FILE*);
+ static Bkmk* read06(BkmkFile*, FILE*);
+ static Bkmk* read05(BkmkFile*, FILE*);
+ static Bkmk* read03(BkmkFile*, FILE*);
+ CList<Bkmk>* readall00(Bkmk*(*fn)(BkmkFile*, FILE*));
void write(const Bkmk& b);
@@ -64,3 +78,3 @@ class BkmkFile
bool upgraded() { return isUpgraded; }
- BkmkFile(const char *fnm, bool w = false);
+ BkmkFile(const char *fnm, bool w, bool _x);
~BkmkFile();