author | chicken <chicken> | 2004-03-01 20:00:34 (UTC) |
---|---|---|
committer | chicken <chicken> | 2004-03-01 20:00:34 (UTC) |
commit | 6bab4a28785c4ab5b0f0707c8c8db953e399cac8 (patch) (unidiff) | |
tree | 126dd6c09cc82b3d41ea70410803daac5cde5b60 /noncore/comm/keypebble/krfbdecoder.cpp | |
parent | 4ffae5ecb25f6d640c69f53f02755b6ec58d4c98 (diff) | |
download | opie-6bab4a28785c4ab5b0f0707c8c8db953e399cac8.zip opie-6bab4a28785c4ab5b0f0707c8c8db953e399cac8.tar.gz opie-6bab4a28785c4ab5b0f0707c8c8db953e399cac8.tar.bz2 |
fix includes
Diffstat (limited to 'noncore/comm/keypebble/krfbdecoder.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/comm/keypebble/krfbdecoder.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/noncore/comm/keypebble/krfbdecoder.cpp b/noncore/comm/keypebble/krfbdecoder.cpp index c43aed5..2c9ad71 100644 --- a/noncore/comm/keypebble/krfbdecoder.cpp +++ b/noncore/comm/keypebble/krfbdecoder.cpp | |||
@@ -1,61 +1,55 @@ | |||
1 | #include "krfbconnection.h" | 1 | #include "krfbconnection.h" |
2 | #include "krfbserver.h" | ||
3 | #include "krfbserverinfo.h" | 2 | #include "krfbserverinfo.h" |
4 | #include "krfbdecoder.h" | 3 | #include "krfbdecoder.h" |
5 | #include "krfbbuffer.h" | 4 | #include "krfbbuffer.h" |
6 | 5 | ||
7 | #include <qpe/qpeapplication.h> | ||
8 | 6 | ||
9 | #include <qpixmap.h> | 7 | #include <qpixmap.h> |
10 | #include <qsocket.h> | ||
11 | #include <qevent.h> | ||
12 | #include <qstring.h> | ||
13 | #include <qclipboard.h> | ||
14 | 8 | ||
15 | #include <assert.h> | 9 | #include <assert.h> |
16 | 10 | ||
17 | // | 11 | // |
18 | // Endian stuff | 12 | // Endian stuff |
19 | // | 13 | // |
20 | #ifndef KDE_USE_FINAL | 14 | #ifndef KDE_USE_FINAL |
21 | const int endianTest = 1; | 15 | const int endianTest = 1; |
22 | #endif | 16 | #endif |
23 | 17 | ||
24 | #define Swap16IfLE(s) \ | 18 | #define Swap16IfLE(s) \ |
25 | (*(char *)&endianTest ? ((((s) & 0xff) << 8) | (((s) >> 8) & 0xff)) : (s)) | 19 | (*(char *)&endianTest ? ((((s) & 0xff) << 8) | (((s) >> 8) & 0xff)) : (s)) |
26 | 20 | ||
27 | #define Swap32IfLE(l) \ | 21 | #define Swap32IfLE(l) \ |
28 | (*(char *)&endianTest ? ((((l) & 0xff000000) >> 24) | \ | 22 | (*(char *)&endianTest ? ((((l) & 0xff000000) >> 24) | \ |
29 | (((l) & 0x00ff0000) >> 8) | \ | 23 | (((l) & 0x00ff0000) >> 8) | \ |
30 | (((l) & 0x0000ff00) << 8) | \ | 24 | (((l) & 0x0000ff00) << 8) | \ |
31 | (((l) & 0x000000ff) << 24)) : (l)) | 25 | (((l) & 0x000000ff) << 24)) : (l)) |
32 | 26 | ||
33 | // | 27 | // |
34 | // The lengths of the messages we need to wait for | 28 | // The lengths of the messages we need to wait for |
35 | // | 29 | // |
36 | const int ServerInitLength = 24; | 30 | const int ServerInitLength = 24; |
37 | const int UpdateHeaderLength = 4; | 31 | const int UpdateHeaderLength = 4; |
38 | const int RectHeaderLength = 12; | 32 | const int RectHeaderLength = 12; |
39 | const int RectChunkSize = 4; | 33 | const int RectChunkSize = 4; |
40 | const int CopyRectPosLength = 4; | 34 | const int CopyRectPosLength = 4; |
41 | const int ServerCutLenLength = 7; | 35 | const int ServerCutLenLength = 7; |
42 | 36 | ||
43 | // | 37 | // |
44 | // Client -> Server Message Identifiers | 38 | // Client -> Server Message Identifiers |
45 | // | 39 | // |
46 | static CARD8 SetPixelFormatId = 0; | 40 | static CARD8 SetPixelFormatId = 0; |
47 | //static CARD8 FixColourMapEntriesId = 1; // Not used | 41 | //static CARD8 FixColourMapEntriesId = 1; // Not used |
48 | static CARD8 SetEncodingsId = 2; | 42 | static CARD8 SetEncodingsId = 2; |
49 | static CARD8 UpdateRequestId = 3; | 43 | static CARD8 UpdateRequestId = 3; |
50 | static CARD8 KeyEventId = 4; | 44 | static CARD8 KeyEventId = 4; |
51 | static CARD8 PointerEventId = 5; | 45 | static CARD8 PointerEventId = 5; |
52 | static CARD8 ClientCutTextId = 6; | 46 | static CARD8 ClientCutTextId = 6; |
53 | 47 | ||
54 | // | 48 | // |
55 | // Server -> Client Message Identifiers | 49 | // Server -> Client Message Identifiers |
56 | // | 50 | // |
57 | static CARD8 UpdateId = 0; | 51 | static CARD8 UpdateId = 0; |
58 | static CARD8 BellId = 2; | 52 | static CARD8 BellId = 2; |
59 | static CARD8 ServerCutId = 3; | 53 | static CARD8 ServerCutId = 3; |
60 | 54 | ||
61 | // | 55 | // |