summaryrefslogtreecommitdiff
path: root/noncore/comm/keypebble/krfbserverinfo.h
Unidiff
Diffstat (limited to 'noncore/comm/keypebble/krfbserverinfo.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/comm/keypebble/krfbserverinfo.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/noncore/comm/keypebble/krfbserverinfo.h b/noncore/comm/keypebble/krfbserverinfo.h
new file mode 100644
index 0000000..7449da9
--- a/dev/null
+++ b/noncore/comm/keypebble/krfbserverinfo.h
@@ -0,0 +1,42 @@
1// -*- c++ -*-
2
3#ifndef KRFBSERVERINFO_H
4#define KRFBSERVERINFO_H
5
6#include <qstring.h>
7
8typedef unsigned char CARD8;
9typedef unsigned short CARD16;
10typedef unsigned long CARD32;
11
12class KRFBPixelFormat
13{
14public:
15 CARD8 bpp;
16 CARD8 depth;
17 CARD8 bigEndian;
18 CARD8 trueColor;
19 CARD16 redMax;
20 CARD16 greenMax;
21 CARD16 blueMax;
22 CARD8 redShift;
23 CARD8 greenShift;
24 CARD8 blueShift;
25 CARD8 padding[3]; // 3 bytes padding
26};
27
28/**
29 * Information sent by the server in its init message.
30 */
31class KRFBServerInfo : public KRFBPixelFormat
32{
33public:
34 CARD16 width;
35 CARD16 height;
36 CARD32 nameLength;
37 QString name;
38};
39
40#endif // KRFBSERVERINFO_H
41
42