Constants.h 1.51 KB
Newer Older
daFischer's avatar
first  
daFischer committed
1 2
/* 
 * File:   Constants.h
3
 * Author: Johannes Fischer
daFischer's avatar
first  
daFischer committed
4 5 6 7 8 9 10 11 12
 *
 * Original by Fabian Petter on 10/11/10.
 * https://www2.in.tum.de/repos/ttt/branches/iOS/viewer/1.0/Classes/Constants.h
 * Created on May 5, 2014, 5:39 PM
 */

#ifndef CONSTANTS_H
#define	CONSTANTS_H

13 14
#define VERBOSE true

daFischer's avatar
first  
daFischer committed
15 16
#define EXTENSION_INDEX_TABLE 1
#define EXTENSION_SEARCHBASE_TABLE_WITH_COORDINATES 2
daFischer's avatar
daFischer committed
17

daFischer's avatar
first  
daFischer committed
18 19 20 21
#define ENCODINGFLAGTIMESTAMP 128
#define ENCODINGFLAGUPDATE 64
#define ENCODINGMASK 63

22 23 24
//message kinds
#define ANNOTATION 'a'
#define EMPTY '0'
25
#define FRAMEBUFFER 'r'
26 27
#define CURSOR 'c'

daFischer's avatar
first  
daFischer committed
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
//message types
#define ANNOTATIONRECTANGLE 20
#define ANNOTATIONLINE 21
#define ANNOTATIONFREEHAND 22
#define ANNOTATIONHIGHLIGHT 23
#define ANNOTATIONDELETE 24
#define ANNOTATIONDELETEALL 25
#define ANNOTATIONIMAGE 26    // MODMSG
#define ANNOTATIONTEXT 27    // MODMSG
#define ENCODINGTTTCURSORPOSITION 17
#define ENCODINGTTTXCURSOR 18
#define ENCODINGTTTRICHCURSOR 19
#define ENCODINGWHITEBOARD 33
#define ENCODINGHEXTILE 5
#define ENCODINGRAW 0
#define ENCODINGINTERLACEDRAW 42

//subencodings
#define HextileRaw  1
#define HextileBackgroundSpecified  2
#define HextileForegroundSpecified  4
#define HextileAnySubrects  8
#define HextileSubrectsColoured  16

// only used by RFB protocol
#define EncodingCompressLevel0 0xFFFFFF00
#define EncodingQualityLevel0 0xFFFFFFE0
#define EncodingXCursor 0xFFFFFF10
#define EncodingRichCursor 0xFFFFFF11
#define EncodingPointerPos 0xFFFFFF18
#define EncodingLastRect 0xFFFFFF20
#define EncodingNewFBSize 0xFFFFFF21

#endif	/* CONSTANTS_H */