Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

krfbdecoder.cpp File Reference

#include "krfbconnection.h"
#include "krfbserverinfo.h"
#include "krfbdecoder.h"
#include "krfbbuffer.h"
#include <opie2/odebug.h>
#include <qpixmap.h>
#include <assert.h>

Include dependency graph for krfbdecoder.cpp:

Go to the source code of this file.

Defines

#define Swap16IfLE(s)   (*(char *)&endianTest ? ((((s) & 0xff) << 8) | (((s) >> 8) & 0xff)) : (s))
#define Swap32IfLE(l)

Variables

const int endianTest = 1
const int ServerInitLength = 24
const int UpdateHeaderLength = 4
const int RectHeaderLength = 12
const int RectChunkSize = 4
const int CopyRectPosLength = 4
const int ServerCutLenLength = 7
static CARD8 SetPixelFormatId = 0
static CARD8 SetEncodingsId = 2
static CARD8 UpdateRequestId = 3
static CARD8 KeyEventId = 4
static CARD8 PointerEventId = 5
static CARD8 ClientCutTextId = 6
static CARD8 UpdateId = 0
static CARD8 BellId = 2
static CARD8 ServerCutId = 3
static CARD32 RawEncoding = Swap32IfLE( 0 )
static CARD32 CopyRectEncoding = Swap32IfLE(1 )
static CARD32 RreEncoding = Swap32IfLE( 2 )
static CARD32 CorreEncoding = Swap32IfLE( 4 )
static CARD32 HexTileEncoding = Swap32IfLE( 5 )
struct {
   int   keysym
   int   keycode
keyMap []


Define Documentation

#define Swap16IfLE s   )     (*(char *)&endianTest ? ((((s) & 0xff) << 8) | (((s) >> 8) & 0xff)) : (s))
 

Definition at line 23 of file krfbdecoder.cpp.

#define Swap32IfLE l   ) 
 

Value:

(*(char *)&endianTest ? ((((l) & 0xff000000) >> 24) | \
                 (((l) & 0x00ff0000) >> 8)  | \
                 (((l) & 0x0000ff00) << 8)  | \
                 (((l) & 0x000000ff) << 24))  : (l))

Definition at line 26 of file krfbdecoder.cpp.


Variable Documentation

CARD8 BellId = 2 [static]
 

Definition at line 57 of file krfbdecoder.cpp.

Referenced by KRFBDecoder::gotUpdateHeader().

CARD8 ClientCutTextId = 6 [static]
 

Definition at line 51 of file krfbdecoder.cpp.

Referenced by KRFBDecoder::sendCutEvent().

CARD32 CopyRectEncoding = Swap32IfLE(1 ) [static]
 

Definition at line 64 of file krfbdecoder.cpp.

Referenced by KRFBDecoder::gotRectHeader(), and KRFBDecoder::sendAllowedEncodings().

const int CopyRectPosLength = 4
 

Definition at line 39 of file krfbdecoder.cpp.

Referenced by KRFBDecoder::handleCopyRect().

CARD32 CorreEncoding = Swap32IfLE( 4 ) [static]
 

Definition at line 66 of file krfbdecoder.cpp.

Referenced by KRFBDecoder::gotRectHeader(), and KRFBDecoder::sendAllowedEncodings().

const int endianTest = 1
 

Definition at line 20 of file krfbdecoder.cpp.

CARD32 HexTileEncoding = Swap32IfLE( 5 ) [static]
 

Definition at line 67 of file krfbdecoder.cpp.

Referenced by KRFBDecoder::gotRectHeader(), and KRFBDecoder::sendAllowedEncodings().

int keycode
 

Definition at line 71 of file krfbdecoder.cpp.

Referenced by Opie::ODevice::buttonForKeycode(), ButtonSettings::buttonInfoForKeycode(), KeyAction::doAction(), KeyHelperWidget::doEvent(), init_kcn_maps(), OLineEdit::keyPressEvent(), ServerApplication::launcherMessage(), Dvorak::Keyboard::mousePressEvent(), KeyHelperWidget::receiveMessage(), and ZkbXmlHandler::start_event().

CARD8 KeyEventId = 4 [static]
 

Definition at line 49 of file krfbdecoder.cpp.

Referenced by KRFBDecoder::sendKeyPressEvent(), and KRFBDecoder::sendKeyReleaseEvent().

struct { ... } keyMap[] [static]
 

Referenced by KeyHelperWidget::doEvent(), KeyHelper::dumpkeymap(), MapInfo::findKeyMap(), KHCWidget::onClick_Gen(), and KRFBDecoder::toKeySym().

int keysym
 

Definition at line 70 of file krfbdecoder.cpp.

CARD8 PointerEventId = 5 [static]
 

Definition at line 50 of file krfbdecoder.cpp.

Referenced by KRFBDecoder::sendMouseEvent().

CARD32 RawEncoding = Swap32IfLE( 0 ) [static]
 

Definition at line 63 of file krfbdecoder.cpp.

Referenced by KRFBDecoder::gotRectHeader(), and KRFBDecoder::sendAllowedEncodings().

const int RectChunkSize = 4
 

Definition at line 38 of file krfbdecoder.cpp.

Referenced by KRFBDecoder::handleRawRect().

const int RectHeaderLength = 12
 

Definition at line 37 of file krfbdecoder.cpp.

Referenced by KRFBDecoder::gotCopyRectPos(), KRFBDecoder::gotRawRectChunk(), and KRFBDecoder::gotUpdateHeader().

CARD32 RreEncoding = Swap32IfLE( 2 ) [static]
 

Definition at line 65 of file krfbdecoder.cpp.

Referenced by KRFBDecoder::gotRectHeader(), and KRFBDecoder::sendAllowedEncodings().

CARD8 ServerCutId = 3 [static]
 

Definition at line 58 of file krfbdecoder.cpp.

Referenced by KRFBDecoder::gotUpdateHeader().

const int ServerCutLenLength = 7
 

Definition at line 40 of file krfbdecoder.cpp.

Referenced by KRFBDecoder::gotServerCut().

const int ServerInitLength = 24
 

Definition at line 35 of file krfbdecoder.cpp.

Referenced by KRFBDecoder::sendClientInit().

CARD8 SetEncodingsId = 2 [static]
 

Definition at line 47 of file krfbdecoder.cpp.

Referenced by KRFBDecoder::sendAllowedEncodings().

CARD8 SetPixelFormatId = 0 [static]
 

Definition at line 45 of file krfbdecoder.cpp.

Referenced by KRFBDecoder::sendPixelFormat().

const int UpdateHeaderLength = 4
 

Definition at line 36 of file krfbdecoder.cpp.

Referenced by KRFBDecoder::gotBell(), KRFBDecoder::gotServerCutText(), and KRFBDecoder::sendUpdateRequest().

CARD8 UpdateId = 0 [static]
 

Definition at line 56 of file krfbdecoder.cpp.

Referenced by KRFBDecoder::gotUpdateHeader().

CARD8 UpdateRequestId = 3 [static]
 

Definition at line 48 of file krfbdecoder.cpp.

Referenced by KRFBDecoder::sendUpdateRequest().


Generated on Sat Nov 5 16:54:00 2005 for OPIE by  doxygen 1.4.2