summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/Navigation.h
authorgroucho <groucho>2003-05-07 09:01:39 (UTC)
committer groucho <groucho>2003-05-07 09:01:39 (UTC)
commit118d03d815a7615b9c53363218a7ac45b3f4c514 (patch) (unidiff)
tree356953e2413cddcec0f35bd47bb6439767da7051 /noncore/apps/opie-reader/Navigation.h
parent00894537decf01c5a5cdc565b2740b5e67a2e90f (diff)
downloadopie-118d03d815a7615b9c53363218a7ac45b3f4c514.zip
opie-118d03d815a7615b9c53363218a7ac45b3f4c514.tar.gz
opie-118d03d815a7615b9c53363218a7ac45b3f4c514.tar.bz2
Incorporated TimWs current source tree and make it compile
Diffstat (limited to 'noncore/apps/opie-reader/Navigation.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/Navigation.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/apps/opie-reader/Navigation.h b/noncore/apps/opie-reader/Navigation.h
index 57fb006..19d7f81 100644
--- a/noncore/apps/opie-reader/Navigation.h
+++ b/noncore/apps/opie-reader/Navigation.h
@@ -1,16 +1,18 @@
1#include <string.h>
1#include <stdlib.h> 2#include <stdlib.h>
2 3
3const size_t NAVIGATION_HISTORY_SIZE = 32; 4const size_t NAVIGATION_HISTORY_SIZE = 32;
4 5
5class CNavigation 6class CNavigation
6{ 7{
7 size_t history[NAVIGATION_HISTORY_SIZE]; 8 size_t history[NAVIGATION_HISTORY_SIZE];
8 size_t historystart, historyend, historycurrent; 9 size_t historystart, historyend, historycurrent;
9 public: 10 public:
10 CNavigation() : historystart(0),historyend(0),historycurrent(0) {} 11 CNavigation() : historystart(0),historyend(0),historycurrent(0) {}
11 void saveposn(size_t posn); 12 void saveposn(size_t posn);
13 void writeposn(size_t posn);
12 bool forward(size_t& loc); 14 bool forward(size_t& loc);
13 bool back(size_t& loc); 15 bool back(size_t& loc);
14 void setSaveData(unsigned char*& data, unsigned short& len, unsigned char* src, unsigned short srclen); 16 void setSaveData(unsigned char*& data, unsigned short& len, unsigned char* src, unsigned short srclen);
15 void putSaveData(unsigned char*& src, unsigned short& srclen); 17 void putSaveData(unsigned char*& src, unsigned short& srclen);
16}; 18};