author | kergoth <kergoth> | 2002-01-25 22:14:26 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-01-25 22:14:26 (UTC) |
commit | 15318cad33835e4e2dc620d033e43cd930676cdd (patch) (side-by-side diff) | |
tree | c2fa0399a2c47fda8e2cd0092c73a809d17f68eb /noncore/comm/keypebble/krfbserverinfo.h | |
download | opie-15318cad33835e4e2dc620d033e43cd930676cdd.zip opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.gz opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.bz2 |
Initial revision
Diffstat (limited to 'noncore/comm/keypebble/krfbserverinfo.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/comm/keypebble/krfbserverinfo.h | 42 |
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 @@ +// -*- c++ -*- + +#ifndef KRFBSERVERINFO_H +#define KRFBSERVERINFO_H + +#include <qstring.h> + +typedef unsigned char CARD8; +typedef unsigned short CARD16; +typedef unsigned long CARD32; + +class KRFBPixelFormat +{ +public: + CARD8 bpp; + CARD8 depth; + CARD8 bigEndian; + CARD8 trueColor; + CARD16 redMax; + CARD16 greenMax; + CARD16 blueMax; + CARD8 redShift; + CARD8 greenShift; + CARD8 blueShift; + CARD8 padding[3]; // 3 bytes padding +}; + +/** + * Information sent by the server in its init message. + */ +class KRFBServerInfo : public KRFBPixelFormat +{ +public: + CARD16 width; + CARD16 height; + CARD32 nameLength; + QString name; +}; + +#endif // KRFBSERVERINFO_H + + |