Diffstat (limited to 'noncore/apps/opie-reader/plucker.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/plucker.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/noncore/apps/opie-reader/plucker.h b/noncore/apps/opie-reader/plucker.h index 6d62195..53189a6 100644 --- a/noncore/apps/opie-reader/plucker.h +++ b/noncore/apps/opie-reader/plucker.h | |||
@@ -1,36 +1,39 @@ | |||
1 | #ifndef __plucker_h | 1 | #ifndef __plucker_h |
2 | #define __plucker_h | 2 | #define __plucker_h |
3 | 3 | ||
4 | #include "plucker_base.h" | 4 | #include "plucker_base.h" |
5 | 5 | ||
6 | #ifdef LOCALPICTURES | 6 | #ifdef LOCALPICTURES |
7 | class QScrollView; | 7 | class QScrollView; |
8 | class QWidget; | 8 | class QWidget; |
9 | #endif | 9 | #endif |
10 | 10 | ||
11 | class CPlucker : public CPlucker_base | 11 | class CPlucker : public CPlucker_base |
12 | { | 12 | { |
13 | void start2endSection() | 13 | bool isEndOfSection(int thisrec) |
14 | { | 14 | { |
15 | m_currentstart = currentpos-bufferpos; | 15 | return !m_bufferisreserved; |
16 | m_currentend = m_currentstart+buffercontent; | 16 | } |
17 | } | 17 | unsigned long NEFstartSection(); |
18 | unsigned long NEFendSection(); | ||
19 | void start2endSection(); | ||
18 | void setbuffersize() | 20 | void setbuffersize() |
19 | { | 21 | { |
20 | compressedbuffersize = buffersize = 32*1024; | 22 | compressedbuffersize = buffersize = 32*1024; |
21 | } | 23 | } |
22 | int HeaderSize(); | 24 | int HeaderSize(); |
23 | void GetHeader(UInt16& uid, UInt16& nParagraphs, UInt32& size, UInt8& type, UInt8& reserved); | 25 | void GetHeader(UInt16& uid, UInt16& nParagraphs, UInt32& size, UInt8& type, UInt8& reserved); |
24 | int bgetch(); | 26 | int bgetch(); |
25 | tchar getch(bool fast); | 27 | tchar getch(bool fast); |
26 | UInt8 EOPPhase; | 28 | UInt8 EOPPhase; |
27 | 29 | ||
28 | 30 | ||
29 | 31 | ||
30 | bool CorrectDecoder(); // Virtual | 32 | bool CorrectDecoder(); // Virtual |
31 | void setlink(QString&, const QString&); // Virtual | 33 | void setlink(QString&, const QString&); // Virtual |
32 | QImage* imagefromdata(UInt8*, UInt32); // virtual | 34 | QImage* imagefromdata(UInt8*, UInt32); // virtual |
33 | public: | 35 | public: |
34 | CPlucker(); | 36 | CPlucker(); |
37 | QString about() { return CPlucker_base::about()+QString("\nPlucker codec (c) Tim Wentford - Image reading code based on unpluck by Bill Janssen"); } | ||
35 | }; | 38 | }; |
36 | #endif | 39 | #endif |