Diffstat (limited to 'noncore/apps/opie-reader/plucker.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/plucker.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/noncore/apps/opie-reader/plucker.cpp b/noncore/apps/opie-reader/plucker.cpp index d1ccd6f..4ea807a 100644 --- a/noncore/apps/opie-reader/plucker.cpp +++ b/noncore/apps/opie-reader/plucker.cpp | |||
@@ -1,47 +1,45 @@ | |||
1 | #include "useqpe.h" | ||
2 | #include <stdio.h> | 1 | #include <stdio.h> |
3 | #include <string.h> | 2 | #include <string.h> |
4 | #include <qmessagebox.h> | 3 | #include <qmessagebox.h> |
5 | #include <qpixmap.h> | 4 | #include <qpixmap.h> |
6 | #ifdef USEQPE | 5 | #ifdef USEQPE |
7 | #include <qpe/qcopenvelope_qws.h> | 6 | #include <qpe/qcopenvelope_qws.h> |
8 | #endif | 7 | #endif |
9 | #ifdef LOCALPICTURES | 8 | #ifdef LOCALPICTURES |
10 | #include <qscrollview.h> | 9 | #include <qscrollview.h> |
11 | #endif | 10 | #endif |
12 | #ifdef USEQPE | 11 | #ifdef USEQPE |
13 | #include <qpe/global.h> | 12 | #include <qpe/global.h> |
14 | #include <qpe/qpeapplication.h> | 13 | #include <qpe/qpeapplication.h> |
15 | #else | 14 | #else |
16 | #include <qapplication.h> | 15 | #include <qapplication.h> |
17 | #endif | 16 | #endif |
18 | #include <qclipboard.h> | 17 | #include <qclipboard.h> |
19 | 18 | ||
20 | #include "plucker.h" | 19 | #include "plucker.h" |
21 | #include "Aportis.h" | 20 | #include "Aportis.h" |
22 | #include "Palm2QImage.h" | 21 | #include "Palm2QImage.h" |
23 | #include "static.h" | ||
24 | 22 | ||
25 | 23 | ||
26 | struct CPlucker_dataRecord | 24 | struct CPlucker_dataRecord |
27 | { | 25 | { |
28 | UInt16 uid; | 26 | UInt16 uid; |
29 | UInt16 nParagraphs; | 27 | UInt16 nParagraphs; |
30 | UInt16 size; | 28 | UInt16 size; |
31 | UInt8 type; | 29 | UInt8 type; |
32 | UInt8 reserved; | 30 | UInt8 reserved; |
33 | }; | 31 | }; |
34 | 32 | ||
35 | int CPlucker::HeaderSize() | 33 | int CPlucker::HeaderSize() |
36 | { | 34 | { |
37 | return sizeof(CPlucker_dataRecord); | 35 | return sizeof(CPlucker_dataRecord); |
38 | } | 36 | } |
39 | 37 | ||
40 | void CPlucker::GetHeader(UInt16& uid, UInt16& nParagraphs, UInt32& size, UInt8& type, UInt8& reserved) | 38 | void CPlucker::GetHeader(UInt16& uid, UInt16& nParagraphs, UInt32& size, UInt8& type, UInt8& reserved) |
41 | { | 39 | { |
42 | CPlucker_dataRecord thishdr; | 40 | CPlucker_dataRecord thishdr; |
43 | fread(&thishdr, 1, HeaderSize(), fin); | 41 | fread(&thishdr, 1, HeaderSize(), fin); |
44 | uid = ntohs(thishdr.uid); | 42 | uid = ntohs(thishdr.uid); |
45 | nParagraphs = ntohs(thishdr.nParagraphs); | 43 | nParagraphs = ntohs(thishdr.nParagraphs); |
46 | size = ntohs(thishdr.size); | 44 | size = ntohs(thishdr.size); |
47 | type = thishdr.type; | 45 | type = thishdr.type; |